AttributeError: ‘module’ object has no attribute 'scores'

前端 未结 2 1491
梦谈多话
梦谈多话 2021-01-05 07:17

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.<

2条回答
  •  礼貌的吻别
    2021-01-05 07:53

    Replace import of nltk.metrics by this :

    from nltk.metrics import *
    

    Now call precision or scores or recall directly.

提交回复
热议问题