diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 16:26:47 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 16:26:47 +0400 |
commit | 5cd5b90d0d6490e262a0ff8e45be2f11a1c1067e (patch) | |
tree | 1a6a816eb9512fcc31d063818078d4fd82cd6cb0 /mert/Scorer.h | |
parent | 17e864e446a3a97f2399c4c1a7a234d6ab41e5ed (diff) |
Create a initialize function.
Diffstat (limited to 'mert/Scorer.h')
-rw-r--r-- | mert/Scorer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mert/Scorer.h b/mert/Scorer.h index 1d9555735..f2f54670a 100644 --- a/mert/Scorer.h +++ b/mert/Scorer.h @@ -37,21 +37,19 @@ class Scorer * Set the reference files. This must be called before prepareStats(). */ virtual void setReferenceFiles(const vector<string>& referenceFiles) { - //do nothing + // do nothing } /** * Process the given guessed text, corresponding to the given reference sindex * and add the appropriate statistics to the entry. */ - virtual void prepareStats(size_t sindex, const string& text, ScoreStats& entry) - {} + virtual void prepareStats(size_t sindex, const string& text, ScoreStats& entry) { + // do nothing. + } virtual void prepareStats(const string& sindex, const string& text, ScoreStats& entry) { - -// cerr << sindex << endl; this->prepareStats(static_cast<size_t>(atoi(sindex.c_str())), text, entry); - //cerr << text << std::endl; } /** @@ -111,6 +109,8 @@ class Scorer std::map<std::string, int> m_vocab; }; + void InitConfig(const string& config); + string m_name; Encoder* m_encoder; map<string, string> m_config; |