mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
dumb labelling - label constituent with character if start & end words begin with that character
This commit is contained in:
parent
4ccbfc59d0
commit
e389b8f51d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user