public class HAWKUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
private |
HAWKUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
replaceLabelsByIdentifiedURIs(String sentence,
List<Entity> list) |
static String |
replaceNamedEntitysWithURL(HAWKQuestion q)
Replaces Named Entities in question string with corresponding URL, stored
in
HAWKQuestion.getLanguageToNamedEntites() |
public static String replaceLabelsByIdentifiedURIs(String sentence, List<Entity> list)
Sentence - Sentence to transformlist - List of Entities to replace labels withpublic static String replaceNamedEntitysWithURL(HAWKQuestion q)
HAWKQuestion.getLanguageToNamedEntites()q - The HAWKQuestion to get data from.Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.