diff options
Diffstat (limited to 'moses/TranslationModel/ProbingPT/hash.cpp')
-rw-r--r-- | moses/TranslationModel/ProbingPT/hash.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/moses/TranslationModel/ProbingPT/hash.cpp b/moses/TranslationModel/ProbingPT/hash.cpp index 27a64b129..47242e25d 100644 --- a/moses/TranslationModel/ProbingPT/hash.cpp +++ b/moses/TranslationModel/ProbingPT/hash.cpp @@ -21,16 +21,16 @@ std::vector<uint64_t> getVocabIDs(const StringPiece &textin) util::TokenIter<util::SingleCharacter> itWord(textin, util::SingleCharacter(' ')); while (itWord) { - StringPiece word = *itWord; - uint64_t id = 0; + StringPiece word = *itWord; + uint64_t id = 0; - util::TokenIter<util::SingleCharacter> itFactor(word, util::SingleCharacter('|')); + util::TokenIter<util::SingleCharacter> itFactor(word, util::SingleCharacter('|')); while (itFactor) { - StringPiece factor = *itFactor; - //cerr << "factor=" << factor << endl; + StringPiece factor = *itFactor; + //cerr << "factor=" << factor << endl; - id += getHash(factor); - itFactor++; + id += getHash(factor); + itFactor++; } output.push_back(id); |