kinow commented on code in PR #581: URL: https://github.com/apache/opennlp/pull/581#discussion_r1439085946
########## opennlp-tools/src/test/java/opennlp/tools/tokenize/TokenizerFactoryTest.java: ########## @@ -194,7 +199,10 @@ void checkCustomPatternForTokenizerME(String lang, String pattern, String senten String[] tokens = tokenizer.tokenize(sentence); Assertions.assertEquals(expectedNumTokens, tokens.length); - String[] sentSplit = sentence.replaceAll("'", " '").split(" "); + String[] sentSplit = sentence + .replaceAll("'", " '") + .replaceAll(",", " ,") Review Comment: One of my examples failed returning a token as `word,`, so I added this extra replace in this test :+1: -- 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: dev-unsubscr...@opennlp.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org