diff options
author | Matous Machacek <machacekmatous@gmail.com> | 2012-02-28 05:27:23 +0400 |
---|---|---|
committer | Matous Machacek <machacekmatous@gmail.com> | 2012-02-28 05:27:23 +0400 |
commit | ba987c94ba9be5e7c8eb9c3e7c83d8f971fbd3aa (patch) | |
tree | 4140bd7b8fcef62012d2fe59956dcc81bb25c2bd /mert/InterpolatedScorer.h | |
parent | e38cd12ef3385304a4b363ca9b9ab16ed886a2ff (diff) |
Support for using factors in mert and evaluator
example:
Use --factor "0|2" to use only first and third factor from nbest list and from reference.
If you use interpolated scorer, separate records with comma (e.g. --factor "0|2,1").
Diffstat (limited to 'mert/InterpolatedScorer.h')
-rw-r--r-- | mert/InterpolatedScorer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mert/InterpolatedScorer.h b/mert/InterpolatedScorer.h index d8eb87e3f..2a538bc39 100644 --- a/mert/InterpolatedScorer.h +++ b/mert/InterpolatedScorer.h @@ -42,6 +42,11 @@ public: virtual void setScoreData(ScoreData* data); + /** + * Set the factors, which should be used for this metric + */ + virtual void setFactors(const string& factors); + protected: ScopedVector<Scorer> _scorers; |