16 #include <cld/compact_lang_det.h>
59 _processInfoTable.push_back( processInfo );
76 _processInfoTable.push_back( processInfo );
85 _processInfoTable.push_back( processInfo );
98 _processInfoTable.push_back( processInfo );
104 _processInfoTable.push_back( processInfo );
110 _processInfoTable.push_back( processInfo );
131 lCData._delimiters = inData.cast<
InDataRefine>()->getDelimiters();
132 lCData._granularityLevel= inData.cast<
InDataRefine>()->getGranularityLevel();
133 std::vector<ProcessInfo> ProcessInfoTable = \
134 ( inData.cast<
InDataRefine>()->getProcessInfoTable().size() ) ? \
136 this->_processInfoTable;
142 std::vector<ProcessInfo>::iterator PI_iter;
143 for ( PI_iter = ProcessInfoTable.begin(); PI_iter != ProcessInfoTable.end(); ++PI_iter )
146 std::cout <<
"------------------------" << std::endl;
148 lCData._processInfo = *PI_iter;
150 PI_iter->_status = lCData._processInfo._status;
161 std::vector < CWords > cWords;
162 std::vector < RWords > rWords;
163 std::map<WORD_CONTENT_OFFSET, WORD_LENGTH>::const_iterator it;
165 std::cout <<
"token \t norm \t offset \t length \t pos \t hCrc64" << std::endl;
166 std::cout <<
"----- \t ---- \t ------ \t ------ \t --- \t ------" << std::endl;
172 for ( it=lCData._mapOffsets.begin(); it!=lCData._mapOffsets.end(); ++it )
194 cword.
setBlack( lCData._mapBlack[it->first] );
199 cword.
setSimClass( lCData._mapMorphology[it->first].getMask() );
234 cword.
setNormWord( lCData._mapNormalizedForms[it->first] );
240 cword.
setPosMask ( lCData._mapPosMasks[ it->first ]);
245 cword.
setWordType(lCData._mapWordType[ it->first ]);
250 cWords.push_back( cword );
267 rword.
setNormWord ( lCData._mapNormalizedForms[it->first] );
268 rword.
setCrc64 ( lCData._mapHCRC64[ it->first ] );
270 rword.
setPosMask ( lCData._mapPosMasks[ it->first ] );
272 rWords.push_back(rword);
275 std::cout << lCData._mapTokens[it->first] <<
'\t'
276 << lCData._mapNormalizedForms[it->first] <<
'\t'
278 << lCData._mapOffsets[it->first] <<
'\t'
280 << lCData._mapPosMasks[it->first]<<
'\t'
281 << lCData._mapHCRC64[it->first] << std::endl;
284 unsigned int langMask = 0;
285 unsigned char err = 0;
291 return outDataRefine;