Commit 17d9424d authored by Arkadiusz Janz's avatar Arkadiusz Janz

Merge branch 'develop' into 'master'

Develop

See merge request !9
parents be2d2477 851f5d32
Pipeline #2802 passed with stage
in 15 minutes and 56 seconds
......@@ -135,8 +135,11 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
tokens[head]->create_metadata();
}
TokenMetaDataPtr md = tokens[head]->get_metadata();
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment