public class SpotlightClient extends Object
| Constructor and Description |
|---|
SpotlightClient(SpotlightAnnotator annotator) |
SpotlightClient(String serviceURL,
SpotlightAnnotator annotator) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addSpan(org.json.simple.JSONObject resource,
List<org.aksw.gerbil.transfer.nif.Span> markings) |
List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
annotate(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
annotateSavely(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
disambiguate(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
disambiguateSavely(org.aksw.gerbil.transfer.nif.Document document) |
protected List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
parseAnnotationResponse(String response) |
protected List<org.aksw.gerbil.transfer.nif.Span> |
parseSpottingResponse(String response) |
protected String |
request(String inputText,
String requestUrl) |
List<org.aksw.gerbil.transfer.nif.Span> |
spot(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.Span> |
spotSavely(org.aksw.gerbil.transfer.nif.Document document) |
public SpotlightClient(SpotlightAnnotator annotator)
public SpotlightClient(String serviceURL, SpotlightAnnotator annotator)
protected String request(String inputText, String requestUrl) throws GerbilException
GerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> annotateSavely(org.aksw.gerbil.transfer.nif.Document document)
public List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> annotate(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> parseAnnotationResponse(String response)
public List<org.aksw.gerbil.transfer.nif.Span> spotSavely(org.aksw.gerbil.transfer.nif.Document document)
public List<org.aksw.gerbil.transfer.nif.Span> spot(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected List<org.aksw.gerbil.transfer.nif.Span> parseSpottingResponse(String response)
protected static void addSpan(org.json.simple.JSONObject resource,
List<org.aksw.gerbil.transfer.nif.Span> markings)
public List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> disambiguate(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> disambiguateSavely(org.aksw.gerbil.transfer.nif.Document document)
Copyright © 2014–2017. All rights reserved.