Merge branch 'master' of ssh://gonito.net/geval

This commit is contained in:
Filip Gralinski 2018-09-12 20:37:56 +02:00
commit e4128212b1
2 changed files with 7 additions and 4 deletions

View File

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

View File

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