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, watch
cdl, 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, setInput
getToolName, getToolVersion, getToolVersion, setCountDownLatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolName, getToolVersion, setCountDownLatch
public 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 AbstractRE
protected List<String> checkPattern(List<edu.stanford.nlp.ling.CoreLabel> sentencePath)
sentencePath
- Copyright © 2024. All rights reserved.