public interface ConceptExtractor
Interface of Concept Extractors
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
extractFromDoc(Document doc)
Extracts concepts from a parsed document
|
ArrayList |
extractFromDoc(String doc)
Extracts concepts from a raw document
|
ArrayList |
extractFromSentence(Sentence sent)
Extracts concepts from a sentence
|
ConceptFilter |
getConceptFilter()
Gets the concept filter used for this extractor.
|
ArrayList |
getConceptList() |
DocumentParser |
getDocumentParser()
Gets document parser.
|
boolean |
getFilteringOption()
Tests if the extractor applies concept filtering.
|
Lemmatiser |
getLemmatiser()
Gets the lemmtiser used for this extractor.
|
boolean |
getSubConceptOption() |
void |
initDocExtraction()
It is required to call this method before one calls extractFromDoc method.
|
SortedArray |
mergeConceptByEntryID(ArrayList conceptList)
The concepts with identical entry id will be merged.
|
SortedArray |
mergeConceptByName(ArrayList conceptList)
The concepts with identical names will be merged.
|
void |
print(PrintWriter out)
Print out the extract concepts to the speficid print writer.
|
void |
print(PrintWriter out,
ArrayList list)
Print out the given list of concepts to the speficid print writer.
|
void |
setConceptFilter(ConceptFilter cf)
Sets the concept filter for the concept extatractor
|
void |
setDocumentParser(DocumentParser parser)
Sets the document parser for the concept extractor.
|
void |
setFilteringOption(boolean option)
Sets the option of concept filtering
|
void |
setLemmatiser(Lemmatiser lemmatiser)
Sets lemmatiser for this extractor.
|
void |
setSubConceptOption(boolean option) |
boolean |
supportConceptEntry()
Tests if the extracted concept has an entry ID.
|
boolean |
supportConceptName()
Tests if the extracted concept has a name.
|
void initDocExtraction()
SortedArray mergeConceptByName(ArrayList conceptList)
conceptList - a list of conceptsSortedArray mergeConceptByEntryID(ArrayList conceptList)
conceptList - a list of conceptsArrayList extractFromDoc(String doc)
doc - the content of the documentArrayList extractFromDoc(Document doc)
doc - a parsed documentArrayList extractFromSentence(Sentence sent)
sent - the sentence for extractionArrayList getConceptList()
boolean supportConceptName()
boolean supportConceptEntry()
void setSubConceptOption(boolean option)
boolean getSubConceptOption()
boolean getFilteringOption()
void setFilteringOption(boolean option)
option - the option of concept filteringvoid setConceptFilter(ConceptFilter cf)
cf - the concept filterConceptFilter getConceptFilter()
Lemmatiser getLemmatiser()
void setLemmatiser(Lemmatiser lemmatiser)
lemmatiser - the lemmatiservoid setDocumentParser(DocumentParser parser)
parser - document parserDocumentParser getDocumentParser()
void print(PrintWriter out)
out - the print writervoid print(PrintWriter out, ArrayList list)
out - the print writerlist - a list concepts for outputCopyright © 2018 JULIE Lab, Germany. All rights reserved.