void EntityPipe::PreprocessData() { delete token_dictionary_; CreateTokenDictionary(); static_cast<SequenceDictionary*>(dictionary_)-> SetTokenDictionary(token_dictionary_); // To get the right reader (instead of the default sequence reader). token_dictionary_->InitializeFromEntityReader(GetEntityReader()); static_cast<SequenceDictionary*>(dictionary_)-> CreateTagDictionary(GetSequenceReader()); }
void MorphologicalPipe::PreprocessData() { delete token_dictionary_; CreateTokenDictionary(); static_cast<SequenceDictionary*>(dictionary_)-> SetTokenDictionary(token_dictionary_); // To get the right reader (instead of the default sequence reader). static_cast<MorphologicalTokenDictionary*>(token_dictionary_)-> Initialize(GetMorphologicalReader()); static_cast<MorphologicalDictionary*>(dictionary_)-> CreateTagDictionary(GetMorphologicalReader()); }