Skip to content

Commit d4162c6

Browse files
committed
Use // instead of /* when possible
1 parent 638216c commit d4162c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,22 @@ public static String escapeSpaces(String after) {
6464
public String printSemanticGraph(SemanticGraph basicSg, SemanticGraph enhancedSg, boolean unescapeParenthesis, Collection<String> comments) {
6565
StringBuilder sb = new StringBuilder();
6666

67-
/* Print comments. */
67+
// Print comments
6868
for (String comment : comments) {
6969
sb.append(comment).append(System.lineSeparator());
7070
}
7171

7272
SemanticGraph tokenSg = enhancedSg != null ? enhancedSg : basicSg;
7373

7474
for (IndexedWord token : tokenSg.vertexListSorted()) {
75-
/* Check for multiword tokens. */
75+
// Check for multiword tokens
7676
if (token.containsKey(CoreAnnotations.CoNLLUTokenSpanAnnotation.class)) {
7777
printSpan(sb, token);
7878
} else if (token.containsKey(CoreAnnotations.IsFirstWordOfMWTAnnotation.class) && token.get(CoreAnnotations.IsFirstWordOfMWTAnnotation.class)) {
7979
printMWT(sb, tokenSg, token);
8080
}
8181

82-
/* Try to find main governor and additional dependencies. */
82+
// Try to find main governor and additional dependencies
8383
IndexedWord gov = basicSg.containsVertex(token) ? basicSg.getParent(token) : null;
8484
String govIdx = gov != null ? gov.toCopyIndex() : null;
8585
GrammaticalRelation reln = gov != null ? basicSg.getEdge(gov, token).getRelation() : null;
@@ -141,7 +141,7 @@ public String printSemanticGraph(SemanticGraph basicSg, SemanticGraph enhancedSg
141141
}
142142
}
143143

144-
/* Root. */
144+
// Root
145145
if (govIdx == null && basicSg.getRoots().contains(token)) {
146146
govIdx = "0";
147147
relnName = GrammaticalRelation.ROOT.toString();
@@ -255,7 +255,7 @@ public String printPOSAnnotations(CoreMap sentence, boolean fakeDeps) {
255255

256256
int index = 0;
257257
for (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {
258-
/* Check for multiword tokens. */
258+
// Check for multiword tokens
259259
if (token.containsKey(CoreAnnotations.CoNLLUTokenSpanAnnotation.class)) {
260260
printSpan(sb, token);
261261
}

0 commit comments

Comments
 (0)