summaryrefslogtreecommitdiff
path: root/klm/search/types.hh
blob: f9c849b3f2cbe09208abef41358fc13210c8103d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef SEARCH_TYPES__
#define SEARCH_TYPES__

#include <stdint.h>

namespace lm { namespace ngram { class ChartState; } }

namespace search {

typedef float Score;

typedef uint32_t Arity;

union Note {
  const void *vp;
};

typedef void *History;

struct NBestComplete {
  NBestComplete(History in_history, const lm::ngram::ChartState &in_state, Score in_score) 
    : history(in_history), state(&in_state), score(in_score) {}

  History history;
  const lm::ngram::ChartState *state;
  Score score;
};

} // namespace search

#endif // SEARCH_TYPES__