krickert commented on code in PR #1150:
URL: https://github.com/apache/opennlp/pull/1150#discussion_r3593777587
##########
opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/tokenize/WhitespaceTokenizerTest.java:
##########
@@ -98,4 +110,40 @@ 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"));
}
+
+ /**
+ * Under the default {@link WhitespaceMode#UNICODE}, the next line control
({@code U+0085})
+ * separates tokens like whitespace, and the information separators ({@code
U+001C..U+001F})
+ * do not.
+ */
+ @Test
+ void testNextLineControlIsWhitespaceByDefault() {
+ WhitespaceMode.reset();
Review Comment:
Done.
```
CLC
BCC *+4 ; always taken; lands 2 bytes after the branch
```
--
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]