Examples of JarafeMEDecoder


Examples of org.mitre.jcarafe.jarafe.JarafeMEDecoder

      Set<String> enabledFeatureIdSet = null;
      enabledFeatureIdSet = BatchRunner
          .loadEnabledFeaturesFromFile(enabledFeaturesFile);
      assertionDecoderConfiguration.setEnabledFeatureIdSet(enabledFeatureIdSet);

      JarafeMEDecoder assertionDecoder = null;
      assertionDecoder = new JarafeMEDecoder(assertionModelFile);
      assertionDecoderConfiguration.setAssertionDecoder(assertionDecoder);

      this.assertionDecoderConfiguration = assertionDecoderConfiguration;
  }
View Full Code Here

Examples of org.mitre.jcarafe.jarafe.JarafeMEDecoder

      Set<String> enabledFeatureIdSet = null;
      enabledFeatureIdSet = BatchRunner
          .loadEnabledFeaturesFromFile(enabledFeaturesFile);
      assertionDecoderConfiguration.setEnabledFeatureIdSet(enabledFeatureIdSet);

      JarafeMEDecoder assertionDecoder = null;
      assertionDecoder = new JarafeMEDecoder(assertionModelFile);
      assertionDecoderConfiguration.setAssertionDecoder(assertionDecoder);

      this.assertionDecoderConfiguration = assertionDecoderConfiguration;
  }
View Full Code Here

Examples of org.mitre.jcarafe.jarafe.JarafeMEDecoder

      TrainingInstance trainingInstance = currentEntrySet.getValue();

      Set<String> featureSet = trainingInstance.getFeatureSet();
      List<String> featureList = new ArrayList<String>(featureSet);

      JarafeMEDecoder assertionDecoder = assertionDecoderConfiguration.getAssertionDecoder();
      String assertionType = assertionDecoder.classifyInstance(featureList);
      logger.fine(String.format("ASSERTION OUTPUT: %d/%s [%s]", index, assertionType, apiConceptList.get(index)));

      assertionMap.put(index, assertionType);
    }
View Full Code Here

Examples of org.mitre.jcarafe.jarafe.JarafeMEDecoder

  }

  public void setModel(String model)
  {
    this.model = model;
    assertionDecoder = new JarafeMEDecoder(model);
  }
View Full Code Here

Examples of org.mitre.jcarafe.jarafe.JarafeMEDecoder

    xmlOutputLogger.setBaseDirectory(baseDirectoryString);
    xmlOutputLogger.init();
    xmlOutputLogger.startDocument();

    JarafeMEDecoder decoder = new JarafeMEDecoder(model);
    int matchCount = 0;
    int notMatchCount = 0;
    Collection<TrainingInstance> evaluationInstanceSet =
        getMasterTrainingInstanceListEvaluation();
    if (mode == Mode.EVAL)
      //Warning about not relying on commas to separate features -Alex Yeh
      System.err.format("%n%nOn 'DOES NOT MATCH' lines, Features are separated by ', ', but commas are also part of some feature names.%n%n");
    for (TrainingInstance currentEvalInstance : evaluationInstanceSet)
    {
      Set<String> featureSet = currentEvalInstance.getFeatureSet();
      List<String> featureList = new ArrayList<String>(featureSet);
      String actualAssertionValueString = decoder.classifyInstance(featureList);

      AssertionAnnotation originalAssertion = currentEvalInstance.getAssertAnnotateForTI();
      AssertionAnnotation resultAssertion = new AssertionAnnotation();

      AssertionValue actualAssertionValue = null;
View Full Code Here

Examples of org.mitre.jcarafe.jarafe.JarafeMEDecoder

      Set<String> enabledFeatureIdSet = null;
      enabledFeatureIdSet = BatchRunner
          .loadEnabledFeaturesFromFile(enabledFeaturesFile);
      assertionDecoderConfiguration.setEnabledFeatureIdSet(enabledFeatureIdSet);

      JarafeMEDecoder assertionDecoder = null;
      assertionDecoder = new JarafeMEDecoder(assertionModelFile);
      assertionDecoderConfiguration.setAssertionDecoder(assertionDecoder);

      this.assertionDecoderConfiguration = assertionDecoderConfiguration;
  }
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.