Package org.maltparserx.core.syntaxgraph.headrules

Examples of org.maltparserx.core.syntaxgraph.headrules.Direction


  }
 
  private PhraseStructureNode identifyHeadChild(HeadRules headRules) throws MaltChainedException {
    PhraseStructureNode headChild = (headRules == null)?null:headRules.getHeadChild(this);
    if (headChild == null) {
      Direction direction = (headRules == null)?Direction.LEFT:headRules.getDefaultDirection(this);
      if (direction == Direction.LEFT) {
        if ((headChild = leftmostTerminalChild()) == null) {
          headChild = leftmostNonTerminalChild();
        }
      } else {
View Full Code Here


  }
 
  private PhraseStructureNode identifyHeadChild(HeadRules headRules) throws MaltChainedException {
    PhraseStructureNode headChild = (headRules == null)?null:headRules.getHeadChild(this);
    if (headChild == null) {
      Direction direction = (headRules == null)?Direction.LEFT:headRules.getDefaultDirection(this);
      if (direction == Direction.LEFT) {
        if ((headChild = leftmostTerminalChild()) == null) {
          headChild = leftmostNonTerminalChild();
        }
      } else {
View Full Code Here

TOP

Related Classes of org.maltparserx.core.syntaxgraph.headrules.Direction

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.