61 LDEBUG <<
"SegmentationDataXmlLogger::process";
64 auto metadata = std::dynamic_pointer_cast<LinguisticMetaData>(analysis.
getData(
"LinguisticMetaData"));
67 LERROR <<
"no LinguisticMetaData ! abort";
73 if (!
openLogFile(out,metadata->getMetaData(
"FileName"))) {
75 LERROR <<
"Can't open log file '" << metadata->getMetaData(
"FileName") <<
"'";
82 std::string docId(
"");
86 docId=metadata->getMetaData(
"DocId");
93 out <<
"<segmentation>" << endl;
94 auto data = analysis.
getData(m_data);
98 for (vector<Segment>::const_iterator it=seg.begin(), it_end=seg.end(); it!=it_end; it++) {
101 <<
"<pos>" << (*it).getPosBegin() <<
"</pos>"
102 <<
"<len>" << (*it).getLength() <<
"</len>"
103 <<
"<type>" << (*it).getType() <<
"</type>"
110 LDEBUG <<
"no SegmentationData of name " << m_data;
113 out <<
"</segmentation>" << endl;
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