I created a sentiment analysis model using one of the Huggingface models, i got good accuracy, i saved it and now i want to use it without passing by the training process again,
I used the BertClassificationPredictor  function but it didn’t work for me.
My work :
from fast_bert.prediction import BertClassificationPredictor
MODEL_PATH = ‘/content/latest_model’
predictor = BertClassificationPredictor(
model_path=MODEL_PATH,
label_path=LABEL_PATH,
multi_label=False,
model_type=‘bert’)
Single prediction
single_prediction = predictor.predict(“just get me result for this text”)
The model i finetuned : https://huggingface.co/asafaya/bert-base-arabic 1