Replace deprecated MultiTerm add() method from HNC parser
Change-Id: Ib4b4b55abaebd1f1dd3ef1aa2ed5fb7bb6dcfab6
diff --git a/lib/KorAP/XML/Annotation/HNC/Morpho.pm b/lib/KorAP/XML/Annotation/HNC/Morpho.pm
index 4b2e5f4..5dd86c5 100644
--- a/lib/KorAP/XML/Annotation/HNC/Morpho.pm
+++ b/lib/KorAP/XML/Annotation/HNC/Morpho.pm
@@ -21,7 +21,7 @@
# pos tag
if (($f->{-name} eq 'pos') &&
($found = $f->{'#text'})) {
- $mtt->add(term => 'hnc/p:' . $found);
+ $mtt->add_by_term('hnc/p:' . $found);
}
# ana tag
@@ -35,7 +35,7 @@
foreach (split ';;', $found) {
my ($x, $y) = split "=", $_;
# compound,hyphenated,stem,morphemes,mboundary
- $mtt->add(term => 'hnc/m:' . $x . ($y ? ':' . $y : ''));
+ $mtt->add_by_term('hnc/m:' . $x . ($y ? ':' . $y : ''));
};
}
@@ -44,7 +44,7 @@
&& ($found = $f->{'#text'})
&& $found ne '--') {
# b($found)->decode('latin-1')->encode->to_string
- $mtt->add(term => 'hnc/l:' . $found);
+ $mtt->add_by_term('hnc/l:' . $found);
};
};
}) or return;