kenlm.Model' object has no attribute 'score' while running on google cloud ML

864 Views Asked by At

AttributeError: 'kenlm.Model' object has no attribute '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' 
0

There are 0 best solutions below