public interface TripleExtractor
Interface of triple extractors
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
boolean |
extractFromDoc(Document doc)
Extracts triples from a parsed document.
|
boolean |
extractFromDoc(String doc)
Extracts triples from a raw document.
|
ArrayList |
extractFromSentence(Sentence sent)
Extracts triples from a sentence.
|
boolean |
getClauseIdentifyOption()
Gets the option of extracting triples within a clause window.
|
ConceptExtractor |
getConceptExtractor()
Gets the concept extractor used for triple extraction
|
ConceptFilter |
getConceptFilter()
Gets the concept filter used for this extractor.
|
ArrayList |
getConceptList()
Gets concept list
|
boolean |
getCoordinatingCheckOption() |
boolean |
getCoReferenceOption() |
boolean |
getFilteringOption()
Tests if the extractor applies concept filtering.
|
boolean |
getRelationCheckOption()
Gets the option of checking the existance of the relationship between two semantic types.
|
boolean |
getSemanticCheckOption()
Gets the option of checking the semantic type of the relationship
|
ArrayList |
getTripleList()
Gets triple list
|
void |
initDocExtraction()
It is required to call this method before calling the extractFromDoc method.
|
SortedArray |
mergeTriples(SortedArray mergedConceptList,
ArrayList tripleList)
Merge duplicated triples.
|
void |
print(PrintWriter out)
Prints out extracted concepts and triples to the specified print writer.
|
void |
print(PrintWriter out,
ArrayList conceptList,
ArrayList tripleList)
Prints out the specified concepts and triples to the print writer.
|
void |
setClauseIdentifyOption(boolean option)
Sets the option of extracting triples within a clause window.
|
void |
setConceptFilter(ConceptFilter cf)
Sets the concept filter for the concept extatractor
|
void |
setCoordinatingCheckOption(boolean option) |
void |
setCoReferenceOption(boolean option) |
void |
setFilteringOption(boolean option)
Sets the option of concept filtering
|
void |
setRelationCheckOption(boolean option)
Sets the option of checking the existance of the relationship between two semantic types.
|
void |
setSemanticCheckOption(boolean option)
Sets the option of checking the semantic type of the relationship
|
void initDocExtraction()
boolean extractFromDoc(String doc)
doc - the raw document for extractionboolean extractFromDoc(Document doc)
doc - the parsed document for extractionArrayList extractFromSentence(Sentence sent)
sent - the sentence for extractionArrayList getConceptList()
ArrayList getTripleList()
ConceptExtractor getConceptExtractor()
SortedArray mergeTriples(SortedArray mergedConceptList, ArrayList tripleList)
mergedConceptList - a merged and sorted concept listtripleList - a list of triples for mergingboolean getFilteringOption()
void setFilteringOption(boolean option)
option - the option of concept filteringvoid setConceptFilter(ConceptFilter cf)
cf - the concept filterConceptFilter getConceptFilter()
void setCoordinatingCheckOption(boolean option)
boolean getCoordinatingCheckOption()
void setCoReferenceOption(boolean option)
boolean getCoReferenceOption()
boolean getSemanticCheckOption()
void setSemanticCheckOption(boolean option)
option - the option of checking the semantic type of the relationshipboolean getRelationCheckOption()
void setRelationCheckOption(boolean option)
option - the option of checking the existance of the relationship between two semantic types.boolean getClauseIdentifyOption()
void setClauseIdentifyOption(boolean option)
option - the option of extracting triples within a clause window.void print(PrintWriter out)
out - the print writervoid print(PrintWriter out, ArrayList conceptList, ArrayList tripleList)
out - the print writerconceptList - the concept list for printtripleList - the triple list for printCopyright © 2018 JULIE Lab, Germany. All rights reserved.