Skip to content

Commit 91cb8e0

Browse files
committed
Oops, introduced a bug when there's no enhanced graph
1 parent b3f8f97 commit 91cb8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ public CoreMap convertCoNLLUSentenceToCoreMap(CoNLLUDocument doc, CoNLLUSentence
557557
for (int i = 0; i < lines.size(); i++) {
558558
List<String> fields = Arrays.asList(lines.get(i).split("\t"));
559559
// track whether any of these lines signify there is an enhanced graph
560-
hasEnhanced = hasEnhanced || !fields.equals("_");
560+
hasEnhanced = hasEnhanced || !fields.get(CoNLLU_EnhancedField).equals("_");
561561
// skip the ROOT node
562562
if (fields.get(CoNLLU_GovField).equals("0"))
563563
continue;

0 commit comments

Comments
 (0)