mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-24 20:32:59 +03:00
Korean words has spaces =)
This commit is contained in:
parent
3a0631a05b
commit
194964c017
@ -106,7 +106,7 @@ sub detokenize {
|
||||
my $prependSpace = " ";
|
||||
for ($i=0;$i<(scalar(@words));$i++) {
|
||||
if (&startsWithCJKChar($words[$i])) {
|
||||
if ($i > 0 && &endsWithCJKChar($words[$i-1])) {
|
||||
if (($i > 0 && &endsWithCJKChar($words[$i-1])) && ($language ne "ko")) {
|
||||
# perform left shift if this is a second consecutive CJK (Chinese/Japanese/Korean) word
|
||||
$text=$text.$words[$i];
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user