model.full_socres
zidong-onepiece1 opened this issue · 0 comments
zidong-onepiece1 commented
hi ken!
model = kenlm.Model("ngram.model")
def score_sentence(self, words_list):
sentence = " ".join(words_list)
score = 0
error_count = 0
for (prob, **length**, oov) in enumerate(model.full_scores(sentence)):
...
If length equals 1, or 2, or 3, what does it mean?
thanks!