krickert commented on code in PR #1086:
URL: https://github.com/apache/opennlp/pull/1086#discussion_r3434424181
##########
opennlp-core/opennlp-ml/opennlp-dl/src/main/java/opennlp/dl/namefinder/NameFinderDL.java:
##########
@@ -67,9 +67,17 @@
@ThreadSafe
public class NameFinderDL extends AbstractDL implements TokenNameFinder {
+ /** Example person labels; retained for reference. Decoding handles any
B-/I- type. */
public static final String I_PER = "I-PER";
public static final String B_PER = "B-PER";
public static final String SEPARATOR = "[SEP]";
+ private static final String CLS_TOKEN = "[CLS]";
+
+ /** Prefix used by BIO labels for the first token in an entity span. */
+ private static final String BEGIN_PREFIX = "B-";
+
+ /** Prefix used by BIO labels for continuation tokens in an entity span. */
+ private static final String INSIDE_PREFIX = "I-";
Review Comment:
Done - renamed `INSIDE_PREFIX` → `PREFIX_INSIDE`
--
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]