Package com.clearnlp.propbank.verbnet

Examples of com.clearnlp.propbank.verbnet.PVRoleset.keySet()


     
      if (rolesetId != null)
      {
        if ((pvRoleset = map.getRoleset(rolesetId)) != null)
        {
          vnclss = new ArrayList<String>(pvRoleset.keySet());
          Collections.sort(vnclss);
          node.addFeat(DEPLib.FEAT_VN, UTCollection.toString(vnclss, DEPFeat.DELIM_VALUES));
        }
       
        pvRolesets[i] = pvRoleset;
View Full Code Here


    for (i=1; i<size; i++)
      for (DEPArc arc : tree.get(i).getSHeads())
        if ((pvRoleset = pvRolesets[arc.getNode().id]) != null)
          if (PTNumber.containsOnlyDigits(n = arc.getLabel().substring(1, 2)))
          {
            vnclss = new ArrayList<String>(pvRoleset.keySet());
            Collections.sort(vnclss);
           
            for (String vncls : vnclss)
              if ((pvRole = pvRoleset.get(vncls).getRole(n)) != null)
                arc.appendLabel(pvRole.vntheta);
View Full Code Here

      total += sVerb.size();
     
      for (String roleset : sVerb)
      {
        pvRoleset = pvVerb.get(roleset);
        sVncls = new HashSet<String>(pvRoleset.keySet());
        c = sVncls.size();
        sVncls.removeAll(prev);
       
        if (sVncls.isEmpty())  c = 1;
        else if (c > 5)      c = 5;
View Full Code Here

      total++;
     
      for (String roleset : sVerb)
      {
        pvRoleset = pvVerb.get(roleset);
        sVncls.addAll(pvRoleset.keySet());
      }
     
      c = sVncls.size();
      sVncls.removeAll(prev);
     
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.