0

AttributeError:“kenlm.Model”对象没有属性“score”

>>> model = kenlm.Model('LM/en.europarl-nc.lm')
>>> model.score('This is a test')
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    AttributeError: 'kenlm.Model' object has no attribute 'score' 
4

0 回答 0