Package: tercpp / 0.6.2+svn46-1.1

102_fix-typo.patch Patch series | download
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
Description: fix typos
 This patch fixes typos
Author: Koichi Akabe <vbkaisetsu@gmail.com>
Forwarded: no
Last-Update: 2014-01-15

--- tercpp-0.6.2.orig/test/main.cpp
+++ tercpp-0.6.2/test/main.cpp
@@ -163,7 +163,7 @@ double score(vector<float> numEdits, vec
 void usage()
 {
 // 	cerr<<"tercpp [-N] [-s] [-P] -r ref -h hyp [-a alter_ref] [-b beam_width] [-S trans_span_prefix] [-o out_format -n out_pefix] [-d max_shift_distance] [-M match_cost] [-D delete_cost] [-B substitute_cost] [-I insert_cost] [-T shift_cost]"<<endl;
-    cerr<<"Usage : "<<endl<<"\ttercpp [--tercom] [--debugMode] [--debugLevel 0-3] [--noTxtIds] [--printAlignments] [-s] [-P] [--WER] -r ref -h hyp :\n\n\t\t --tercom \t: to use the tercom standart normalization\n\t\t --noTxtIds \t: you don't have to add ids at the end of sentences \n\t\t --debugMode \t: print debug messages \n\t\t --debugLevel \t: print debug messages regarding the level\n\t\t -s \t\t: to be case sensitive \n\t\t -P \t\t: do not take account of punctuation\n\t\t --printAlignments\t: print alignments information into a separate file\n\t\t --WER\t\t: do a simple WER calculation\n\t\t --help \t: print this help message.\n "<<endl;
+    cerr<<"Usage : "<<endl<<"\ttercpp [--tercom] [--debugMode] [--debugLevel 0-3] [--noTxtIds] [--printAlignments] [-s] [-P] [--WER] -r ref -h hyp :\n\n\t\t --tercom \t: to use the tercom standard normalization\n\t\t --noTxtIds \t: you don't have to add ids at the end of sentences \n\t\t --debugMode \t: print debug messages \n\t\t --debugLevel \t: print debug messages regarding the level\n\t\t -s \t\t: to be case sensitive \n\t\t -P \t\t: do not take account of punctuation\n\t\t --printAlignments\t: print alignments information into a separate file\n\t\t --WER\t\t: do a simple WER calculation\n\t\t --help \t: print this help message.\n "<<endl;
     exit(0);
 // 	System.exit(1);
 
--- tercpp-0.6.2.orig/src/multiEvaluation.cpp
+++ tercpp-0.6.2/src/multiEvaluation.cpp
@@ -85,7 +85,7 @@ namespace TERCpp
 	{
 		    cerr <<"DEBUG tercpp : multiEvaluation::launchTxtEvaluation : testing references and hypothesis size  "<<endl<<" number of references : "<<  referencesTxt.getSize()<<endl; 
 		    vector <string> s =referencesTxt.getListDocuments();
-		    cerr << " avaiable ids : ";
+		    cerr << " available ids : ";
 		    for (vector <string>::iterator iterS=s.begin(); iterS!=s.end(); iterS++)
 		    {
 			cerr << " " << (*iterS);