aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcloudygoose <[email protected]>2015-12-28 19:48:38 +0800
committercloudygoose <[email protected]>2015-12-28 19:48:38 +0800
commita19bc6e923bbe7bed239d990ebd75f386c556f66 (patch)
tree81a4c8abec2e8bf8fb462b22274d7c48a205db13
parente59ce9cfcbe283955a616e0e05347d132d671e31 (diff)
added unk_cn to LMResult
-rw-r--r--nerv/examples/lmptb/lmptb/lmutil.lua2
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")