public class Annotater extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) Set<String> |
blacklist |
(package private) IndexDBO_classes |
classesIndex |
(package private) DBOIndex |
dboIndex |
(package private) org.slf4j.Logger |
log |
(package private) IndexDBO_properties |
propertiesIndex |
private 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
IndexDBO_classes classesIndex
IndexDBO_properties propertiesIndex
DBOIndex dboIndex
private SPARQL sparql
public Annotater(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.