2012-02-20 04:46:08 +04:00
|
|
|
#ifndef MERT_SCORER_FACTORY_H_
|
|
|
|
#define MERT_SCORER_FACTORY_H_
|
2008-06-03 12:56:37 +04:00
|
|
|
|
|
|
|
#include <vector>
|
2011-11-14 10:15:30 +04:00
|
|
|
#include <string>
|
2008-06-03 12:56:37 +04:00
|
|
|
|
2012-06-30 23:23:45 +04:00
|
|
|
namespace MosesTuning
|
|
|
|
{
|
|
|
|
|
|
|
|
|
2011-11-14 10:15:30 +04:00
|
|
|
class Scorer;
|
2008-06-03 12:56:37 +04:00
|
|
|
|
2011-02-24 15:42:19 +03:00
|
|
|
class ScorerFactory
|
|
|
|
{
|
|
|
|
public:
|
2011-11-14 10:15:30 +04:00
|
|
|
static std::vector<std::string> getTypes();
|
2008-06-03 12:56:37 +04:00
|
|
|
|
2011-11-14 10:15:30 +04:00
|
|
|
static Scorer* getScorer(const std::string& type, const std::string& config = "");
|
2011-11-11 15:40:59 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
ScorerFactory() {}
|
|
|
|
~ScorerFactory() {}
|
2008-06-03 12:56:37 +04:00
|
|
|
};
|
|
|
|
|
2012-06-30 23:23:45 +04:00
|
|
|
}
|
|
|
|
|
2012-02-20 04:46:08 +04:00
|
|
|
#endif // MERT_SCORER_FACTORY_H_
|