From 60ddaa4807978af9277edd0ad6758e1006d25223 Mon Sep 17 00:00:00 2001 From: txh18 Date: Sun, 13 Dec 2015 21:22:29 +0800 Subject: bug fix in lmptb.vocab --- nerv/examples/lmptb/lmptb/lmvocab.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerv/examples/lmptb/lmptb/lmvocab.lua b/nerv/examples/lmptb/lmptb/lmvocab.lua index 7f512fd..0e7ef3e 100644 --- a/nerv/examples/lmptb/lmptb/lmvocab.lua +++ b/nerv/examples/lmptb/lmptb/lmvocab.lua @@ -100,7 +100,7 @@ function Vocab:get_word_id(key) if (self.map_id[key] == nil) then nerv.error("id key %d does not exist.", key) end - return self.map_id(key) + return self.map_id[key] end --fn: string -- cgit v1.2.3-70-g09d2