diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-03-17 14:43:18 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-03-17 14:43:18 +0400 |
commit | e389b8f51d431b8aa4d1764aa0eea8e73aa32b5b (patch) | |
tree | 32aba80b38320991937a242c77a9e0cfc9ac56db /contrib/other-builds/manual-label | |
parent | 4ccbfc59d0018b6e862e2221acd973dcc7c7b3d0 (diff) |
dumb labelling - label constituent with character if start & end words begin with that character
Diffstat (limited to 'contrib/other-builds/manual-label')
-rw-r--r-- | contrib/other-builds/manual-label/LabelByInitialLetter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/other-builds/manual-label/LabelByInitialLetter.cpp b/contrib/other-builds/manual-label/LabelByInitialLetter.cpp index 9ce0c8be6..e4136a7ea 100644 --- a/contrib/other-builds/manual-label/LabelByInitialLetter.cpp +++ b/contrib/other-builds/manual-label/LabelByInitialLetter.cpp @@ -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); |