/usr/include/tercpp/multiTxtDocument.h is in libtercpp-dev 0.6.2+svn46-1.1+b1.
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | #ifndef __MULTITXT_DOCUMENT_H__
#define __MULTITXT_DOCUMENT_H__
#include "documentStructure.h"
#include "tools.h"
// #include "xmlStructure.h"
#include <iostream>
#include <string>
namespace TERCpp
{
class multiTxtDocument
{
public:
multiTxtDocument();
// multiTxtDocument(string FileName);
// multiTxtDocument(const std::string &bread, const std::string &cheese, const std::string &meat, const bool pickle):
// m_bread(bread), m_cheese(cheese), m_meat(meat), m_pickle(pickle){};
// ~multiTxtDocument(){};
// void output()
// {
// std::cout << "Bread = " << m_bread << ", Cheese = " << m_cheese <<
// ", Meat = " << m_meat << ", Has Pickle = " << m_pickle << std::endl;
//
// }
// void setDocType(string s);
// void setSetId(string s);
// void setSrcLang(string s);
// void setTgtLang(string s);
// string getDocType();
// string getSetId();
// string getSrcLang();
// string getTgtLang();
// xmlStructure getStructure();
void addDocument ( documentStructure doc );
documentStructure* getLastDocument();
documentStructure* getDocument ( string docId );
vector<documentStructure> getDocuments ();
vector<string> getListDocuments ();
void loadFile ( string fileName, bool caseOn, bool noPunct, bool debugMode, bool noTxtIds, bool tercomLike );
void loadFiles ( string fileName, bool caseOn, bool noPunct, bool debugMode, bool noTxtIds, bool tercomLike );
void loadRefFile ( param p );
void loadRefFiles ( param p );
void loadHypFile ( param p );
void loadHypFiles ( param p );
void setAverageLength();
int getSize();
private:
// string docType;
// string setId;
// string srcLang;
// string tgtLang;
// xmlStructure xmlStruct;
param multiTxtDocumentParams;
vector<documentStructure> documents;
// vector<string> bestDocumentId;
// std::string m_bread, m_cheese, m_meat;
// bool m_pickle;
//
// // declare the boost::serialization::access class as a friend of multiTxtDocument
// friend class boost::serialization::access;
// // Create a serialize function for serialization::access to use, I guess you could regard this as a kind of callback function!
// template<class archive>
// void serialize(archive& ar, const unsigned int version)
// {
// // Note: As explained in the original tut. the & operator is overridden in boost to use
// // << or >> depending on the direction of the data (read/write)
// using boost::serialization::make_nvp;
// ar & make_nvp("Bread", m_bread);
// ar & make_nvp("Cheese", m_cheese);
// ar & make_nvp("Meats", m_meat);
// ar & make_nvp("HasPickle", m_pickle);
// // Also note: strings in the first parameter of make_nvp cannot contain spaces!
// }
};
}
#endif //SANDWICH_DEFINED
|