kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.5k stars 513 forks source link

Module 'kenlm' has no attribute 'Model' #298

Closed Tsukimy closed 4 years ago

Tsukimy commented 4 years ago

Hi. I wanted to try lm-model in debug, the script was running before. Now I have this error below.

Traceback (most recent call last): File "kenlm.py", line 20, in import kenlm File "...kenlm.py", line 28, in lm = kenlm.Model("...zadolbali.arpa") AttributeError: module 'kenlm' has no attribute 'Model'

What could be wrong? The source of kenlm is from this repo

Tsukimy commented 4 years ago

My mistake naming the script

talhaanwarch commented 2 years ago

@Tsukimy if possible can you elaborate how you resolve the issue