dragon.nlp.extract
Class AbstractTokenExtractor

java.lang.Object
  |
  +--dragon.nlp.extract.AbstractConceptExtractor
        |
        +--dragon.nlp.extract.AbstractTokenExtractor
All Implemented Interfaces:
ConceptExtractor, TokenExtractor
Direct Known Subclasses:
BasicTokenExtractor

public abstract class AbstractTokenExtractor
extends AbstractConceptExtractor
implements TokenExtractor

Abstract class for token extraction

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou

Field Summary
protected  Lemmatiser lemmatiser
           
 
Fields inherited from class dragon.nlp.extract.AbstractConceptExtractor
cf, conceptFilter_enabled, conceptList, parser, subconcept_enabled
 
Constructor Summary
AbstractTokenExtractor(Lemmatiser lemmatiser)
           
 
Method Summary
 Lemmatiser getLemmatiser()
          Gets the lemmtiser used for this extractor.
 void initDocExtraction()
          It is required to call this method before one calls extractFromDoc method.
 void setLemmatiser(Lemmatiser lemmatiser)
          Sets lemmatiser for this extractor.
 boolean supportConceptEntry()
          Tests if the extracted concept has an entry ID.
 boolean supportConceptName()
          Tests if the extracted concept has a name.
 
Methods inherited from class dragon.nlp.extract.AbstractConceptExtractor
extractFromDoc, extractFromDoc, getConceptFilter, getConceptList, getDocumentParser, getFilteringOption, getSubConceptOption, mergeConceptByEntryID, mergeConceptByName, print, print, setConceptFilter, setDocumentParser, setFilteringOption, setSubConceptOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dragon.nlp.extract.ConceptExtractor
extractFromDoc, extractFromDoc, extractFromSentence, getConceptFilter, getConceptList, getDocumentParser, getFilteringOption, getSubConceptOption, mergeConceptByEntryID, mergeConceptByName, print, print, setConceptFilter, setDocumentParser, setFilteringOption, setSubConceptOption
 

Field Detail

lemmatiser

protected Lemmatiser lemmatiser
Constructor Detail

AbstractTokenExtractor

public AbstractTokenExtractor(Lemmatiser lemmatiser)
Method Detail

supportConceptName

public boolean supportConceptName()
Description copied from interface: ConceptExtractor
Tests if the extracted concept has a name.

Specified by:
supportConceptName in interface ConceptExtractor
Returns:
true or false

supportConceptEntry

public boolean supportConceptEntry()
Description copied from interface: ConceptExtractor
Tests if the extracted concept has an entry ID.

Specified by:
supportConceptEntry in interface ConceptExtractor
Returns:
true or false

getLemmatiser

public Lemmatiser getLemmatiser()
Description copied from interface: ConceptExtractor
Gets the lemmtiser used for this extractor.

Specified by:
getLemmatiser in interface ConceptExtractor
Returns:
the lemmatiser used

setLemmatiser

public void setLemmatiser(Lemmatiser lemmatiser)
Description copied from interface: ConceptExtractor
Sets lemmatiser for this extractor.

Specified by:
setLemmatiser in interface ConceptExtractor
Parameters:
lemmatiser - the lemmatiser

initDocExtraction

public void initDocExtraction()
Description copied from interface: ConceptExtractor
It is required to call this method before one calls extractFromDoc method.

Specified by:
initDocExtraction in interface ConceptExtractor