Examples of PotentialFunction


Examples of ivory.smrf.model.potential.PotentialFunction

        cliqueNodes.add(docNode);
      }
      cliqueNodes.add(termNode);

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

      Clique c = new Clique(cliqueNodes, potential, termParameter);
      addClique(c);
    }
  }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

    float weight = XMLTools.getAttributeValue(domNode, "weight", 1.0f);
    Parameter parameter = new Parameter(paramId, weight);
    String potentialType = XMLTools.getAttributeValueOrThrowException(domNode, "potential",
        "Error: A potential type must be specified!");

    PotentialFunction potential = PotentialFunction.create(env, potentialType, domNode);

    Clique c = new Clique(cliqueNodes, potential, parameter, 1.0f, getType(), true);
    addClique(c);
  }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

        }
        cliqueNodes.add(lastTermNode);
        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);
      }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

          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.
        PotentialFunction potential = PotentialFunction.create(env, potentialType, domNode);

        c = new CascadeClique(cliqueNodes, potential, parameter, cascadeStage, pruner_and_params);
        cliques.add(c);
      }
    }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

        cliqueNodes.add(docNode);
      }
      cliqueNodes.add(termNode);

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

      Clique c = new CascadeClique(cliqueNodes, potential, termParameter, cascadeStage, pruner_and_params);
      addClique(c);
    }
  }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

        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);
        c.setType(Clique.Type.Term);

        // Scale importance values by LCE likelihood.
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

  }

  // If it's a term, then return positions at the current document
  // not supported if it's term proximity feature!
  public int[] getPositions() {
    PotentialFunction potential = getPotentialFunction();
    return ((CascadeQueryPotential) potential).getPositions();
  }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

    PotentialFunction potential = getPotentialFunction();
    return ((CascadeQueryPotential) potential).getPositions();
  }

  public int getDocLen() {
    PotentialFunction potential = getPotentialFunction();
    return ((CascadeQueryPotential) potential).getDocLen();
  }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

    return ((CascadeQueryPotential) potential).getDocLen();
  }

  // reset postings readers
  public void resetPostingsListReader() {
    PotentialFunction potential = getPotentialFunction();
    ((CascadeQueryPotential) potential).resetPostingsListReader();
  }
View Full Code Here

Examples of ivory.smrf.model.potential.PotentialFunction

    cascadeStage = cs;
  }

  // Collection CF of this term/bigram
  public long termCollectionCF() {
    PotentialFunction potential = getPotentialFunction();
    return ((CascadeQueryPotential) potential).termCollectionCF();
  }
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.