Package ivory.smrf.model

Examples of ivory.smrf.model.Parameter


    if (queryTerms.length == 0) {
      return cliques;
    }

    // Default parameter associated with CliqueSet.
    Parameter parameter = new Parameter(Parameter.DEFAULT, 1.0f);

    // Get potential type.
    String potentialType = XMLTools.getAttributeValue(domNode, "potential", null);
    if (potentialType == null) {
      throw new ConfigurationException("A potential attribute must be specified in order to generate a clique set!");
View Full Code Here


    if (queryTerms.length == 0) {
      return cliques;
    }

    // Default parameter associated with CliqueSet.
    Parameter parameter = new Parameter(Parameter.DEFAULT, 1.0f);

    // Get potential type.
    String potentialType = XMLTools.getAttributeValue(domNode, "potential", null);
    if (potentialType == null) {
      throw new ConfigurationException("A potential attribute must be specified in order to generate a clique set!");
View Full Code Here

    // The document node.
    DocumentNode docNode = new DocumentNode();

    // Default parameter associated with clique set.
    Parameter termParameter = new Parameter(Parameter.DEFAULT, 1.0f);

    // Get potential type.
    String potentialType = XMLTools.getAttributeValue(domNode, "potential", null);
    if (potentialType == null) {
      throw new ConfigurationException("A potential attribute must be specified in order to generate a CliqueSet!");
View Full Code Here

    if (queryTerms.length == 0) {
      return cliques;
    }

    // Default parameter associated with CliqueSet.
    Parameter parameter = new Parameter(Parameter.DEFAULT, 1.0f);

    // Get potential type.
    String potentialType = XMLTools.getAttributeValueOrThrowException(domNode, "potential",
        "A potential attribute must be specified in order to generate a clique set!");
View Full Code Here

    if (queryTerms.length == 0) {
      return cliques;
    }

    // Default parameter associated with CliqueSet.
    Parameter parameter = new Parameter(Parameter.DEFAULT, 1.0f);

    // Get potential type.
    String potentialType = XMLTools.getAttributeValueOrThrowException(domNode, "potential",
        "A potential attribute must be specified in order to generate a clique set!");
View Full Code Here

    // The document node.
    DocumentNode docNode = new DocumentNode();

    // Default parameter associated with clique set.
    Parameter termParameter = new Parameter(Parameter.DEFAULT, 1.0f);

    // Get potential type.
    String potentialType = XMLTools.getAttributeValueOrThrowException(domNode, "potential",
        "A potential attribute must be specified in order to generate a CliqueSet!");
View Full Code Here

    String paramId = XMLTools.getAttributeValueOrThrowException(domNode, "id",
        "Error: A potential attribute must be specified in order to generate a clique set!");

    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);
View Full Code Here

      for (int j = 0; j < scoringFunctionNodes.size(); j++) {
        Node functionNode = scoringFunctionNodes.get(j);
        String functionType = XMLTools.getAttributeValue(functionNode, "scoreFunction", null);
        ScoringFunction fn = ScoringFunction.create(functionType, functionNode);

        Parameter parameter = parameters.get(j);
        ConceptImportanceModel importanceModel = importanceModels.get(j);

        List<GraphNode> cliqueNodes = Lists.newArrayList();
        cliqueNodes.add(docNode);
View Full Code Here

          String paramID = XMLTools.getAttributeValueOrThrowException(child, "id",
              "conceptscore node must specify an id attribute!");

          float weight = XMLTools.getAttributeValue(child, "weight", 1.0f);

          parameters.add(new Parameter(paramID, weight));
          scoreFunctionNodes.add(child);

          // Get concept importance source (if applicable).
          ConceptImportanceModel importanceModel = null;
          String importanceSource = XMLTools.getAttributeValue(child, "importance", null);
View Full Code Here

          String paramID = XMLTools.getAttributeValueOrThrowException(child, "id",
              "conceptscore node must specify an id attribute!");

          float weight = XMLTools.getAttributeValue(child, "weight", 1.0f);

          parameters.add(new Parameter(paramID, weight));
          scoreFunctionNodes.add(child);

          // Get concept importance source (if applicable).
          ConceptImportanceModel importanceModel = null;
          String importanceSource = XMLTools.getAttributeValue(child, "importance", null);
View Full Code Here

TOP

Related Classes of ivory.smrf.model.Parameter

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.