public abstract class AbstractPhraseExtractor extends AbstractConceptExtractor implements PhraseExtractor
Abstract class for phrase extraction
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected Lemmatiser |
lemmatiser |
protected Tagger |
tagger |
protected boolean |
useAdj |
protected boolean |
useNoun |
protected boolean |
useVerb |
protected Vocabulary |
vocabulary |
cf, conceptFilter_enabled, conceptList, parser, subconcept_enabled| Constructor and Description |
|---|
AbstractPhraseExtractor(Vocabulary vocabulary,
Tagger tagger,
Lemmatiser lemmatiser) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
extractFromDoc, extractFromDoc, getConceptFilter, getConceptList, getDocumentParser, getFilteringOption, getSubConceptOption, mergeConceptByEntryID, mergeConceptByName, print, print, setConceptFilter, setDocumentParser, setFilteringOption, setSubConceptOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextractFromDoc, extractFromDoc, extractFromSentence, getConceptFilter, getConceptList, getDocumentParser, getFilteringOption, getSubConceptOption, mergeConceptByEntryID, mergeConceptByName, print, print, setConceptFilter, setDocumentParser, setFilteringOption, setSubConceptOptionprotected Lemmatiser lemmatiser
protected Tagger tagger
protected Vocabulary vocabulary
protected boolean useNoun
protected boolean useAdj
protected boolean useVerb
public AbstractPhraseExtractor(Vocabulary vocabulary, Tagger tagger, Lemmatiser lemmatiser)
public void setSingleNounOption(boolean option)
PhraseExtractorsetSingleNounOption in interface PhraseExtractoroption - the option of extracting single-word nounspublic boolean getSingleNounOption()
PhraseExtractorgetSingleNounOption in interface PhraseExtractorpublic void setSingleVerbOption(boolean option)
PhraseExtractorsetSingleVerbOption in interface PhraseExtractoroption - the option of extracting single-word verbspublic boolean getSingleVerbOption()
PhraseExtractorgetSingleVerbOption in interface PhraseExtractorpublic void setSingleAdjectiveOption(boolean option)
PhraseExtractorsetSingleAdjectiveOption in interface PhraseExtractoroption - the option of extracting single-word adjectivespublic boolean getSingleAdjectiveOption()
PhraseExtractorgetSingleAdjectiveOption in interface PhraseExtractorpublic boolean supportConceptName()
ConceptExtractorsupportConceptName in interface ConceptExtractorpublic boolean supportConceptEntry()
ConceptExtractorsupportConceptEntry in interface ConceptExtractorpublic Lemmatiser getLemmatiser()
ConceptExtractorgetLemmatiser in interface ConceptExtractorpublic void setLemmatiser(Lemmatiser lemmatiser)
ConceptExtractorsetLemmatiser in interface ConceptExtractorlemmatiser - the lemmatiserpublic Tagger getPOSTagger()
PhraseExtractorgetPOSTagger in interface PhraseExtractorpublic Vocabulary getVocabulary()
PhraseExtractorgetVocabulary in interface PhraseExtractorpublic void initDocExtraction()
ConceptExtractorinitDocExtraction in interface ConceptExtractorCopyright © 2018 JULIE Lab, Germany. All rights reserved.