mosesdecoder/search/types.hh

32 lines
554 B
C++
Raw Normal View History

2012-10-15 16:58:33 +04:00
#ifndef SEARCH_TYPES__
#define SEARCH_TYPES__
#include <stdint.h>
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;
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 {
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__