Examples of containsDependent()


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

      {
        if (MPLibEn.RE_NEG.matcher(node.form.toLowerCase()).find())
          node.setLabel(DEPLibEn.DEP_NEG);
      }
     
      if (node.containsDependent(DEPLibEn.DEP_AUXPASS))
      {
        for (DEPNode child : node.getDependentsByLabels(DEPLibEn.DEP_CSUBJ, DEPLibEn.DEP_NSUBJ))
          child.setLabel(child.getLabel()+DEPLibEn.DEP_PASS);
      }
     
View Full Code Here

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

        if ((node.isLabel(DEPLibEn.P_SBJ) && !DEPLibEn.isSmallClauseAux(head))
        ||  (node.isLabel(DEPLibEn.DEP_CONJ) && head.isLabel(DEPLibEn.P_SBJ) && !DEPLibEn.isSmallClauseAux(head.getHead())))
        {
          node.form = node.lemma = "I";
         
          if (!node.isLabel(DEPLibEn.DEP_CONJ) && !node.containsDependent(DEPLibEn.DEP_CONJ))
          {
            if (!convertU2IBe(head))
            {
              for (DEPArc arc : head.getDependents())
              {
View Full Code Here

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

          return false;
       
        if (dep.isLabel(P_AUX) && !node.isLemma("do"))
          return false;
       
        if ((node.isPos(CTLibEn.POS_TO) && node.containsDependent(DEPLibEn.DEP_POBJ)) || node.isPos(CTLibEn.POS_MD) || node.pos.startsWith("W"))
          return false
      }
     
      if (node.id < verb.id && (dep.isLabel(P_SBJ) || dep.isLabel(DEPLibEn.DEP_EXPL)))
        return false;
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.