
| Modifier and Type | Field and Description |
|---|---|
protected org.aksw.simba.knowledgeextraction.commons.dbpedia.IDBpediaOntology |
dbpediaOntology |
protected Set<Entity> |
entities |
protected String |
input |
protected Set<Relation> |
relations |
protected org.aksw.simba.knowledgeextraction.commons.time.SimpleStopwatch |
watch |
cdl, cfgManager, LOG, versions| Constructor and Description |
|---|
AbstractRE() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Set<Relation> |
_extract(String text,
List<Entity> entities) |
protected boolean |
checkDomainRange(String s,
String p,
String o)
Checks domain and range of the given predicate.
|
Set<Relation> |
extract()
Extracts relations from the given text.
|
Set<Relation> |
getResults()
Returns results.
|
protected String |
mapFoxTypesToDBpediaTypes(String foxType) |
void |
run() |
protected Map<Integer,List<Entity>> |
sentenceToEntities(Map<Integer,String> sentences,
List<Entity> entities)
Allocates the entities to sentences.
|
protected Map<Integer,Entity> |
setEntityIDs(List<Entity> entities)
Adds an id to each entity.
|
void |
setInput(String input,
Set<Entity> entities)
Sets the input.
|
getToolName, getToolVersion, getToolVersion, setCountDownLatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetToolName, getToolVersion, setCountDownLatchprotected final org.aksw.simba.knowledgeextraction.commons.dbpedia.IDBpediaOntology dbpediaOntology
protected final org.aksw.simba.knowledgeextraction.commons.time.SimpleStopwatch watch
protected String input
public Set<Relation> extract()
IREpublic void setInput(String input, Set<Entity> entities)
IREpublic Set<Relation> getResults()
IREgetResults in interface IREprotected Map<Integer,List<Entity>> sentenceToEntities(Map<Integer,String> sentences, List<Entity> entities)
sentences - an index to sentencethe - entities in all sentencesprotected Map<Integer,Entity> setEntityIDs(List<Entity> entities)
entities - protected boolean checkDomainRange(String s, String p, String o)
s - domain e.g. http://dbpedia.org/ontology/Personp - predicate http://dbpedia.org/ontology/spouseo - range http://dbpedia.org/ontology/PersonCopyright © 2024. All rights reserved.