public class Annotater extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) Set<String> |
blacklist |
(package private) org.aksw.qa.annotation.index.IndexDBO_classes |
classesIndex |
(package private) DBOIndex |
dboIndex |
(package private) org.slf4j.Logger |
log |
(package private) org.aksw.qa.annotation.index.IndexDBO_properties |
propertiesIndex |
private org.aksw.qa.commons.sparql.SPARQL |
sparql |
| Constructor and Description |
|---|
Annotater(org.aksw.qa.commons.sparql.SPARQL sparql) |
| Modifier and Type | Method and Description |
|---|---|
private void |
annotateNouns(MutableTree tree)
"Nouns are often referring to classes, while sometimes to properties,
thus two lexical entries are built { one containing a semantic
representation with a class slot and one containing a semantic
representation with a property slot." citation by Unger et al.
|
private void |
annotateProjectionLeftTree(MutableTree tree)
this method annotates the left-most child of the root and uses the inline
commented heuristics to annotate the tree
|
void |
annotateTree(HAWKQuestion q) |
private void |
annotateVerbs(MutableTree tree)
"Verbs most often refer to properties, thus a lexical entry with a
property slot is built.
|
private List<String> |
rank(List<String> search) |
org.slf4j.Logger log
org.aksw.qa.annotation.index.IndexDBO_classes classesIndex
org.aksw.qa.annotation.index.IndexDBO_properties propertiesIndex
DBOIndex dboIndex
private org.aksw.qa.commons.sparql.SPARQL sparql
public void annotateTree(HAWKQuestion q)
private void annotateNouns(MutableTree tree)
private void annotateVerbs(MutableTree tree)
private void annotateProjectionLeftTree(MutableTree tree)
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.