uk.ac.shef.dcs.oak.jate.io
Class ResultWriter2File

java.lang.Object
  extended by uk.ac.shef.dcs.oak.jate.io.ResultWriter2File

public class ResultWriter2File
extends java.lang.Object

A helper class which outputs term recognition results


Constructor Summary
ResultWriter2File(GlobalIndex index)
           
 
Method Summary
 void output(Term[] result, java.lang.String path)
          Output the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultWriter2File

public ResultWriter2File(GlobalIndex index)
Parameters:
index - an instance of GlobalIndexMem. The writer will read mapping data from term canonical from to variant forms and output the result
Method Detail

output

public void output(Term[] result,
                   java.lang.String path)
            throws JATEException
Output the result. This writes one term on a line in the format of:

canonical |variant1 |variant2 |variantX confidence

Parameters:
result - term recognition result sorted descendingly by confidence
path - output file path
Throws:
JATEException