Examples of subsumes()


Examples of org.apache.uima.cas.TypeSystem.subsumes()

  public static Collection<FeatureStructure> create(ArrayFS aArray, Type aType) {
    TypeSystem ts = aArray.getCAS().getTypeSystem();
    List<FeatureStructure> data = new ArrayList<FeatureStructure>(aArray.size());
    for (int i = 0; i < aArray.size(); i++) {
      FeatureStructure value = aArray.get(i);
      if (value != null && (aType == null || ts.subsumes(aType, value.getType()))) {
        data.add(value);
      }
    }
    return asList(data.toArray(new FeatureStructure[data.size()]));
  }
View Full Code Here

Examples of org.apache.uima.cas.TypeSystem.subsumes()

    List<FeatureStructure> data = new ArrayList<FeatureStructure>();
    FSList i = aList;
    while (i instanceof NonEmptyFSList) {
      NonEmptyFSList l = (NonEmptyFSList) i;
      TOP value = l.getHead();
      if (value != null && (type == null || ts.subsumes(type, value.getType()))) {
        data.add(l.getHead());
      }
      i = l.getTail();
    }
View Full Code Here

Examples of weka.associations.tertius.Rule.subsumes()

  added = true;
  break;
      }
      /* Subsumption tests to see if the rule can be added. */
      if ((m_subsumption || m_sameClause || m_equivalent)
    && current.subsumes(rule)) {
  if (current.numLiterals() == rule.numLiterals()) {
    if (current.equivalentTo(rule)) {
      /* Equivalent rules. */
      if (m_equivalent) {
        return;
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.