From b46caaa702b672e3bb5bc9f7425aefac93f15287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Grali=C5=84ski?= Date: Wed, 12 Sep 2018 12:44:36 +0200 Subject: [PATCH 1/2] Fix README.md generated for LikelihoodHashed --- src/GEval/CreateChallenge.hs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/GEval/CreateChallenge.hs b/src/GEval/CreateChallenge.hs index f6a939f..de13af9 100644 --- a/src/GEval/CreateChallenge.hs +++ b/src/GEval/CreateChallenge.hs @@ -131,7 +131,11 @@ Format of the output files -------------------------- For each input line, a probability distribution for words in a gap -must be given: +must be given with either logprobs or probs. + +### Logprobs + +The distribution could be given with logprobs: word1:logprob1 word2:logprob2 ... wordN:logprobN :logprob0 @@ -142,8 +146,7 @@ respective probabilities do not sum up to 1: * if the sum is larger than 0.0 and smaller than 1.0, and no logprob0 is given, log of the remaining probablity mass will be assigned to logprob0, - * otherwise they will be normalised with. -softmax + * otherwise they will be normalised with softmax. Note: the separator here is space, not TAB! From 83b6b39fca167e0cc930dbebf394651b2bad8cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Grali=C5=84ski?= Date: Wed, 12 Sep 2018 13:48:31 +0200 Subject: [PATCH 2/2] Fix error message --- src/GEval/Core.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEval/Core.hs b/src/GEval/Core.hs index d8aa0df..b5fa607 100644 --- a/src/GEval/Core.hs +++ b/src/GEval/Core.hs @@ -283,7 +283,7 @@ instance Show GEvalException where show TooManyLinesInInput = "Too many lines in the input file" show EmptyOutput = "The output file is empty" show (UnexpectedData lineNo message) = "Line " ++ (show lineNo) ++ ": Unexpected data [" ++ message ++ "]" - show UnexpectedMultipleOutputs = "Multiple outputs are not possible in this mode" + show UnexpectedMultipleOutputs = "Multiple outputs are not possible in this mode, use -o option to select an output file" somethingWrongWithFilesMessage :: String -> FilePath -> String somethingWrongWithFilesMessage msg filePath = Prelude.concat