summaryrefslogtreecommitdiff
path: root/training/kbest_repository.h
blob: 0345394a540f6834526a6d758e3150904ae8dd9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _KBEST_REPOSITORY_H_
#define _KBEST_REPOSITORY_H_

#include <vector>
#include "wordid.h"
#include "ns.h"
#include "sparse_vector.h"

class KBestRepository {
  struct HypInfo {
    std::vector<WordID> words;
    SparseVector<double> x;
    SufficientStats score_stats;
  };

  std::vector<HypInfo> candidates;
};

#endif