mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-01 00:12:27 +03:00
Add a space before double punctuation signs in French
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4016 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
85283f5bee
commit
cdc4179ce1
@ -78,6 +78,9 @@ sub detokenize {
|
||||
$text = $text.$prependSpace.$words[$i];
|
||||
$prependSpace = "";
|
||||
} elsif ($words[$i] =~ /^[\,\.\?\!\:\;\\\%\}\]\)]+$/){
|
||||
if (($language eq "fr") && ($words[$i] =~ /^[\?\!\:\;\\\%]$/)) {
|
||||
#these punctuations are prefixed with a non-breakable space in french
|
||||
$text .= " "; }
|
||||
#perform left shift on punctuation items
|
||||
$text=$text.$words[$i];
|
||||
$prependSpace = " ";
|
||||
|
Loading…
Reference in New Issue
Block a user