| Modifier and Type | Method and Description |
|---|---|
String |
Treeprinter.printTreeClearnlp(HAWKQuestion q) |
String |
Treeprinter.printTreeStanford(HAWKQuestion q) |
String |
Treeprinter.printTreeStanford(HAWKQuestion q,
String s) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<org.apache.jena.rdf.model.RDFNode>> |
Baseline.calculateSPARQLRepresentation(HAWKQuestion q) |
int |
Cardinality.cardinality(HAWKQuestion q) |
List<Answer> |
PipelineStanford.getAnswersToQuestion(HAWKQuestion q) |
abstract List<Answer> |
AbstractPipeline.getAnswersToQuestion(HAWKQuestion q) |
MutableTree |
StanfordNLPConnector.parseTree(HAWKQuestion q,
UnitController numberToDigit)
Runs Stanford Pipeline on given question.
|
static String |
HAWKUtils.replaceNamedEntitysWithURL(HAWKQuestion q)
Replaces Named Entities in question string with corresponding URL, stored
in
getLanguageToNamedEntites() |
edu.stanford.nlp.pipeline.Annotation |
StanfordNLPConnector.runAnnotation(HAWKQuestion q)
Runs StanfordNLP on given HawkQuestion`s question in
English and returns processed Annotation
|
private MutableTree |
StanfordNLPConnector.semanticGraphToMutableTree(edu.stanford.nlp.semgraph.SemanticGraph graph,
HAWKQuestion q)
Converts a SemanticGraph from StanfordNLP to a Mutable tree recursively
with DFS.
|
| Modifier and Type | Method and Description |
|---|---|
static HAWKQuestion |
HAWKQuestionFactory.createInstance(IQuestion q) |
| Modifier and Type | Method and Description |
|---|---|
static List<HAWKQuestion> |
HAWKQuestionFactory.createInstances(List<IQuestion> qList) |
| Modifier and Type | Method and Description |
|---|---|
private static List<HAWKQuestion> |
IndexComparer.getQALDQuestions() |
| Modifier and Type | Method and Description |
|---|---|
private static List<HashSet<String>> |
IndexComparer.getSets(HAWKQuestion q) |
private static HashSet<String> |
IndexComparer.getSparql(HAWKQuestion q) |
static List<EvalObj> |
Measures.measure(List<Answer> rankedAnswer,
HAWKQuestion q,
int maxK) |
| Modifier and Type | Method and Description |
|---|---|
private void |
MutableTreePruner.applyInterrogativeRules(HAWKQuestion q) |
MutableTree |
MutableTreePruner.prune(HAWKQuestion q) |
private void |
MutableTreePruner.removalBasedOnDependencyLabels(HAWKQuestion q) |
private void |
MutableTreePruner.removalRules(HAWKQuestion q)
removes: * punctuations (.) * wh- words(WDT|WP$) * PRP($) * DT * BY and
IN (possessive) pronouns * PDT predeterminer all both
Who,Where WP|WRB stays in
|
static void |
SentenceToSequence.runPhraseCombination(HAWKQuestion q,
List<String> tokens,
Map<String,String> label2pos) |
static void |
SentenceToSequence.transformTree(List<String> subsequence,
HAWKQuestion q,
int subsequenceStartOffset) |
| Modifier and Type | Method and Description |
|---|---|
HAWKQuestion |
NounCombinationChain.runChainReturnNew(HAWKQuestion q)
Finds compound nouns and creates a new HAWKQuestion with processed tree,
without affecting given HAWKQuestion in any way.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StanfordCombinedNN.combineNouns(HAWKQuestion q) |
protected void |
SentenceToSequenceStanford.combineNouns(HAWKQuestion q) |
protected abstract void |
ANounCombiner.combineNouns(HAWKQuestion q)
This sets compound nouns as Entity in question.
|
private void |
StanfordCombinedNN.convert(MutableTreeNode parentNode,
HAWKQuestion q) |
protected static void |
ANounCombiner.processTree(HAWKQuestion q)
Compound nouns are spread over multiple Nodes in MutableTree.
|
void |
NounCombinationChain.runChain(HAWKQuestion q)
Runs noun combination chain on given HAWKQuestion.
|
HAWKQuestion |
NounCombinationChain.runChainReturnNew(HAWKQuestion q)
Finds compound nouns and creates a new HAWKQuestion with processed tree,
without affecting given HAWKQuestion in any way.
|
protected static void |
ANounCombiner.setEntity(List<String> subsequence,
HAWKQuestion q,
int subsequenceStartOffset) |
| Modifier and Type | Method and Description |
|---|---|
Set<SPARQLQuery> |
UnderDefinedQueries.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
UnboundTriple.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
TypeMismatch.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
TextFilterOverVariables.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
SPARQLQueryPruner.prune(Set<SPARQLQuery> queries,
HAWKQuestion q) |
Set<SPARQLQuery> |
PredicatesPerVariableEdge.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
NumberOfTypesPerVariable.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
ISPARQLQueryPruner.prune(Set<SPARQLQuery> queries,
HAWKQuestion q) |
Set<SPARQLQuery> |
HasBoundVariables.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
CyclicTriple.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
ContainsTooManyNodesAsTextLookUp.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
ContainsProjVariable.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
Set<SPARQLQuery> |
BGPisConnected.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
| Modifier and Type | Method and Description |
|---|---|
Set<SPARQLQuery> |
DisjointnessBasedQueryFilter.prune(Set<SPARQLQuery> queryStrings,
HAWKQuestion q) |
| Modifier and Type | Method and Description |
|---|---|
void |
Annotater.annotateTree(HAWKQuestion q) |
List<Answer> |
SPARQLQueryBuilder.build(HAWKQuestion q) |
private int |
SPARQLQueryBuilder.cardinality(HAWKQuestion q,
Set<SPARQLQuery> queryStrings) |
Set<SPARQLQuery> |
RecursiveSparqlQueryBuilder.start(SPARQLQueryBuilder sparqlQueryBuilder,
HAWKQuestion q) |
| Modifier and Type | Method and Description |
|---|---|
List<Answer> |
TierRanker.rank(List<Answer> answers,
HAWKQuestion q) |
List<Answer> |
Ranking.rank(List<Answer> answers,
HAWKQuestion q) |
List<Answer> |
OptimalRanker.rank(List<Answer> answers,
HAWKQuestion q) |
List<Answer> |
FeatureBasedRanker.rank(List<Answer> answers,
HAWKQuestion q) |
List<Answer> |
BucketRanker.rank(List<Answer> answers,
HAWKQuestion q) |
| Modifier and Type | Method and Description |
|---|---|
static org.json.simple.JSONObject |
JSONStatusBuilder.status(HAWKQuestion question) |
| Modifier and Type | Field and Description |
|---|---|
private HashMap<UUID,Future<HAWKQuestion>> |
WebController.runningProcesses |
private HashMap<UUID,HAWKQuestion> |
WebController.UuidQuestionMap |
| Modifier and Type | Method and Description |
|---|---|
Future<HAWKQuestion> |
AsyncSearchExecutor.search(HAWKQuestion q) |
| Modifier and Type | Method and Description |
|---|---|
Future<HAWKQuestion> |
AsyncSearchExecutor.search(HAWKQuestion q) |
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.