mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
synchronise with old cold
This commit is contained in:
parent
f470b90645
commit
98fe921443
@ -57,6 +57,11 @@ std::vector<unsigned char> splitWordAll1(const StringPiece &textin)
|
||||
const char delim2[] = "-";
|
||||
std::vector<unsigned char> output;
|
||||
|
||||
//Case with no word alignments.
|
||||
if (textin.size() == 0) {
|
||||
return output;
|
||||
}
|
||||
|
||||
//Split on space
|
||||
util::TokenIter<util::MultiCharacter> it(textin, util::MultiCharacter(delim));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user