mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
fix detokenising : in abbrev. case suffix case
This commit is contained in:
parent
54e55f2dcb
commit
5817806ec7
@ -176,6 +176,10 @@ sub detokenize {
|
||||
|
||||
}
|
||||
|
||||
} elsif (($language eq "fi") && ($words[$i-1] =~ /:$/) && ($words[$i] =~ /^(N|n|ssa|ssä|a|ä|lla|llä|lta|ltä|lle|ksi|kse)(ni|si|mme|nne|nsa)?(ko|kö|han|hän|pa|pä|kaan|kään|kin)?$/)) {
|
||||
# Finnish : without intervening space if followed by case suffix
|
||||
$text=$text.$words[$i];
|
||||
$prependSpace = " ";
|
||||
} else {
|
||||
$text=$text.$prependSpace.$words[$i];
|
||||
$prependSpace = " ";
|
||||
|
Loading…
Reference in New Issue
Block a user