summaryrefslogtreecommitdiff
path: root/rst_parser/rst_test.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-04-15 17:28:08 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-04-15 17:28:08 -0400
commit8d51973c21337a1633e559cd09a649265600cc4c (patch)
tree43b212e2a577d49ddee43b32aa3ef391de4cc1a6 /rst_parser/rst_test.cc
parentc22e9248a1fa24b0255a55d21afb94a9ed3ddc22 (diff)
crf training of arc-factored dep parser
Diffstat (limited to 'rst_parser/rst_test.cc')
-rw-r--r--rst_parser/rst_test.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/rst_parser/rst_test.cc b/rst_parser/rst_test.cc
index 8995515f..7e6fb2c1 100644
--- a/rst_parser/rst_test.cc
+++ b/rst_parser/rst_test.cc
@@ -17,15 +17,15 @@ int main(int argc, char** argv) {
// (0, 1) 9
// (0, 3) 9
ArcFactoredForest af(3);
- af(1,2).edge_prob.logeq(20);
- af(1,3).edge_prob.logeq(3);
- af(2,1).edge_prob.logeq(20);
- af(2,3).edge_prob.logeq(30);
- af(3,2).edge_prob.logeq(0);
- af(3,1).edge_prob.logeq(11);
- af(0,2).edge_prob.logeq(10);
- af(0,1).edge_prob.logeq(9);
- af(0,3).edge_prob.logeq(9);
+ af(0,1).edge_prob.logeq(20);
+ af(0,2).edge_prob.logeq(3);
+ af(1,0).edge_prob.logeq(20);
+ af(1,2).edge_prob.logeq(30);
+ af(2,1).edge_prob.logeq(0);
+ af(2,0).edge_prob.logeq(11);
+ af(-1,1).edge_prob.logeq(10);
+ af(-1,0).edge_prob.logeq(9);
+ af(-1,2).edge_prob.logeq(9);
EdgeSubset tree;
// af.MaximumEdgeSubset(&tree);
double lz;