summaryrefslogtreecommitdiff
path: root/rst_parser/rst.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-04-16 00:18:20 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-04-16 00:18:20 -0400
commitc5ec52ded3f14271e25e97cefc8bac03b176f297 (patch)
tree4a683b23660c21005cda8373b8f1cd8665f60b39 /rst_parser/rst.h
parent248a52265f32e6bf730c1f647e22be3a7728d556 (diff)
rst algorithm
Diffstat (limited to 'rst_parser/rst.h')
-rw-r--r--rst_parser/rst.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/rst_parser/rst.h b/rst_parser/rst.h
index 865871eb..a269ff9b 100644
--- a/rst_parser/rst.h
+++ b/rst_parser/rst.h
@@ -1,10 +1,15 @@
#ifndef _RST_H_
#define _RST_H_
+#include <vector>
+#include "sampler.h"
#include "arc_factored.h"
-struct StochasticForest {
- explicit StochasticForest(const ArcFactoredForest& af);
+struct TreeSampler {
+ explicit TreeSampler(const ArcFactoredForest& af);
+ void SampleRandomSpanningTree(EdgeSubset* tree);
+ const ArcFactoredForest& forest;
+ std::vector<SampleSet<double> > usucc;
};
#endif