diff options
author | Eva Hasler <evahasler@gmail.com> | 2012-03-27 00:17:10 +0400 |
---|---|---|
committer | Eva Hasler <evahasler@gmail.com> | 2012-03-27 00:17:10 +0400 |
commit | 614c98e6825ac5286c42dee259a63a23531e8ca9 (patch) | |
tree | a5db03ed9553b59152c2b9a77eb2072483f3b8b0 /mert | |
parent | 67588813570dc2ab762f4c5e0fffc041983d09ba (diff) |
fix feature name splitting to split on last colon
Diffstat (limited to 'mert')
-rw-r--r-- | mert/FeatureDataIterator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/FeatureDataIterator.cpp b/mert/FeatureDataIterator.cpp index 00b59bc38..c11664817 100644 --- a/mert/FeatureDataIterator.cpp +++ b/mert/FeatureDataIterator.cpp @@ -71,7 +71,7 @@ void FeatureDataIterator::readNext() { StringPiece line = m_in->ReadLine(); m_next.push_back(FeatureDataItem()); for (TokenIter<AnyCharacter, true> token(line, AnyCharacter(" \t")); token; ++token) { - TokenIter<AnyCharacter,false> value(*token,AnyCharacter(":")); + TokenIter<AnyCharacterLast,false> value(*token,AnyCharacterLast(":")); if (!value) throw FileFormatException(m_in->FileName(), line.as_string()); StringPiece first = *value; ++value; |