Bump opennlp-tools from 1.9.4 to 2.1.1

Bumps [opennlp-tools](https://github.com/apache/opennlp) from 1.9.4 to 2.1.1.
- [Release notes](https://github.com/apache/opennlp/releases)
- [Commits](https://github.com/apache/opennlp/compare/opennlp-1.9.4...opennlp-2.1.1)

Resolves #74

---
updated-dependencies:
- dependency-name: org.apache.opennlp:opennlp-tools
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Change-Id: I6881d2657fbd1c76822fed8e3ee3bebdd7587b0f
diff --git a/pom.xml b/pom.xml
index 7119e63..a9d68f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -258,7 +258,7 @@
         <dependency>
             <groupId>org.apache.opennlp</groupId>
             <artifactId>opennlp-tools</artifactId>
-            <version>1.9.4</version>
+            <version>2.1.1</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
diff --git a/src/main/jpc/jflex/de/ids_mannheim/korap/tokenizer/DerekoDfaTokenizer.jflex b/src/main/jpc/jflex/de/ids_mannheim/korap/tokenizer/DerekoDfaTokenizer.jflex
index c3abeb6..5579b30 100644
--- a/src/main/jpc/jflex/de/ids_mannheim/korap/tokenizer/DerekoDfaTokenizer.jflex
+++ b/src/main/jpc/jflex/de/ids_mannheim/korap/tokenizer/DerekoDfaTokenizer.jflex
@@ -253,6 +253,16 @@
         return sentences.toArray(new Span[0]);
     }
 
+    @Override
+    public String[] sentDetect(CharSequence s) {
+        return sentDetect(s.toString());
+    }
+
+    @Override
+    public Span[] sentPosDetect(CharSequence s) {
+        return sentPosDetect(s.toString());
+    }
+
     public final long yychar() {
         return yychar;
     }