concordia-library/concordia/concordia_config.hpp
rjawor e99eb77b28 anonymizing sentences
Former-commit-id: 5d8bd7e16258fda7c02a7cc0e1da589d73418f0d
2014-04-29 14:46:04 +02:00

101 lines
2.0 KiB
C++

#ifndef CONCORDIA_CONFIG_HDR
#define CONCORDIA_CONFIG_HDR
#include <string>
#include <list>
#include <libconfig.h++>
#include "concordia/concordia_exception.hpp"
using namespace std;
using namespace libconfig;
/*!
Class representing the Concordia configuration.
*/
class ConcordiaConfig {
public:
/*!
Constructor.
\param configFilePath path of the configuration file (see \ref running3 for file specification).
\throws ConcordiaException
*/
explicit ConcordiaConfig(const string & configFilePath)
throw(ConcordiaException);
/*! Destructor.
*/
virtual ~ConcordiaConfig();
/*! Getter for the puddle file path parameter.
\returns file path of the puddle tagset
*/
string & getPuddleTagsetFilePath() {
return _puddleTagsetFilePath;
}
string & getWordMapFilePath() {
return _wordMapFilePath;
}
string & getHashedIndexFilePath() {
return _hashedIndexFilePath;
}
string & getMarkersFilePath() {
return _markersFilePath;
}
string & getSuffixArrayFilePath() {
return _suffixArrayFilePath;
}
string & getHtmlTagsFilePath() {
return _htmlTagsFilePath;
}
string & getSpaceSymbolsFilePath() {
return _spaceSymbolsFilePath;
}
string & getStopWordsFilePath() {
return _stopWordsFilePath;
}
string & getNamedEntitiesFilePath() {
return _namedEntitiesFilePath;
}
string & getStopSymbolsFilePath() {
return _stopSymbolsFilePath;
}
private:
Config _config;
string _puddleTagsetFilePath;
string _wordMapFilePath;
string _hashedIndexFilePath;
string _markersFilePath;
string _suffixArrayFilePath;
string _htmlTagsFilePath;
string _spaceSymbolsFilePath;
string _stopWordsFilePath;
string _namedEntitiesFilePath;
string _stopSymbolsFilePath;
string _readConfigParameterStr(const string & name)
throw(ConcordiaException);
};
#endif