summaryrefslogtreecommitdiff
path: root/training/kbest_repository.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-05-27 22:28:34 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-05-27 22:28:34 -0400
commitfc936db02d42cc3978a4cc2017efe7a15c78855d (patch)
treea81b77c171f1c1d0a32f98f564d89e7f9966b0c1 /training/kbest_repository.h
parent69593203e6e8df7dad5d8839a74b37bbc7500088 (diff)
kbest repo
Diffstat (limited to 'training/kbest_repository.h')
-rw-r--r--training/kbest_repository.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/training/kbest_repository.h b/training/kbest_repository.h
new file mode 100644
index 00000000..0345394a
--- /dev/null
+++ b/training/kbest_repository.h
@@ -0,0 +1,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