mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +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[] = "-";
|
const char delim2[] = "-";
|
||||||
std::vector<unsigned char> output;
|
std::vector<unsigned char> output;
|
||||||
|
|
||||||
|
//Case with no word alignments.
|
||||||
|
if (textin.size() == 0) {
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
//Split on space
|
//Split on space
|
||||||
util::TokenIter<util::MultiCharacter> it(textin, util::MultiCharacter(delim));
|
util::TokenIter<util::MultiCharacter> it(textin, util::MultiCharacter(delim));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user