Skip to content

Commit 0b12f6c

Browse files
J38Stanford NLP
authored andcommitted
add slash to end tag
1 parent fc7372c commit 0b12f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/edu/stanford/nlp/pipeline/InlineXMLOutputter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ private static void print(Annotation annotation, PrintWriter pw, Options options
4444
pw.printf("<%s>%s", entities.get(entityIdx).entityType(), token.word());
4545
// handle single token entities
4646
if (entities.get(entityIdx).charOffsets().second() == token.endPosition()) {
47-
pw.printf("<%s>", entities.get(entityIdx).entityType());
47+
pw.printf("</%s>", entities.get(entityIdx).entityType());
4848
entityIdx++;
4949
}
5050
} else if (entities.get(entityIdx).charOffsets().second() == token.endPosition()) {
51-
pw.printf("%s<%s>", token.word(), entities.get(entityIdx).entityType());
51+
pw.printf("%s</%s>", token.word(), entities.get(entityIdx).entityType());
5252
entityIdx++;
5353
} else {
5454
pw.printf("%s", token.word());

0 commit comments

Comments
 (0)