Open mirfan899 opened 1 year ago
Describe the bug
I'm trying to use the sentiment model.
To Reproduce
from danlp.models import load_spacy_model import operator # load the model nlp = load_spacy_model(textcat='sentiment') # use the model for prediction doc = nlp("Vi er glade for spacy!") max(doc.cats.items(), key=operator.itemgetter(1))[0]
Screenshots
Your Environment
Describe the bug
I'm trying to use the sentiment model.
To Reproduce
Screenshots
Your Environment