NLP, Python, Spacy.
spacy.load('textcat_multilabel_model/model-best') fileid = reuters.fileids()[1024] text = reuters.raw(fileid) doc = nlp(text) print(doc.cats) # {'acq': 0.9506559371948242, 'alum': 0.3440687954425812, 'barley': 0.044086653739213943, #... The doc.cats attribute is a Dictionary object that contains