From cbcdec35ae17511d7ff022f290e97c518d7a1f1b Mon Sep 17 00:00:00 2001 From: txh18 Date: Sun, 13 Dec 2015 21:03:26 +0800 Subject: ... --- nerv/examples/lmptb/lmptb/lmvocab.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nerv/examples/lmptb/lmptb/lmvocab.lua b/nerv/examples/lmptb/lmptb/lmvocab.lua index 2ad0e7e..7f512fd 100644 --- a/nerv/examples/lmptb/lmptb/lmvocab.lua +++ b/nerv/examples/lmptb/lmptb/lmvocab.lua @@ -1,3 +1,5 @@ +require 'lmptb.lmutil' + local Vocab = nerv.class("nerv.LMVocab") local printf = nerv.printf @@ -107,7 +109,7 @@ function Vocab:build_file(fn) printf("%s Vocab building on file %s...\n", self.log_pre, fn) local file = io.open(fn, "r") while (true) do - local list = self:read_line(file) + local list = nerv.LMUtil.read_line(file) if (list == nil) then break else -- cgit v1.2.3-70-g09d2