File: README.txt

package info (click to toggle)
tercpp 0.6.2%2Bsvn46-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 548 kB
  • ctags: 401
  • sloc: cpp: 4,279; makefile: 24; sh: 6
file content (50 lines) | stat: -rw-r--r-- 1,958 bytes parent folder | download | duplicates (4)
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
tercpp Version 0.6.2


- predicate :
	* boost library
	* cmake
	* autoconf
	* automake

- to compile and install :

modify the cbuild.sh and set the -DCMAKE_INSTALL_PREFIX= to the directory you want the tercpp and library be installed (i.e. : /usr).
Then run ./cbuild.sh to install


tercpp [--tercom] [--sgml] [--debugMode] [--noTxtIds] [--printAlignments] [-s|-c] [-P] -r ref[,ref2...] -h hyp :

                 --tercom       : to use the tercom standart normalization
                 --noTxtIds     : you don't have to add ids at the end of sentences
                 --sgml         : to score with sgml files (incompatible with --noTxtIds and plain text files)
                 --debugMode    : print debug messages
                 -s or -c       : to be case sensitive
                 -P             : do not take account of punctuation
                 --help         : print this help message.
		 --printAlignments : print all the final alignements in a separate output file

the ref and hyp file format with ids is like this :
==================
my sentence (1)
other sentence (2)
...
==================
if you don't want to add some ids use the switch --noTxtIds.

you can submit multiple reference files by separating them with comma.


at last, to use it simply run tercpp

Enjoy !!!

Christophe
(christophe.servan@lium.univ-lemans.fr)

NB:
This code is based on the Snover's algorithm provided at http://www.cs.umd.edu/~snover/tercom

References : 
Matthew Snover, Bonnie Dorr, Richard Schwartz, Linnea Micciulla and John Makhoul, "A Study of Translation Edit Rate with Targeted Human Annotation," Proceedings of Association for Machine Translation in the Americas, 2006. 
Matthew Snover, Bonnie J. Dorr, Richard Schwartz, John Makhoul, Linnea Micciulla and Ralph Weischedel, "A Study of Translation Error Rate with Targeted Human Annotation," LAMP-TR-126, CS-TR-4755, UMIACS-TR-2005-58, University of Maryland, College Park, MD July, 2005.