Merge branch 'master' of ssh://gonito.net/geval
This commit is contained in:
commit
e4128212b1
@ -283,7 +283,7 @@ instance Show GEvalException where
|
|||||||
show TooManyLinesInInput = "Too many lines in the input file"
|
show TooManyLinesInInput = "Too many lines in the input file"
|
||||||
show EmptyOutput = "The output file is empty"
|
show EmptyOutput = "The output file is empty"
|
||||||
show (UnexpectedData lineNo message) = "Line " ++ (show lineNo) ++ ": Unexpected data [" ++ message ++ "]"
|
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 :: String -> FilePath -> String
|
||||||
somethingWrongWithFilesMessage msg filePath = Prelude.concat
|
somethingWrongWithFilesMessage msg filePath = Prelude.concat
|
||||||
|
@ -131,7 +131,11 @@ Format of the output files
|
|||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
For each input line, a probability distribution for words in a gap
|
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
|
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
|
* 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,
|
is given, log of the remaining probablity mass will be assigned to logprob0,
|
||||||
* otherwise they will be normalised with.
|
* otherwise they will be normalised with softmax.
|
||||||
softmax
|
|
||||||
|
|
||||||
Note: the separator here is space, not TAB!
|
Note: the separator here is space, not TAB!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user