Welcome to mirror list, hosted at ThFree Co, Russian Federation.

types.hh « search - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e1239dfd079991da3902e2f4597124f15829aa3f (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 { struct 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__