Package ivory.ltr.operator

Examples of ivory.ltr.operator.Operator


     for(Entry<String, SortedMap<String, Operator>> featureEntry : featureValues.entrySet()) {
       String docName = featureEntry.getKey();
       System.out.print(qid + "\t" + docName);
       Map<String,Operator> docFeatures = featureEntry.getValue();
       for(String featureName : featureNames) {
         Operator op = docFeatures.get(featureName);
         double featVal = DEFAULT_FEATURE_VALUE;
         if(op != null) {
           featVal = op.getFinalScore();
         }
         System.out.print("\t" + featVal);
       }
       System.out.println();
     }
View Full Code Here


     for(Entry<String, SortedMap<String, Operator>> featureEntry : featureValues.entrySet()) {
       String docName = featureEntry.getKey();
       System.out.print(qid + "\t" + docName);
       Map<String,Operator> docFeatures = featureEntry.getValue();
       for(String featureName : featureNames) {
         Operator op = docFeatures.get(featureName);
         double featVal = DEFAULT_FEATURE_VALUE;
         if(op != null) {
           featVal = op.getFinalScore();
         }
         System.out.print("\t" + featVal);
       }
       System.out.println();
     }
View Full Code Here

TOP

Related Classes of ivory.ltr.operator.Operator

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.