Package org.mitre.jcarafe.jarafe

Examples of org.mitre.jcarafe.jarafe.JarafeMEDecoder.classifyInstance()


      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


      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

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.