I am getting an error when trying to use the function precision from nltk.metrics.scores. I have tried many different imports but with no success.<
precision
nltk.metrics.scores
Replace import of nltk.metrics by this :
from nltk.metrics import *
Now call precision or scores or recall directly.