return new GrammaticalRelation(language, label, null, GrammaticalRelation.DEPENDENT);
}
private GrammaticalStructure makeGrammaticalStructure(List<TypedDependency> dependencies, TreeGraphNode rootNode) {
switch (language) {
case English: return new EnglishGrammaticalStructure(dependencies, rootNode);
case Chinese: return new ChineseGrammaticalStructure(dependencies, rootNode);
// TODO suboptimal: default to EnglishGrammaticalStructure return
default: return new EnglishGrammaticalStructure(dependencies, rootNode);
}
}