mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Merge pull request #169 from lonevvolf/master
Fix for number at the end of a string
This commit is contained in:
commit
fc8829cdda
@ -88,7 +88,7 @@ sub recognize {
|
||||
$isRecognized = 0;
|
||||
}
|
||||
|
||||
if ($end == length($input) -1 || substr($input, $end, 1) eq " ") {
|
||||
if ($end == length($input) || substr($input, $end, 1) eq " ") {
|
||||
# last word, or next char is a space
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user