Attributeerror kenlm.Model';对象没有属性';得分';在google cloud ML上运行时

Attributeerror kenlm.Model';对象没有属性';得分';在google cloud ML上运行时,attributeerror,google-cloud-ml,google-cloud-ml-engine,kenlm,Attributeerror,Google Cloud Ml,Google Cloud Ml Engine,Kenlm,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> AttributeErro

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' 
>model=kenlm.model('LM/en.europarl nc.LM')
>>>model.score('这是一个测试')
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
AttributeError:'kenlm.Model'对象没有属性'score'

能否提供一些有关如何将kenlm作为依赖项包含在培训代码中的详细信息?我已经在setup.py中从pypi中给出了kenlm依赖项。我用过这个