public class DirectLinking extends AbstractLinking
Modifier and Type | Field and Description |
---|---|
protected static String |
dbpedia_aksw_solr |
protected static String |
dbpedia_aksw_solr_postUrl |
static String |
dbpedia_resource |
static String |
dbpedia_sparql |
static org.apache.log4j.Logger |
logger |
static double |
SIM_THRESHOLD |
entities, input
cdl, cfgManager, LOG, versions
Constructor and Description |
---|
DirectLinking() |
Modifier and Type | Method and Description |
---|---|
protected HashMap<String,Double> |
getUri(String label,
String type,
int numberOfEntries) |
protected String |
lookup(String label,
String type,
String inputText)
Implements the lookup
|
protected ArrayList<String> |
possibleLabels(String label)
Generates different possible looks for an URI from a label.
|
protected HashMap<String,Double> |
queryIndex(String label,
String type,
int numberOfEntries)
Queries a label index
|
void |
setUris(Set<Entity> entities,
String input) |
getResults, run, setInput
getToolName, getToolVersion, getToolVersion, setCountDownLatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCountDownLatch
public static double SIM_THRESHOLD
public static String dbpedia_resource
public static String dbpedia_sparql
protected static String dbpedia_aksw_solr
protected static String dbpedia_aksw_solr_postUrl
public static org.apache.log4j.Logger logger
protected String lookup(String label, String type, String inputText)
label
- Label of the entitytype
- Entity typeinputText
- Context informationprotected HashMap<String,Double> queryIndex(String label, String type, int numberOfEntries)
label
- NE labeltype
- Classification (PER, LOC, ORG, MICS)numberOfEntries
- Copyright © 2024. All rights reserved.