Package edu.stanford.nlp.trees

Examples of edu.stanford.nlp.trees.EnglishGrammaticalStructure$ExtraTreeDepFilter


    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);
    }
  }
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.trees.EnglishGrammaticalStructure$ExtraTreeDepFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.