From e389b8f51d431b8aa4d1764aa0eea8e73aa32b5b Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Mon, 17 Mar 2014 10:43:18 +0000 Subject: [PATCH] dumb labelling - label constituent with character if start & end words begin with that character --- contrib/other-builds/manual-label/LabelByInitialLetter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);