Skip to content

Commit ab24676

Browse files
Jiangming LiuJiangming Liu
authored andcommitted
add EVALB
1 parent 045c606 commit ab24676

File tree

17 files changed

+2357
-0
lines changed

17 files changed

+2357
-0
lines changed

EVALB/COLLINS.prm

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
##------------------------------------------##
2+
## Debug mode ##
3+
## 0: No debugging ##
4+
## 1: print data for individual sentence ##
5+
##------------------------------------------##
6+
DEBUG 0
7+
8+
##------------------------------------------##
9+
## MAX error ##
10+
## Number of error to stop the process. ##
11+
## This is useful if there could be ##
12+
## tokanization error. ##
13+
## The process will stop when this number##
14+
## of errors are accumulated. ##
15+
##------------------------------------------##
16+
MAX_ERROR 10
17+
18+
##------------------------------------------##
19+
## Cut-off length for statistics ##
20+
## At the end of evaluation, the ##
21+
## statistics for the senetnces of length##
22+
## less than or equal to this number will##
23+
## be shown, on top of the statistics ##
24+
## for all the sentences ##
25+
##------------------------------------------##
26+
CUTOFF_LEN 40
27+
28+
##------------------------------------------##
29+
## unlabeled or labeled bracketing ##
30+
## 0: unlabeled bracketing ##
31+
## 1: labeled bracketing ##
32+
##------------------------------------------##
33+
LABELED 1
34+
35+
##------------------------------------------##
36+
## Delete labels ##
37+
## list of labels to be ignored. ##
38+
## If it is a pre-terminal label, delete ##
39+
## the word along with the brackets. ##
40+
## If it is a non-terminal label, just ##
41+
## delete the brackets (don't delete ##
42+
## deildrens). ##
43+
##------------------------------------------##
44+
DELETE_LABEL TOP
45+
DELETE_LABEL -NONE-
46+
DELETE_LABEL ,
47+
DELETE_LABEL :
48+
DELETE_LABEL ``
49+
DELETE_LABEL ''
50+
DELETE_LABEL .
51+
52+
##------------------------------------------##
53+
## Delete labels for length calculation ##
54+
## list of labels to be ignored for ##
55+
## length calculation purpose ##
56+
##------------------------------------------##
57+
DELETE_LABEL_FOR_LENGTH -NONE-
58+
59+
##------------------------------------------##
60+
## Equivalent labels, words ##
61+
## the pairs are considered equivalent ##
62+
## This is non-directional. ##
63+
##------------------------------------------##
64+
EQ_LABEL ADVP PRT
65+
66+
# EQ_WORD Example example

EVALB/COLLINS_ch.prm

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
##------------------------------------------##
2+
## Debug mode ##
3+
## 0: No debugging ##
4+
## 1: print data for individual sentence ##
5+
##------------------------------------------##
6+
DEBUG 0
7+
8+
##------------------------------------------##
9+
## MAX error ##
10+
## Number of error to stop the process. ##
11+
## This is useful if there could be ##
12+
## tokanization error. ##
13+
## The process will stop when this number##
14+
## of errors are accumulated. ##
15+
##------------------------------------------##
16+
MAX_ERROR 10
17+
18+
##------------------------------------------##
19+
## Cut-off length for statistics ##
20+
## At the end of evaluation, the ##
21+
## statistics for the senetnces of length##
22+
## less than or equal to this number will##
23+
## be shown, on top of the statistics ##
24+
## for all the sentences ##
25+
##------------------------------------------##
26+
CUTOFF_LEN 40
27+
28+
##------------------------------------------##
29+
## unlabeled or labeled bracketing ##
30+
## 0: unlabeled bracketing ##
31+
## 1: labeled bracketing ##
32+
##------------------------------------------##
33+
LABELED 1
34+
35+
##------------------------------------------##
36+
## Delete labels ##
37+
## list of labels to be ignored. ##
38+
## If it is a pre-terminal label, delete ##
39+
## the word along with the brackets. ##
40+
## If it is a non-terminal label, just ##
41+
## delete the brackets (don't delete ##
42+
## deildrens). ##
43+
##------------------------------------------##
44+
DELETE_LABEL TOP
45+
DELETE_LABEL -NONE-
46+
DELETE_LABEL ,
47+
DELETE_LABEL :
48+
DELETE_LABEL ``
49+
DELETE_LABEL ''
50+
DELETE_LABEL .
51+
DELETE_LABEL PU
52+
##------------------------------------------##
53+
## Delete labels for length calculation ##
54+
## list of labels to be ignored for ##
55+
## length calculation purpose ##
56+
##------------------------------------------##
57+
DELETE_LABEL_FOR_LENGTH -NONE-
58+
59+
##------------------------------------------##
60+
## Equivalent labels, words ##
61+
## the pairs are considered equivalent ##
62+
## This is non-directional. ##
63+
##------------------------------------------##
64+
EQ_LABEL ADVP PRT
65+
66+
# EQ_WORD Example example

EVALB/LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org/>

EVALB/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
all: evalb
2+
3+
evalb: evalb.c
4+
gcc -Wall -g -o evalb evalb.c

0 commit comments

Comments
 (0)