I already installed python-crfsuite, however I get this error whenever I compile my code.

**

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-21-a7b230c84356> in <module>()
----> 1 ct = CRFTagger()
      2 nlp = spacy.load('en')
/anaconda3/lib/python3.6/site-packages/nltk/tag/crf.py in __init__(self, feature_func, verbose, training_opt)
     81 
     82         self._model_file = ''
---> 83         self._tagger = pycrfsuite.Tagger()
     84 
     85         if feature_func is None:
NameError: name 'pycrfsuite' is not defined

**

Can you tell me what does that mean and why am I getting this error, since the documentation says to only use 'pip install python-crfsuite' and no further configuration ?

UPDATE :

Here's the code that results in this error:

import pycrfsuite
import spacy
from nltk.tag import CRFTagger

ct = CRFTagger()
nlp = spacy.load('en')

0 Answers