public class SpotlightAnnotator extends AbstractHttpBasedAnnotator implements OKETask1Annotator, EntityRecognizer, D2KBAnnotator, A2KBAnnotator, EntityTyper
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATOR_NAME
Deprecated.
|
grantercloseClient, CONNECTION_ABORT_INDICATING_EXCPETION_MSG, name| Constructor and Description |
|---|
SpotlightAnnotator() |
SpotlightAnnotator(String url) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeRequest(org.apache.http.client.methods.HttpUriRequest request) |
protected org.apache.http.client.methods.HttpPost |
createPostRequest(String url)
Creates a POST request and registers it with the
HttpManagement
instance. |
org.apache.http.impl.client.CloseableHttpClient |
getClient() |
List<org.aksw.gerbil.transfer.nif.MeaningSpan> |
performA2KBTask(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.Meaning> |
performC2KB(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.MeaningSpan> |
performD2KBTask(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.Span> |
performRecognition(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.TypedSpan> |
performRT2KBTask(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
performTask1(org.aksw.gerbil.transfer.nif.Document document) |
List<org.aksw.gerbil.transfer.nif.TypedSpan> |
performTyping(org.aksw.gerbil.transfer.nif.Document document) |
close, performClose, setClosePermitionGrantercreateGetRequest, createHeadRequest, getName, interrupt, isCloseClient, sendRequest, sendRequest, setClient, setCloseClient, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setClosePermitionGranter, setName@Deprecated public static final String ANNOTATOR_NAME
public SpotlightAnnotator()
public SpotlightAnnotator(String url)
public List<org.aksw.gerbil.transfer.nif.Meaning> performC2KB(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
performC2KB in interface C2KBAnnotatorGerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.TypedSpan> performTyping(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
performTyping in interface EntityTyperGerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.MeaningSpan> performA2KBTask(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
performA2KBTask in interface A2KBAnnotatorGerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.MeaningSpan> performD2KBTask(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
performD2KBTask in interface D2KBAnnotatorGerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.Span> performRecognition(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
performRecognition in interface EntityRecognizerGerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> performTask1(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
performTask1 in interface OKETask1AnnotatorGerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.TypedSpan> performRT2KBTask(org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
performRT2KBTask in interface RT2KBAnnotatorGerbilExceptionprotected org.apache.http.client.methods.HttpPost createPostRequest(String url)
AbstractHttpRequestEmitterHttpManagement
instance.createPostRequest in class AbstractHttpRequestEmitterurl - the URL to which the request will be sendprotected void closeRequest(org.apache.http.client.methods.HttpUriRequest request)
closeRequest in class AbstractHttpRequestEmitterpublic org.apache.http.impl.client.CloseableHttpClient getClient()
getClient in class AbstractHttpRequestEmitterCopyright © 2014–2017. All rights reserved.