uk.ac.shef.dcs.oak.jate.core.voting
Class Voting

java.lang.Object
  extended by uk.ac.shef.dcs.oak.jate.core.voting.Voting

public class Voting
extends java.lang.Object


Constructor Summary
Voting()
           
 
Method Summary
 java.util.List<Term> calculate(WeightedOutput... outputs)
          Produce the voting result
 java.util.List<Term> load(java.lang.String path)
          Load standard jate term recognition output into a list of ranked terms.
 void output(java.util.List<Term> target, java.lang.String filename)
          Output the result, one term on a line, in the format of
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Voting

public Voting()
Method Detail

load

public java.util.List<Term> load(java.lang.String path)
Load standard jate term recognition output into a list of ranked terms. The standard output has one term on a line, in the format of:

lemma |variantX |variantY confidence

Parameters:
path -
Returns:

calculate

public java.util.List<Term> calculate(WeightedOutput... outputs)
                               throws JATEException
Produce the voting result

Parameters:
outputs -
Returns:
Throws:
JATEException

output

public void output(java.util.List<Term> target,
                   java.lang.String filename)
Output the result, one term on a line, in the format of

lemma confidence

Parameters:
target -
filename -