Package ivory.smrf.model

Examples of ivory.smrf.model.TermNode


    }

    // If there is more than one term, then add appropriate cliques.
    List<GraphNode> cliqueNodes = null;
    Clique c = null;
    TermNode lastTermNode = null;

    for (String element : queryTerms) {
      // Term node.
      TermNode termNode = new TermNode(element);

      // Add sequential cliques.
      if (lastTermNode != null) {
        cliqueNodes = Lists.newArrayList();
        if (docDependent) {
View Full Code Here


        cliqueNodes = Lists.newArrayList();
        if (docDependent) {
          cliqueNodes.add(docNode);
        }
        for (int j = firstOne; j <= lastOne; j++) {
          TermNode termNode = new TermNode(queryTerms[j]);
          cliqueNodes.add(termNode);
        }

        // Get the potential function.
        PotentialFunction potential = PotentialFunction.create(env, potentialType, domNode);

        c = new CascadeClique(cliqueNodes, potential, parameter, cascadeStage, pruner_and_params);
        cliques.add(c);
      } else if (!ordered && !singleTerm && !contiguous) {
        cliqueNodes = Lists.newArrayList();
        if (docDependent) {
          cliqueNodes.add(docNode);
        }
        for (int j = 0; j < binary.length(); j++) {
          if (binary.charAt(j) == '1') {
            TermNode termNode = new TermNode(queryTerms[j]);
            cliqueNodes.add(termNode);
          }
        }

        // Get the potential function.
View Full Code Here

    }

    // Add clique for each query term.
    for (String element : queryTerms) {
      // Add term node.
      TermNode termNode = new TermNode(element);

      // Add document/term clique.
      ArrayList<GraphNode> cliqueNodes = new ArrayList<GraphNode>();
      if (docDependent) {
        cliqueNodes.add(docNode);
View Full Code Here

        ConceptImportanceModel importanceModel = importanceModels.get(j);

        List<GraphNode> cliqueNodes = Lists.newArrayList();
        cliqueNodes.add(docNode);

        TermNode termNode = new TermNode(concept);
        cliqueNodes.add(termNode);

        PotentialFunction potential = new QueryPotential(env, generator, fn);

        Clique c = new Clique(cliqueNodes, potential, parameter);
View Full Code Here

TOP

Related Classes of ivory.smrf.model.TermNode

Copyright © 2018 www.massapicom. 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.