aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortxh18 <[email protected]>2015-12-13 21:03:26 +0800
committertxh18 <[email protected]>2015-12-13 21:03:26 +0800
commitcbcdec35ae17511d7ff022f290e97c518d7a1f1b (patch)
tree82aef6dacad8e7f51c98da7a057ea19e927a7f9c
parent32c39bcaf72a7dc08968909d8b6a8b108ac923b4 (diff)
...
-rw-r--r--nerv/examples/lmptb/lmptb/lmvocab.lua4
1 files changed, 3 insertions, 1 deletions
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