diff options
author | txh18 <[email protected]> | 2015-12-13 21:22:29 +0800 |
---|---|---|
committer | txh18 <[email protected]> | 2015-12-13 21:22:29 +0800 |
commit | 60ddaa4807978af9277edd0ad6758e1006d25223 (patch) | |
tree | f3752ef8eab33625db84ce05d56f1576deca7158 | |
parent | cbcdec35ae17511d7ff022f290e97c518d7a1f1b (diff) |
bug fix in lmptb.vocab
-rw-r--r-- | nerv/examples/lmptb/lmptb/lmvocab.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |