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 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!