textractor.chain.transformer
Class AbnerSentenceTransformer
java.lang.Object
textractor.sentence.AbstractSentenceProcessor
textractor.chain.AbstractSentenceTransformer
textractor.chain.transformer.AbnerSentenceTransformer
- All Implemented Interfaces:
- Callable<Boolean>, EventListener, Chain, Command, SentenceProcessingCompleteListener, SentenceProcessor, SentenceTransformer, TextractorProcessor
public final class AbnerSentenceTransformer
- extends AbstractSentenceTransformer
A SentenceTransformer which will replace
sentence named entities text and positions with their more generic
type names (i.e., protein, dna, etc.)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbnerSentenceTransformer
public AbnerSentenceTransformer()
- Create a new
SentenceTransformer that
that replaces named entities in a sentence.
getNumberOfArticlesProcessed
public int getNumberOfArticlesProcessed()
- Get the number of articles processed so far.
- Returns:
- The number of articles processed so far
getNumberOfSentencesProcessed
public int getNumberOfSentencesProcessed()
- Get the number of sentences processed so far.
- Returns:
- The number of sentences processed so far
transform
public ArticleSentencesPair transform(ArticleSentencesPair pair)
throws SentenceProcessingException
- Transform text to replace named entities using the
Tagger.
- Parameters:
pair - The ArticleSentencesPair to be transformed.
- Returns:
- A (possibly null) ArticleSentencesPair based on the original
- Throws:
SentenceProcessingException - If there was an
error condition in the textractor sentence processing pipeline
Copyright © 2003-2008 Institute for Computational Biomedicine, All Rights Reserved.