Replace deprecated MultiTerm add() method from MarMot parser
Change-Id: Iffe0e86b265ad3c3d8edc2b2e56462446be5d00a
diff --git a/lib/KorAP/XML/Annotation/MarMoT/Morpho.pm b/lib/KorAP/XML/Annotation/MarMoT/Morpho.pm
index ced57ab..026533f 100644
--- a/lib/KorAP/XML/Annotation/MarMoT/Morpho.pm
+++ b/lib/KorAP/XML/Annotation/MarMoT/Morpho.pm
@@ -25,7 +25,7 @@
# pos tag
if (($f->{-name} eq 'pos') &&
($found = $f->{'#text'})) {
- $mtt->add(term => 'marmot/p:' . $found);
+ $mtt->add_by_term('marmot/p:' . $found);
}
# msd tag
@@ -36,7 +36,7 @@
foreach (split '\|', $found) {
my ($x, $y) = split "=", $_;
# case, tense, number, mood, person, degree, gender
- $mtt->add(term => 'marmot/m:' . $x . ($y ? ':' . $y : ''));
+ $mtt->add_by_term('marmot/m:' . $x . ($y ? ':' . $y : ''));
};
};
};