Textractor API textractor-720 (20091120123250)

textractor.sentence
Interface SentenceConsumer

All Superinterfaces:
SentenceProcessor, TextractorProcessor
All Known Implementing Classes:
AbstractSentenceConsumer, DatabaseTextConsumer, DocumentStoreBuilder, Indexer, QueueTextConsumer, SentenceWriter, TextConsumer

public interface SentenceConsumer
extends SentenceProcessor

A sentence consumer processes Sentences along with their associated Article. Consumers are encouraged to accept SentenceProcessingCompleteEvent objects from their corresponding SentenceProducer or SentenceTransformer.


Method Summary
 void consume(Article article, Collection<Sentence> sentences)
          Process sentences along with their associated article.
 
Methods inherited from interface textractor.sentence.SentenceProcessor
addSentenceProcessedListener, addSentenceProcessingCompleteListener, getNumberOfArticlesProcessed, getNumberOfSentencesProcessed, removeSentenceProcessedListener, removeSentenceProcessingCompleteListener
 

Method Detail

consume

void consume(Article article,
             Collection<Sentence> sentences)
             throws SentenceProcessingException
Process sentences along with their associated article.

Parameters:
article - The article assoicated with the sentences.
sentences - A collection of Sentences to process.
Throws:
SentenceProcessingException - If there was an error condition in the textractor sentence processing pipeline

Textractor API textractor-720 (20091120123250)

Copyright © 2003-2008 Institute for Computational Biomedicine, All Rights Reserved.