diff options
author | cloudygoose <[email protected]> | 2015-12-28 19:48:38 +0800 |
---|---|---|
committer | cloudygoose <[email protected]> | 2015-12-28 19:48:38 +0800 |
commit | a19bc6e923bbe7bed239d990ebd75f386c556f66 (patch) | |
tree | 81a4c8abec2e8bf8fb462b22274d7c48a205db13 | |
parent | e59ce9cfcbe283955a616e0e05347d132d671e31 (diff) |
added unk_cn to LMResult
-rw-r--r-- | nerv/examples/lmptb/lmptb/lmutil.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nerv/examples/lmptb/lmptb/lmutil.lua b/nerv/examples/lmptb/lmptb/lmutil.lua index 27b4b10..6d66d6e 100644 --- a/nerv/examples/lmptb/lmptb/lmutil.lua +++ b/nerv/examples/lmptb/lmptb/lmutil.lua @@ -141,7 +141,7 @@ function Result:logp_sample(cla) end function Result:status(cla) - return "LMResult status of " .. cla .. ": " .. "<SEN_CN " .. self[cla].cn_sen .. "> <W_CN " .. self[cla].cn_w .. "> <PPL_NET " .. self:ppl_net(cla) .. "> <PPL_OOV " .. self:ppl_all(cla) .. "> <LOGP " .. self[cla].logp_all .. ">" + return "LMResult status of " .. cla .. ": " .. "<SEN_CN " .. self[cla].cn_sen .. "> <W_CN " .. self[cla].cn_w .. "> <UNK_CN " .. self[cla].cn_unk .. "> <PPL_NET " .. self:ppl_net(cla) .. "> <PPL_OOV " .. self:ppl_all(cla) .. "> <LOGP " .. self[cla].logp_all .. ">" end local Timer = nerv.class("nerv.Timer") |