Skip to content

Commit 3d57346

Browse files
committed
Add a comment on something wrong
1 parent 2ddf9aa commit 3d57346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/edu/stanford/nlp/trees/ud/CoNLLUDocumentWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public String printSemanticGraph(SemanticGraph basicSg, SemanticGraph enhancedSg
100100
String relnName = reln == null ? "_" : reln.toString();
101101

102102
// don't use after() directly; it returns a default of ""
103+
// TODO: does this handle SpaceAfter on other tokens or SpacesAfter?
103104
if (token.get(CoreAnnotations.AfterAnnotation.class) != null && token.after().equals("")) {
104105
IndexedWord nextVertex = tokenSg.getNodeByIndexSafe(token.index() + 1);
105106
// the next word needs to exist and be part of the same MWT

0 commit comments

Comments
 (0)