commit 39e141be40b11438f1d731efaff6b8465d396c80 Author: aboelhamd Date: Wed Jul 31 20:40:41 2019 +0200 small modification in -u flag. diff --git a/src/RulesApplier.cpp b/src/RulesApplier.cpp index be95807..f45adb1 100644 --- a/src/RulesApplier.cpp +++ b/src/RulesApplier.cpp @@ -126,14 +126,15 @@ int main(int argc, char **argv) { string tokenizedSentence; while (getline(lextorFile, tokenizedSentence)) { allSents++; - if (!newLextorFilePath.empty() - && tokenizedSentence.find("^*") != string::npos) - continue; + if (!newLextorFilePath.empty()) { + if (tokenizedSentence.find("^*") != string::npos) + continue; + // write to new lextor file + newLextorFile << tokenizedSentence << endl; + } goodSents++; - // write to new lextor file - newLextorFile << tokenizedSentence << endl; - // cout << i++ << endl; +// cout << allSents << endl; // spaces after each token vector spaces;