Skip to content

Commit 9914d88

Browse files
committed
Oops, need to update the test for the new relations as well
1 parent b018344 commit 9914d88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

itest/src/edu/stanford/nlp/pipeline/CoNLLUReaderITest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package edu.stanford.nlp.pipeline;
22

3+
import edu.stanford.nlp.international.Language;
34
import edu.stanford.nlp.ling.*;
45
import edu.stanford.nlp.semgraph.*;
56
import edu.stanford.nlp.trees.GrammaticalRelation;
@@ -390,7 +391,7 @@ static SemanticGraph buildEnhancedTest() {
390391
for (String[] edge : EXPECTED_ENHANCED_EDGES) {
391392
IndexedWord dep = graphNodes.get(edge[0]);
392393
IndexedWord gov = graphNodes.get(edge[1]);
393-
GrammaticalRelation reln = GrammaticalRelation.valueOf(edge[2]);
394+
GrammaticalRelation reln = GrammaticalRelation.valueOf(Language.UniversalEnglish, edge[2]);
394395
edges.add(new SemanticGraphEdge(gov, dep, reln, 1.0, false));
395396
}
396397
List<IndexedWord> roots = new ArrayList<>();

0 commit comments

Comments
 (0)