Examples of addTerms()


Examples of graphplan.domain.jason.OperatorImpl.addTerms()

          }
        }

        this.parameterTypes.put(actionDef.getName(), parameterTypes);
       
        operatorImpl.addTerms(termsOp);
       
        operatorImpl.getPreconds().addAll(this.getPropositionFromDomainExp(precontidion));
        operatorImpl.getEffects().addAll(this.getPropositionFromDomainExp(effect));
       
        operators.add(operatorImpl);
View Full Code Here

Examples of graphplan.domain.jason.OperatorImpl.addTerms()

        List<Term> newTerms = new ArrayList<Term>();
       
        for(int i=0; i<n; i++)
          newTerms.add(termInstances[i]);

        newOp.addTerms(newTerms);
        List<String> termsOp = new ArrayList<String>();
        for(int i=0; i<newOp.getTerms().toArray().length; i++)
          termsOp.add(op.getTerms().toArray()[i].toString() +"@"+ newOp.getTerms().toArray()[i].toString());
       
        BitSet pe = new BitSet();
View Full Code Here

Examples of graphplan.domain.jason.PropositionImpl.addTerms()

         
          Set<String> setVar = this.types.get(var.getTypeSet().toString());
          setVar.add(var.getImage());
        }
       
        proposition.addTerms(terms);
        initialState.add(proposition);
      }
     
      logger.finest("\n--> Goal\n");
      logger.finest(this.pddlObject.getGoal().toString());
View Full Code Here

Examples of graphplan.domain.jason.PropositionImpl.addTerms()

              this.types.put(var.getTypeSet().toString(), setVar);
            } else setVar.add(c.toString());
          }
        }
       
        proposition.addTerms(terms);
        propositionImpls.add(proposition);
       
        break;
          case NOT:
              NotExp notExp = (NotExp) exp;
View Full Code Here

Examples of graphplan.domain.jason.PropositionImpl.addTerms()

              this.types.put(con.getTypeSet().toString(), setCon);
            } else setCon.add(c.toString());
          }
        }
       
        proposition.addTerms(terms);
        propositionImpls.add(proposition);
       
        break;
          case NOT:
              NotExp notExp = (NotExp) exp;
View Full Code Here

Examples of net.bpiwowar.mg4j.extensions.query.Query.addTerms()

        // --- Get the query terms
        if (1 == 1) throw new NotImplementedException("topic parts below");
        final Query query = topic.getTopicPart(null);
        Set<String> queryTermStrings = new HashSet<>();
        LongArraySet queryTermSet = new LongArraySet();
        query.addTerms(queryTermStrings);
        for (String term : queryTermStrings) {
            final long termId = index.getTermId(term);
            if (termId != unknown) {
                queryTermSet.add(termId);
            }
View Full Code Here

Examples of org.apache.lucene.sandbox.queries.FuzzyLikeThisQuery.addTerms()

      float minSimilarity = DOMUtils.getAttribute(fieldElem, "minSimilarity", DEFAULT_MIN_SIMILARITY);
      int prefixLength = DOMUtils.getAttribute(fieldElem, "prefixLength", DEFAULT_PREFIX_LENGTH);
      String fieldName = DOMUtils.getAttributeWithInheritance(fieldElem, "fieldName");

      String value = DOMUtils.getText(fieldElem);
      fbq.addTerms(value, fieldName, minSimilarity, prefixLength);
    }

    fbq.setBoost(DOMUtils.getAttribute(e, "boost", 1.0f));
    return fbq;
  }
View Full Code Here

Examples of org.apache.lucene.sandbox.queries.FuzzyLikeThisQuery.addTerms()

                return null;
            }
        }

        FuzzyLikeThisQuery fuzzyLikeThisQuery = new FuzzyLikeThisQuery(maxNumTerms, analyzer);
        fuzzyLikeThisQuery.addTerms(likeText, fieldName, fuzziness.asSimilarity(), prefixLength);
        fuzzyLikeThisQuery.setBoost(boost);
        fuzzyLikeThisQuery.setIgnoreTF(ignoreTF);

        // move to the next end object, to close the field name
        token = parser.nextToken();
View Full Code Here

Examples of org.apache.lucene.sandbox.queries.FuzzyLikeThisQuery.addTerms()

        }
        if (minSimilarity < 0.0f)  {
            throw new ElasticsearchIllegalArgumentException("minimumSimilarity cannot be less than 0");
        }
        for (String field : fields) {
            query.addTerms(likeText, field, minSimilarity, prefixLength);
        }
        query.setBoost(boost);
        query.setIgnoreTF(ignoreTF);

        if (queryName != null) {
View Full Code Here

Examples of org.apache.lucene.search.FuzzyLikeThisQuery.addTerms()

        if (analyzer == null) {
            analyzer = parseContext.mapperService().searchAnalyzer();
        }

        FuzzyLikeThisQuery query = new FuzzyLikeThisQuery(maxNumTerms, analyzer);
        query.addTerms(likeText, fieldName, minSimilarity, prefixLength);
        query.setBoost(boost);
        query.setIgnoreTF(ignoreTF);

        // move to the next end object, to close the field name
        token = parser.nextToken();
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.