Skip to content

Commit

Permalink
add EVALB
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiangming Liu authored and Jiangming Liu committed Jul 20, 2017
1 parent 045c606 commit ab24676
Show file tree
Hide file tree
Showing 17 changed files with 2,357 additions and 0 deletions.
66 changes: 66 additions & 0 deletions EVALB/COLLINS.prm
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
##------------------------------------------##
## Debug mode ##
## 0: No debugging ##
## 1: print data for individual sentence ##
##------------------------------------------##
DEBUG 0

##------------------------------------------##
## MAX error ##
## Number of error to stop the process. ##
## This is useful if there could be ##
## tokanization error. ##
## The process will stop when this number##
## of errors are accumulated. ##
##------------------------------------------##
MAX_ERROR 10

##------------------------------------------##
## Cut-off length for statistics ##
## At the end of evaluation, the ##
## statistics for the senetnces of length##
## less than or equal to this number will##
## be shown, on top of the statistics ##
## for all the sentences ##
##------------------------------------------##
CUTOFF_LEN 40

##------------------------------------------##
## unlabeled or labeled bracketing ##
## 0: unlabeled bracketing ##
## 1: labeled bracketing ##
##------------------------------------------##
LABELED 1

##------------------------------------------##
## Delete labels ##
## list of labels to be ignored. ##
## If it is a pre-terminal label, delete ##
## the word along with the brackets. ##
## If it is a non-terminal label, just ##
## delete the brackets (don't delete ##
## deildrens). ##
##------------------------------------------##
DELETE_LABEL TOP
DELETE_LABEL -NONE-
DELETE_LABEL ,
DELETE_LABEL :
DELETE_LABEL ``
DELETE_LABEL ''
DELETE_LABEL .

##------------------------------------------##
## Delete labels for length calculation ##
## list of labels to be ignored for ##
## length calculation purpose ##
##------------------------------------------##
DELETE_LABEL_FOR_LENGTH -NONE-

##------------------------------------------##
## Equivalent labels, words ##
## the pairs are considered equivalent ##
## This is non-directional. ##
##------------------------------------------##
EQ_LABEL ADVP PRT

# EQ_WORD Example example
66 changes: 66 additions & 0 deletions EVALB/COLLINS_ch.prm
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
##------------------------------------------##
## Debug mode ##
## 0: No debugging ##
## 1: print data for individual sentence ##
##------------------------------------------##
DEBUG 0

##------------------------------------------##
## MAX error ##
## Number of error to stop the process. ##
## This is useful if there could be ##
## tokanization error. ##
## The process will stop when this number##
## of errors are accumulated. ##
##------------------------------------------##
MAX_ERROR 10

##------------------------------------------##
## Cut-off length for statistics ##
## At the end of evaluation, the ##
## statistics for the senetnces of length##
## less than or equal to this number will##
## be shown, on top of the statistics ##
## for all the sentences ##
##------------------------------------------##
CUTOFF_LEN 40

##------------------------------------------##
## unlabeled or labeled bracketing ##
## 0: unlabeled bracketing ##
## 1: labeled bracketing ##
##------------------------------------------##
LABELED 1

##------------------------------------------##
## Delete labels ##
## list of labels to be ignored. ##
## If it is a pre-terminal label, delete ##
## the word along with the brackets. ##
## If it is a non-terminal label, just ##
## delete the brackets (don't delete ##
## deildrens). ##
##------------------------------------------##
DELETE_LABEL TOP
DELETE_LABEL -NONE-
DELETE_LABEL ,
DELETE_LABEL :
DELETE_LABEL ``
DELETE_LABEL ''
DELETE_LABEL .
DELETE_LABEL PU
##------------------------------------------##
## Delete labels for length calculation ##
## list of labels to be ignored for ##
## length calculation purpose ##
##------------------------------------------##
DELETE_LABEL_FOR_LENGTH -NONE-

##------------------------------------------##
## Equivalent labels, words ##
## the pairs are considered equivalent ##
## This is non-directional. ##
##------------------------------------------##
EQ_LABEL ADVP PRT

# EQ_WORD Example example
24 changes: 24 additions & 0 deletions EVALB/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>
4 changes: 4 additions & 0 deletions EVALB/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all: evalb

evalb: evalb.c
gcc -Wall -g -o evalb evalb.c
Loading

0 comments on commit ab24676

Please sign in to comment.