/usr/include/tercpp/multiEvaluation.h is in libtercpp-dev 0.6.2+svn46-1.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef __MULTIEVAL_DOCUMENT_H__
#define __MULTIEVAL_DOCUMENT_H__
#include "multiTxtDocument.h"
#include "tools.h"
#include <iostream>
#include <string>
#include "xmlStructure.h"
#include "sgmlDocument.h"
using namespace Tools;
namespace TERCpp
{
class multiEvaluation
{
public:
multiEvaluation();
multiEvaluation(param p );
// void addReferences(string s);
// void addReferences(vector<string> vecRefecrences);
// void addReferences(documentStructure doc);
// void setHypothesis(string s);
// void setHypothesis(documentStructure doc);
void addReferences();
void setHypothesis();
void addSGMLReferences();
void setSGMLHypothesis();
void setParameters ( param p );
void launchTxtEvaluation();
void launchSGMLEvaluation();
void evaluate ( documentStructure & docStructReference, documentStructure & docStructhypothesis );
string scoreTER ( vector<float> numEdits, vector<float> numWords );
private:
param evalParameters;
multiTxtDocument referencesTxt;
documentStructure hypothesisTxt;
SGMLDocument referencesSGML;
SGMLDocument hypothesisSGML;
};
}
#endif //SANDWICH_DEFINED
|