ALT_TESTBED
2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
=NOTE: This file is for developers -- don't let it confuse you if are
just giving MSTParser a spin. Check out README and ALT_README instead.
To test that changes to the code have not messed up previous results,
do the following.
---------------------------------------------------------------------
1. Parse English in MST format:
Run the parser as such:
> mst_parse.sh format:MST train train-file:data/train.lab model-name:testbed/model test test-file:data/test.lab output-file:testbed/my_english_parses.mst eval gold-file:data/test.lab
Score the results:
> mst_score.sh data/test.lab testbed/my_english_parses.mst MST > testbed/my_english_score.txt
Then compare "english_parses.mst" to "my_english_parses.mst" and "english_score.txt" to
"my_english_score.txt" -- they should be the same. (diff them)
---------------------------------------------------------------------
2. Parse Portuguese in CONLL format:
> mst_parse.sh format:CONLL train train-file:data/portuguese/floresta_train.conll model-name:testbed/model test test-file:data/portuguese/floresta_test.conll output-file:testbed/my_floresta_parses.conll eval gold-file:data/portuguese/floresta_test.conll
Score the results:
> mst_score.sh data/portuguese/floresta_test.conll testbed/my_floresta_parses.conll CONLL > testbed/my_floresta_score.txt
Compare as with English on the obvious file names.
---------------------------------------------------------------------
3. Parse English with second order model.
Run the parser as such:
> mst_parse.sh format:MST train train-file:data/train.lab model-name:testbed/model test test-file:data/test.lab output-file:testbed/my_english_parses_order2.mst eval gold-file:data/test.lab order:2
Score the results:
> mst_score.sh data/test.lab testbed/my_english_parses_order2.mst MST > testbed/my_english_score_order2.txt
Compare with english_score_order2.txt.
---------------------------------------------------------------------
4. Parse Portuguese in CONLL format with second order model:
> mst_parse.sh train train-file:data/portuguese/floresta_train.conll test test-file:data/portuguese/floresta_test.conll output-file:out.txt eval gold-file:data/portuguese/floresta_test.conll order:2 decode-type:non-proj