Replace deprecated MultiTerm add() method from OpenNLP parser

Change-Id: I3144e0901363d3252cb150d6e9775e40802fbbb0
diff --git a/lib/KorAP/XML/Annotation/OpenNLP/Morpho.pm b/lib/KorAP/XML/Annotation/OpenNLP/Morpho.pm
index 6b3175a..6bb9554 100644
--- a/lib/KorAP/XML/Annotation/OpenNLP/Morpho.pm
+++ b/lib/KorAP/XML/Annotation/OpenNLP/Morpho.pm
@@ -17,9 +17,7 @@
 
       # syntax
       if (($content->{-name} eq 'pos') && ($content->{'#text'})) {
-        $mtt->add(
-          term => 'opennlp/p:' . $content->{'#text'}
-        ) if $content->{'#text'};
+        $mtt->add_by_term('opennlp/p:' . $content->{'#text'});
       };
     }) or return;
 
diff --git a/lib/KorAP/XML/Annotation/OpenNLP/Sentences.pm b/lib/KorAP/XML/Annotation/OpenNLP/Sentences.pm
index 954cda3..cf496c2 100644
--- a/lib/KorAP/XML/Annotation/OpenNLP/Sentences.pm
+++ b/lib/KorAP/XML/Annotation/OpenNLP/Sentences.pm
@@ -10,15 +10,13 @@
     layer => 'sentences',
     cb => sub {
       my ($stream, $span) = @_;
-      my $mtt = $stream->pos($span->get_p_start);
-      $mtt->add(
-        term => '<>:opennlp/s:s',
-        o_start => $span->get_o_start,
-        o_end => $span->get_o_end,
-        p_end => $span->get_p_end,
-        pti => 64,
-        payload => '<b>0'
-      );
+      my $mt = $stream->pos($span->get_p_start)
+        ->add_by_term('<>:opennlp/s:s');
+      $mt->set_o_start($span->get_o_start);
+      $mt->set_o_end($span->get_o_end);
+      $mt->set_p_end($span->get_p_end);
+      $mt->set_pti(64);
+      $mt->set_payload('<b>0');
       $i++;
     }
   ) or return;