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]
Screenshots
Your Environment
Operating system:
Python version: 3.8.16
DaNLP version: 0.1.2
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm trying to use the sentiment model.
To Reproduce
Screenshots
Your Environment
The text was updated successfully, but these errors were encountered: