Ejemplo n.º 1
0
 public int rank(List<List<String>> candidateFeatures) {
   FeatureVector[] featureVectorArray =
       TrainMalletMaxEntRank.candidateFeatures2FV(candidateFeatures, model.getAlphabet());
   Instance instance = new Instance(featureVectorArray, null, null, null);
   Labeling lab = model.classify(instance).getLabeling();
   return Integer.parseInt(lab.getBestLabel().toString());
 }