
public class PattyEN extends AbstractRE
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Set<String>> |
paraphrases |
protected Map<String,Set<String>> |
paraphrasesIndex |
protected Map<String,String> |
ptbToUniPos |
dbpediaOntology, entities, input, relations, watchcdl, cfgManager, LOG, versions| Constructor and Description |
|---|
PattyEN()
Calls
PattyEN(String, String) with "data/patty/dbpedia-relation-paraphrases.txt" and
"data/patty/en-ptb.map". |
PattyEN(String paraphrasesFile,
String posTagMapFile)
Reads data from files.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<Relation> |
_extract(String text,
List<Entity> entities) |
protected List<String> |
checkPattern(List<edu.stanford.nlp.ling.CoreLabel> sentencePath)
Compares the patty pattern with the CoreLabels that come from Stanfords NLP Tool.
|
Map<String,Set<String>> |
getDBpediaRelationParaphrases() |
static void |
main(String[] a) |
checkDomainRange, extract, getResults, mapFoxTypesToDBpediaTypes, run, sentenceToEntities, setEntityIDs, setInputgetToolName, getToolVersion, getToolVersion, setCountDownLatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetToolName, getToolVersion, setCountDownLatchpublic PattyEN()
PattyEN(String, String) with "data/patty/dbpedia-relation-paraphrases.txt" and
"data/patty/en-ptb.map".public static void main(String[] a)
public Map<String,Set<String>> getDBpediaRelationParaphrases()
protected Set<Relation> _extract(String text, List<Entity> entities)
_extract in class AbstractREprotected List<String> checkPattern(List<edu.stanford.nlp.ling.CoreLabel> sentencePath)
sentencePath - Copyright © 2024. All rights reserved.