You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromdanlp.modelsimportload_spacy_modelimportoperator# load the modelnlp=load_spacy_model(textcat='sentiment')
# use the model for predictiondoc=nlp("Vi er glade for spacy!")
max(doc.cats.items(), key=operator.itemgetter(1))[0]
Describe the bug
I'm trying to use the sentiment model.
To Reproduce
Screenshots
Your Environment