public abstract class AbstractTripleExtractor extends Object implements TripleExtractor
Abstract class for triple extraction
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected ConceptFilter |
cf |
protected ClauseFinder |
clauseFinder |
protected boolean |
clauseIdentify_enabled |
protected ConceptExtractor |
conceptExtractor |
protected boolean |
conceptFilter_enabled |
protected ArrayList |
conceptList |
protected boolean |
coordinatingCheck_enabled |
protected CoordinatingChecker |
coordinatingChecker |
protected CoReference |
coReference |
protected boolean |
coReference_enabled |
protected boolean |
relationCheck_enabled |
protected boolean |
semanticCheck_enabled |
protected ArrayList |
tripleList |
| Constructor and Description |
|---|
AbstractTripleExtractor(ConceptExtractor te) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkCoordinateTerms(Concept first,
Concept second) |
boolean |
extractFromDoc(Document doc)
Extracts triples from a parsed document.
|
boolean |
extractFromDoc(String doc)
Extracts triples from a raw document.
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextractFromSentenceprotected ConceptExtractor conceptExtractor
protected ConceptFilter cf
protected CoReference coReference
protected ClauseFinder clauseFinder
protected CoordinatingChecker coordinatingChecker
protected ArrayList conceptList
protected ArrayList tripleList
protected boolean coReference_enabled
protected boolean semanticCheck_enabled
protected boolean relationCheck_enabled
protected boolean clauseIdentify_enabled
protected boolean coordinatingCheck_enabled
protected boolean conceptFilter_enabled
public AbstractTripleExtractor(ConceptExtractor te)
public void initDocExtraction()
TripleExtractorinitDocExtraction in interface TripleExtractorpublic ArrayList getConceptList()
TripleExtractorgetConceptList in interface TripleExtractorpublic ArrayList getTripleList()
TripleExtractorgetTripleList in interface TripleExtractorpublic ConceptExtractor getConceptExtractor()
TripleExtractorgetConceptExtractor in interface TripleExtractorpublic boolean getFilteringOption()
TripleExtractorgetFilteringOption in interface TripleExtractorpublic void setFilteringOption(boolean option)
TripleExtractorsetFilteringOption in interface TripleExtractoroption - the option of concept filteringpublic void setConceptFilter(ConceptFilter cf)
TripleExtractorsetConceptFilter in interface TripleExtractorcf - the concept filterpublic ConceptFilter getConceptFilter()
TripleExtractorgetConceptFilter in interface TripleExtractorpublic void setCoordinatingCheckOption(boolean option)
setCoordinatingCheckOption in interface TripleExtractorpublic boolean getCoordinatingCheckOption()
getCoordinatingCheckOption in interface TripleExtractorpublic void setCoReferenceOption(boolean option)
setCoReferenceOption in interface TripleExtractorpublic boolean getCoReferenceOption()
getCoReferenceOption in interface TripleExtractorpublic boolean getSemanticCheckOption()
TripleExtractorgetSemanticCheckOption in interface TripleExtractorpublic void setSemanticCheckOption(boolean option)
TripleExtractorsetSemanticCheckOption in interface TripleExtractoroption - the option of checking the semantic type of the relationshippublic boolean getRelationCheckOption()
TripleExtractorgetRelationCheckOption in interface TripleExtractorpublic void setRelationCheckOption(boolean option)
TripleExtractorsetRelationCheckOption in interface TripleExtractoroption - the option of checking the existance of the relationship between two semantic types.public boolean getClauseIdentifyOption()
TripleExtractorgetClauseIdentifyOption in interface TripleExtractorpublic void setClauseIdentifyOption(boolean option)
TripleExtractorsetClauseIdentifyOption in interface TripleExtractoroption - the option of extracting triples within a clause window.public void print(PrintWriter out)
TripleExtractorprint in interface TripleExtractorout - the print writerpublic void print(PrintWriter out, ArrayList conceptList, ArrayList tripleList)
TripleExtractorprint in interface TripleExtractorout - the print writerconceptList - the concept list for printtripleList - the triple list for printpublic boolean extractFromDoc(String doc)
TripleExtractorextractFromDoc in interface TripleExtractordoc - the raw document for extractionpublic boolean extractFromDoc(Document doc)
TripleExtractorextractFromDoc in interface TripleExtractordoc - the parsed document for extractionpublic SortedArray mergeTriples(SortedArray mergedConceptList, ArrayList tripleList)
TripleExtractormergeTriples in interface TripleExtractormergedConceptList - a merged and sorted concept listtripleList - a list of triples for mergingCopyright © 2018 JULIE Lab, Germany. All rights reserved.