2012-02-20 04:46:08 +04:00
|
|
|
#ifndef MERT_TYPE_H_
|
|
|
|
#define MERT_TYPE_H_
|
2011-11-12 04:16:05 +04:00
|
|
|
|
2008-10-17 01:14:38 +04:00
|
|
|
#include <vector>
|
2008-05-20 16:57:32 +04:00
|
|
|
#include <map>
|
2008-10-17 01:14:38 +04:00
|
|
|
#include <string>
|
2012-05-10 02:51:05 +04:00
|
|
|
#include <utility>
|
2008-05-27 20:50:52 +04:00
|
|
|
|
2012-06-30 23:23:45 +04:00
|
|
|
namespace MosesTuning
|
|
|
|
{
|
|
|
|
|
2008-05-27 20:50:52 +04:00
|
|
|
class FeatureStats;
|
|
|
|
class FeatureArray;
|
|
|
|
class FeatureData;
|
|
|
|
class ScoreStats;
|
|
|
|
class ScoreArray;
|
|
|
|
class ScoreData;
|
|
|
|
|
2008-05-15 23:09:01 +04:00
|
|
|
typedef float parameter_t;
|
2012-05-10 02:51:05 +04:00
|
|
|
//typedef std::vector<parameter_t> parameters_t;confusing; use std::vector<parameter_t>
|
|
|
|
typedef std::vector<std::pair<unsigned int, unsigned int> > diff_t;
|
|
|
|
typedef std::pair<float,diff_t > threshold;
|
|
|
|
typedef std::vector<diff_t> diffs_t;
|
|
|
|
typedef std::vector<unsigned int> candidates_t;
|
2008-05-27 20:50:52 +04:00
|
|
|
|
2008-05-15 23:09:01 +04:00
|
|
|
typedef float statscore_t;
|
2012-05-10 02:51:05 +04:00
|
|
|
typedef std::vector<statscore_t> statscores_t;
|
2008-05-15 23:09:01 +04:00
|
|
|
|
2008-05-27 20:50:52 +04:00
|
|
|
|
|
|
|
typedef float FeatureStatsType;
|
2008-06-05 11:23:34 +04:00
|
|
|
typedef FeatureStatsType* featstats_t;
|
2012-05-10 02:51:05 +04:00
|
|
|
//typedef std::vector<FeatureStatsType> featstats_t;
|
|
|
|
typedef std::vector<FeatureStats> featarray_t;
|
|
|
|
typedef std::vector<FeatureArray> featdata_t;
|
2008-05-27 20:50:52 +04:00
|
|
|
|
2014-09-16 19:36:45 +04:00
|
|
|
typedef float ScoreStatsType;
|
2008-06-05 21:03:54 +04:00
|
|
|
typedef ScoreStatsType* scorestats_t;
|
2012-05-10 02:51:05 +04:00
|
|
|
//typedef std::vector<ScoreStatsType> scorestats_t;
|
|
|
|
typedef std::vector<ScoreStats> scorearray_t;
|
|
|
|
typedef std::vector<ScoreArray> scoredata_t;
|
2008-05-27 20:50:52 +04:00
|
|
|
|
2012-12-06 20:39:22 +04:00
|
|
|
typedef std::map<std::size_t, int> idx2name;
|
|
|
|
typedef std::map<int, std::size_t> name2idx;
|
2008-05-27 20:50:52 +04:00
|
|
|
|
2012-06-22 21:19:16 +04:00
|
|
|
typedef enum { HAMMING_DISTANCE=0, KENDALL_DISTANCE } distanceMetric_t;
|
|
|
|
typedef enum { REFERENCE_CHOICE_AVERAGE=0, REFERENCE_CHOICE_CLOSEST } distanceMetricReferenceChoice_t;
|
|
|
|
|
2012-06-30 23:23:45 +04:00
|
|
|
}
|
|
|
|
|
2012-02-20 04:46:08 +04:00
|
|
|
#endif // MERT_TYPE_H_
|