diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-04-14 01:52:14 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-04-14 01:52:14 -0400 |
commit | 19147c5f45b40eac1e0ae1bc8bc8ccf90d1ea56c (patch) | |
tree | 36cb3175a60cd2bebf711ca3ec61fcd2dbec8760 /rst_parser/rst_test.cc | |
parent | 8b7872d6e72ad87cdc8411b0deff92ff9b4c2a95 (diff) |
matrix tree theorem stuff
Diffstat (limited to 'rst_parser/rst_test.cc')
-rw-r--r-- | rst_parser/rst_test.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/rst_parser/rst_test.cc b/rst_parser/rst_test.cc index e8fe706e..8995515f 100644 --- a/rst_parser/rst_test.cc +++ b/rst_parser/rst_test.cc @@ -26,8 +26,13 @@ int main(int argc, char** argv) { af(0,2).edge_prob.logeq(10); af(0,1).edge_prob.logeq(9); af(0,3).edge_prob.logeq(9); - SpanningTree tree; - af.MaximumSpanningTree(&tree); + EdgeSubset tree; +// af.MaximumEdgeSubset(&tree); + double lz; + af.EdgeMarginals(&lz); + cerr << "Z = " << lz << endl; + af.PickBestParentForEachWord(&tree); + cerr << tree << endl; return 0; } |