dumb labelling - label constituent with character if start & end words begin with that character

This commit is contained in:
Hieu Hoang 2014-03-17 10:43:18 +00:00
parent 4ccbfc59d0
commit e389b8f51d

View File

@ -11,7 +11,7 @@ void LabelByInitialLetter(const Phrase &source, std::ostream &out)
const string &startWord = source[start][0];
string startChar = startWord.substr(0,1);
for (int end = start; end < source.size(); ++end) {
for (int end = start + 1; end < source.size(); ++end) {
const string &endWord = source[end][0];
string endChar = endWord.substr(0,1);