Replace deprecated MultiTerm add() method from CMC parser
Change-Id: I7de60d8ac8b520c2f76121225f56cbb178779138
diff --git a/lib/KorAP/XML/Annotation/CMC/Morpho.pm b/lib/KorAP/XML/Annotation/CMC/Morpho.pm
index 29c563a..08d926a 100644
--- a/lib/KorAP/XML/Annotation/CMC/Morpho.pm
+++ b/lib/KorAP/XML/Annotation/CMC/Morpho.pm
@@ -27,13 +27,13 @@
# pos tag
if (($f->{-name} eq 'pos') &&
($found = $f->{'#text'})) {
- $mtt->add(term => 'cmc/p:' . $found);
+ $mtt->add_by_term('cmc/p:' . $found);
}
# lemma tag
elsif (($f->{-name} eq 'lemma')
&& ($found = $f->{'#text'})) {
- $mtt->add(term => 'cmc/l:' . $found);
+ $mtt->add_by_term('cmc/l:' . $found);
};
};
}) or return;