org.apache.uima.simpleserver
Class ResultExtractor

java.lang.Object
  extended by org.apache.uima.simpleserver.ResultExtractor

public class ResultExtractor
extends java.lang.Object

This class contains static methods responsible for iterating over annotations, applying filters and building output.


Constructor Summary
ResultExtractor()
           
 
Method Summary
 Result getResult(org.apache.uima.cas.CAS cas, ServerSpec resultSpec)
          Extract a set of results from a CAS and a result specification.
static void makeOutputs(ResultEntryImpl resultEntry, org.apache.uima.cas.text.AnnotationFS annotation, TypeMap tspec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultExtractor

public ResultExtractor()
Method Detail

getResult

public Result getResult(org.apache.uima.cas.CAS cas,
                        ServerSpec resultSpec)
Extract a set of results from a CAS and a result specification.

Parameters:
cas - The CAS to extract results from.
resultSpec - The result specification.

makeOutputs

public static void makeOutputs(ResultEntryImpl resultEntry,
                               org.apache.uima.cas.text.AnnotationFS annotation,
                               TypeMap tspec)


Copyright © 2011. All Rights Reserved.