Examples of addXHead()


Examples of com.clearnlp.dependency.DEPNode.addXHead()

       
        dNode.setHead(dTree.get(headId), label);
      }
     
      if ((ante = cNode.getAntecedent()) != null)
        dNode.addXHead(getDEPNode(dTree, ante), DEPLibEn.DEP_REF);
    }
   
    if (rootCount > 1System.err.println("Warning: multiple roots exist");
  }
 
View Full Code Here

Examples of com.clearnlp.dependency.DEPNode.addXHead()

    DEPNode node;
   
    for (CTNode cNode : dq)
    {
      node = getDEPNode(dTree, cNode);
      node.addXHead(head, label);     
    }
  }
 
  /** Add extra features. */
  private void addFeats(DEPTree dTree, CTTree cTree, CTNode cNode)
View Full Code Here

Examples of com.clearnlp.dependency.DEPNode.addXHead()

    String feat;
   
    if (cNode.gapIndex != -1 && cNode.getParent().gapIndex == -1 && (ante = cTree.getCoIndexedAntecedent(cNode.gapIndex)) != null)
    {
      DEPNode dNode = getDEPNode(dTree, cNode);
      dNode.addXHead(getDEPNode(dTree, ante), DEPLibEn.DEP_GAP);
    }
   
    if ((feat = getFunctionTags(cNode, s_semTags)) != null)
      cNode.c2d.putFeat(DEPLibEn.FEAT_SEM, feat);
   
View Full Code Here

Examples of com.clearnlp.dependency.DEPNode.addXHead()

        {
          tmp    = head.split(DEPLib.DELIM_HEADS_KEY);
          headId = Integer.parseInt(tmp[0]);
          label  = tmp[1];
         
          node.addXHead(tree.get(headId), label);
        }
      }
    }
   
    return tree;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.