Skip to content

Commit c680c40

Browse files
committed
Add the per-site justification comment on the AD NER tag field split
1 parent d63f1e3 commit c680c40

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

opennlp-core/opennlp-formats/src/main/java/opennlp/tools/formats/ad/ADNameSampleStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ private static String getNER(String tags) {
402402
if (tags.contains("<NER2>")) {
403403
return null;
404404
}
405+
// Corpus-format parsing: the AD tag field is ASCII-whitespace delimited by the format.
405406
String[] tag = tags.split("\\s+");
406407
for (String t : tag) {
407408
Matcher matcher = TAG_PATTERN.matcher(t);

0 commit comments

Comments
 (0)