gate.util
Class LanguageAnalyserDocumentProcessor

java.lang.Object
  extended by gate.util.LanguageAnalyserDocumentProcessor
All Implemented Interfaces:
DocumentProcessor

public class LanguageAnalyserDocumentProcessor
extends Object
implements DocumentProcessor

DocumentProcessor that processes documents using a LanguageAnalyser.


Constructor Summary
LanguageAnalyserDocumentProcessor()
           
 
Method Summary
 void cleanup()
          Clean up resources.
 void processDocument(Document doc)
          Process the given GATE document.
 void setAnalyser(LanguageAnalyser a)
          Set the controller used to process documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageAnalyserDocumentProcessor

public LanguageAnalyserDocumentProcessor()
Method Detail

setAnalyser

public void setAnalyser(LanguageAnalyser a)
Set the controller used to process documents.


processDocument

public void processDocument(Document doc)
                     throws GateException
Description copied from interface: DocumentProcessor
Process the given GATE document.

Specified by:
processDocument in interface DocumentProcessor
Throws:
GateException

cleanup

public void cleanup()
Clean up resources. Should be called when this processor is no longer required.