@@ -64,22 +64,22 @@ public static String escapeSpaces(String after) {
64
64
public String printSemanticGraph (SemanticGraph basicSg , SemanticGraph enhancedSg , boolean unescapeParenthesis , Collection <String > comments ) {
65
65
StringBuilder sb = new StringBuilder ();
66
66
67
- /* Print comments. */
67
+ // Print comments
68
68
for (String comment : comments ) {
69
69
sb .append (comment ).append (System .lineSeparator ());
70
70
}
71
71
72
72
SemanticGraph tokenSg = enhancedSg != null ? enhancedSg : basicSg ;
73
73
74
74
for (IndexedWord token : tokenSg .vertexListSorted ()) {
75
- /* Check for multiword tokens. */
75
+ // Check for multiword tokens
76
76
if (token .containsKey (CoreAnnotations .CoNLLUTokenSpanAnnotation .class )) {
77
77
printSpan (sb , token );
78
78
} else if (token .containsKey (CoreAnnotations .IsFirstWordOfMWTAnnotation .class ) && token .get (CoreAnnotations .IsFirstWordOfMWTAnnotation .class )) {
79
79
printMWT (sb , tokenSg , token );
80
80
}
81
81
82
- /* Try to find main governor and additional dependencies. */
82
+ // Try to find main governor and additional dependencies
83
83
IndexedWord gov = basicSg .containsVertex (token ) ? basicSg .getParent (token ) : null ;
84
84
String govIdx = gov != null ? gov .toCopyIndex () : null ;
85
85
GrammaticalRelation reln = gov != null ? basicSg .getEdge (gov , token ).getRelation () : null ;
@@ -141,7 +141,7 @@ public String printSemanticGraph(SemanticGraph basicSg, SemanticGraph enhancedSg
141
141
}
142
142
}
143
143
144
- /* Root. */
144
+ // Root
145
145
if (govIdx == null && basicSg .getRoots ().contains (token )) {
146
146
govIdx = "0" ;
147
147
relnName = GrammaticalRelation .ROOT .toString ();
@@ -255,7 +255,7 @@ public String printPOSAnnotations(CoreMap sentence, boolean fakeDeps) {
255
255
256
256
int index = 0 ;
257
257
for (CoreLabel token : sentence .get (CoreAnnotations .TokensAnnotation .class )) {
258
- /* Check for multiword tokens. */
258
+ // Check for multiword tokens
259
259
if (token .containsKey (CoreAnnotations .CoNLLUTokenSpanAnnotation .class )) {
260
260
printSpan (sb , token );
261
261
}
0 commit comments