Closed RawCheer closed 4 years ago
It must be your own addition, predict function in FinBERT doesnt have such a parameter.
def predict(text, model, write_to_csv=False, path=None):
"""
Predict sentiments of sentences in a given text. The function first tokenizes sentences, make predictions and write
results.
Parameters
----------
text: string
text to be analyzed
model: BertForSequenceClassification
path to the classifier model
write_to_csv (optional): bool
path (optional): string
path to write the string
"""
Could anyone explain what is the news_id in predict()?