|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--dragon.nlp.extract.AbstractConceptExtractor
|
+--dragon.nlp.extract.AbstractPhraseExtractor
Abstract class for phrase extraction
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Field Summary | |
protected Lemmatiser |
lemmatiser
|
protected Tagger |
tagger
|
protected boolean |
useAdj
|
protected boolean |
useNoun
|
protected boolean |
useVerb
|
protected Vocabulary |
vocabulary
|
| Fields inherited from class dragon.nlp.extract.AbstractConceptExtractor |
cf, conceptFilter_enabled, conceptList, parser, subconcept_enabled |
| Constructor Summary | |
AbstractPhraseExtractor(Vocabulary vocabulary,
Tagger tagger,
Lemmatiser lemmatiser)
|
|
| Method Summary | |
Lemmatiser |
getLemmatiser()
Gets the lemmtiser used for this extractor. |
Tagger |
getPOSTagger()
Gets the part of speech tagger used for the phrase extractor |
boolean |
getSingleAdjectiveOption()
Tests if the single-word adjectives will be extracted. |
boolean |
getSingleNounOption()
Tests if the single-word nouns will be extracted. |
boolean |
getSingleVerbOption()
Tests if the single-word verbs will be extracted. |
Vocabulary |
getVocabulary()
Gets the phrase dictionary |
void |
initDocExtraction()
It is required to call this method before one calls extractFromDoc method. |
void |
setLemmatiser(Lemmatiser lemmatiser)
Sets lemmatiser for this extractor. |
void |
setSingleAdjectiveOption(boolean option)
Sets the option of extracting single-word adjectives. |
void |
setSingleNounOption(boolean option)
Sets the option of extracting single-word nouns. |
void |
setSingleVerbOption(boolean option)
Sets the option of extracting single-word verbs. |
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 |
protected Lemmatiser lemmatiser
protected Tagger tagger
protected Vocabulary vocabulary
protected boolean useNoun
protected boolean useAdj
protected boolean useVerb
| Constructor Detail |
public AbstractPhraseExtractor(Vocabulary vocabulary,
Tagger tagger,
Lemmatiser lemmatiser)
| Method Detail |
public void setSingleNounOption(boolean option)
PhraseExtractor
setSingleNounOption in interface PhraseExtractoroption - the option of extracting single-word nounspublic boolean getSingleNounOption()
PhraseExtractor
getSingleNounOption in interface PhraseExtractorpublic void setSingleVerbOption(boolean option)
PhraseExtractor
setSingleVerbOption in interface PhraseExtractoroption - the option of extracting single-word verbspublic boolean getSingleVerbOption()
PhraseExtractor
getSingleVerbOption in interface PhraseExtractorpublic void setSingleAdjectiveOption(boolean option)
PhraseExtractor
setSingleAdjectiveOption in interface PhraseExtractoroption - the option of extracting single-word adjectivespublic boolean getSingleAdjectiveOption()
PhraseExtractor
getSingleAdjectiveOption in interface PhraseExtractorpublic boolean supportConceptName()
ConceptExtractor
supportConceptName in interface ConceptExtractorpublic boolean supportConceptEntry()
ConceptExtractor
supportConceptEntry in interface ConceptExtractorpublic Lemmatiser getLemmatiser()
ConceptExtractor
getLemmatiser in interface ConceptExtractorpublic void setLemmatiser(Lemmatiser lemmatiser)
ConceptExtractor
setLemmatiser in interface ConceptExtractorlemmatiser - the lemmatiserpublic Tagger getPOSTagger()
PhraseExtractor
getPOSTagger in interface PhraseExtractorpublic Vocabulary getVocabulary()
PhraseExtractor
getVocabulary in interface PhraseExtractorpublic void initDocExtraction()
ConceptExtractor
initDocExtraction in interface ConceptExtractor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||