加载用于评分句子的语言模型时,LM('bible.klm') 文件大小是否应小于 RAM 大小?
import kenlm
model = kenlm.LanguageModel('bible.klm')
model.score('in the beginning was the word')
加载用于评分句子的语言模型时,LM('bible.klm') 文件大小是否应小于 RAM 大小?
import kenlm
model = kenlm.LanguageModel('bible.klm')
model.score('in the beginning was the word')