31namespace LinguisticProcessing
56 LINFO <<
"Start of Dummy posTagging";
58 auto anagraph = std::dynamic_pointer_cast<AnalysisGraph>(analysis.
getData(
"AnalysisGraph"));
61 analysis.
setData(
"PosGraph",posgraph);
68 boost::tie(it,itEnd) = vertices(*graph);
69 for (;it != itEnd; it++)
78 if (posdata->size()>0)
80 for (MorphoSyntacticData::const_iterator dataItr=posdata->begin();
81 dataItr!=posdata->end();
85 if (dataItr==posdata->begin()) {
96 posdata->erase(remove_if(posdata->begin(),posdata->end(),cdpp),posdata->end());
101 LWARN <<
"The MorphoSyntacticData "
108 LDEBUG <<
"Graph after Dummy posTagging:";
110 LINFO <<
"End of Dummy posTagging";
A graph structure for linguistic analysis.
LinguisticGraph::vertex_iterator LinguisticGraphVertexIt
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, LinguisticVertexProperties > LinguisticGraph
Property to identify the chains in the graph.
Defines a Factory to create Object of type Base.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
std::shared_ptr< AnalysisData > getData(const QString &id)
return AnalysisData by id
void setData(const QString &id, std::shared_ptr< AnalysisData > data)
set an analysisData with the given id.
LinguisticCode readValue(const LinguisticCode &code) const
read a property in a coded int.
Manage initialization of InitializableObjects using configuration module and parameters.
const InitializationParameters & getInitializationParameters() const
get Initialization Parameters
An AnalysisData containing a LinguisticGraph with a language and an id.
const LinguisticGraph * getGraph(void) const
Returns the underlying graph structure.
Holds morphosyntactic informations.
holds surface data of a token
const LimaString & stringForm() const
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
initialize with parameters from configuration file.
LimaStatusCode process(AnalysisContent &analysis) const override
Process on data in analysisContent.
static const MediaticData & single()
const singleton accessor
static void logElapsedTime(const std::string &mess, const std::string &taskCategory=std::string(""))
log the number of microseconds since last UpdateCurrentTime
static void updateCurrentTime(const std::string &taskCategory=std::string(""))
store current time for new elapsed time computation
#define DUMMYPOSTAGGER_CLASSID
std::string limastring2utf8stdstring(const Lima::LimaString &phrase, uint32_t size0)
Convert a wide string to a string , in dest up to size bytes.
SimpleFactory< MediaProcessUnit, DummyPosTagger > dummyPosTaggerFactory(DUMMYPOSTAGGER_CLASSID)