rzo1 commented on code in PR #1459:
URL: https://github.com/apache/opennlp/pull/1459#discussion_r4228463318
##########
opennlp-api/src/main/java/opennlp/tools/namefind/NameSample.java:
##########
@@ -266,8 +265,42 @@ private static String errorTokenWithContext(String[]
sentence, int index) {
return errorString.toString();
}
- private static final Pattern START_TAG_PATTERN =
Pattern.compile("<START(:([^:>\\s]*))?>");
+ /**
+ * Tests whether a token is a start tag, either {@code <START>} or {@code
<START:type>}, where
Review Comment:
Done in 158e495c4.
--
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]