Replace deprecated MultiTerm add() method from Schreibgebrauch parser
Change-Id: Ie0370bcbeafd9639b1e1347f7b9228a0c61065f5
diff --git a/lib/KorAP/XML/Annotation/Sgbr/Lemma.pm b/lib/KorAP/XML/Annotation/Sgbr/Lemma.pm
index 6cb6711..fc54bd4 100644
--- a/lib/KorAP/XML/Annotation/Sgbr/Lemma.pm
+++ b/lib/KorAP/XML/Annotation/Sgbr/Lemma.pm
@@ -34,14 +34,10 @@
# warn $found;
unless ($first++) {
- $mtt->add(
- term => 'sgbr/l:' . $found
- );
+ $mtt->add_by_term('sgbr/l:' . $found);
}
else {
- $mtt->add(
- term => 'sgbr/lv:' . $found
- );
+ $mtt->add_by_term('sgbr/lv:' . $found);
};
};
};
diff --git a/lib/KorAP/XML/Annotation/Sgbr/Morpho.pm b/lib/KorAP/XML/Annotation/Sgbr/Morpho.pm
index c3e35d7..f5f8834 100644
--- a/lib/KorAP/XML/Annotation/Sgbr/Morpho.pm
+++ b/lib/KorAP/XML/Annotation/Sgbr/Morpho.pm
@@ -23,7 +23,7 @@
if (($f->{-name} eq 'ctag')
&& ($found = $f->{'#text'})) {
# b($found)->decode('latin-1')->encode->to_string
- $mtt->add(term => 'sgbr/p:' . $found);
+ $mtt->add_by_term('sgbr/p:' . $found);
};
};
}) or return;