diff options
author | Matous Machacek <machacekmatous@gmail.com> | 2012-05-09 21:21:41 +0400 |
---|---|---|
committer | Matous Machacek <machacekmatous@gmail.com> | 2012-05-09 21:21:41 +0400 |
commit | 440650bd6e03cdea9aa2d3f11b32697bb9340ca0 (patch) | |
tree | 6f49c63ee721bbabdc0aaace4b2548681eae0d2b /mert/SemposScorer.cpp | |
parent | 10821a9980c5bdd29a0b03c5fe3a9e1fa7b52a5c (diff) |
Added support for external unix filters to preprocess sentences in mert and evaluator
Diffstat (limited to 'mert/SemposScorer.cpp')
-rw-r--r-- | mert/SemposScorer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/SemposScorer.cpp b/mert/SemposScorer.cpp index f2879feb8..30105c01f 100644 --- a/mert/SemposScorer.cpp +++ b/mert/SemposScorer.cpp @@ -43,7 +43,7 @@ void SemposScorer::setReferenceFiles(const vector<string>& referenceFiles) m_ref_sentences.push_back(vector<sentence_t>()); string line; while (getline(refin,line)) { - line = applyFactors(line); + line = preprocessSentence(line); str_sentence_t sentence; splitSentence(line, sentence); @@ -60,7 +60,7 @@ void SemposScorer::prepareStats(size_t sid, const string& text, ScoreStats& entr { vector<ScoreStatsType> stats; - const string& sentence = applyFactors(text); + const string& sentence = preprocessSentence(text); str_sentence_t splitCandSentence; splitSentence(sentence, splitCandSentence); |