demq commented on code in PR #602:
URL: https://github.com/apache/opennlp/pull/602#discussion_r1616698074
##########
opennlp-tools/src/test/java/opennlp/tools/tokenize/SimpleTokenizerTest.java:
##########
@@ -128,4 +128,18 @@ void testTokenizationOfStringWithWindowsNewLineTokens() {
Assertions.assertArrayEquals(new String[] {"a", "\r", "\n", "\r", "\n",
"b", "\r", "\n", "\r", "\n", "c"},
tokenizer.tokenize("a\r\n\r\n b\r\n\r\n c"));
}
+
+ /**
+ * Tests if it can tokenize a word containing a non-spacing character
+ * like Arabic Damma Unicode Character “◌ُ” (U+064F)
+ */
+ @Test
+ void testNonSpacingLetters() {
+ String text = "طُوّر";
Review Comment:
I have just pushed an update with a full sentence.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]