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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
typedef int 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-05-10 02:51:05 +04:00
|
|
|
typedef std::map<std::size_t, std::string> idx2name;
|
|
|
|
typedef std::map<std::string, std::size_t> name2idx;
|
2008-05-27 20:50:52 +04:00
|
|
|
|
2012-02-20 04:46:08 +04:00
|
|
|
#endif // MERT_TYPE_H_
|