0

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' 
Appu
  • 83
  • 9
  • Could you provide some details about how you're including kenlm as a dependency in your training code? – rhaertel80 May 26 '17 at 05:17
  • I have given kenlm dependency from pypi in setup.py. I have used this https://pypi.python.org/pypi/pypi-kenlm/0.1.20160618 – Appu May 26 '17 at 06:36

0 Answers0