2012-10-15 16:58:33 +04:00
|
|
|
#ifndef SEARCH_TYPES__
|
|
|
|
#define SEARCH_TYPES__
|
|
|
|
|
2012-10-16 15:57:18 +04:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2014-10-10 17:22:53 +04:00
|
|
|
namespace lm { namespace ngram { struct ChartState; } }
|
2012-11-15 22:04:07 +04:00
|
|
|
|
2012-10-15 16:58:33 +04:00
|
|
|
namespace search {
|
|
|
|
|
|
|
|
typedef float Score;
|
|
|
|
|
2012-10-16 15:57:18 +04:00
|
|
|
typedef uint32_t Arity;
|
2012-10-15 16:58:33 +04:00
|
|
|
|
2012-11-15 22:04:07 +04:00
|
|
|
union Note {
|
|
|
|
const void *vp;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef void *History;
|
|
|
|
|
|
|
|
struct NBestComplete {
|
2015-04-30 08:05:11 +03:00
|
|
|
NBestComplete(History in_history, const lm::ngram::ChartState &in_state, Score in_score)
|
2012-11-15 22:04:07 +04:00
|
|
|
: history(in_history), state(&in_state), score(in_score) {}
|
|
|
|
|
|
|
|
History history;
|
|
|
|
const lm::ngram::ChartState *state;
|
|
|
|
Score score;
|
|
|
|
};
|
|
|
|
|
2012-10-15 16:58:33 +04:00
|
|
|
} // namespace search
|
|
|
|
|
|
|
|
#endif // SEARCH_TYPES__
|