Skip to content
Snippets Groups Projects

Fixing bug related to incorrect base forms

Merged Grzegorz Kostkowski requested to merge ann_base_bug into develop
Compare and
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
@@ -135,8 +135,11 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
tokens[head]->create_metadata();
}
TokenMetaDataPtr md = tokens[head]->get_metadata();
md->set_attribute(get_annotation_channel_base_name(), new_base);
std::string curr_base = md->get_attribute(get_annotation_channel_base_name());
// set new base only if it is longer than current one (if exists)
if (new_base.length() > curr_base.length()) {
md->set_attribute(get_annotation_channel_base_name(), new_base);
}
// annotate mwe elements with annotation_number of head
std::set<int>::iterator pos_it;
int ann_num;