public class BabelfyAnnotator extends AbstractAnnotator implements A2KBAnnotator
Andrea Moro: "I recommend to use the maximum amount of available
characters (3500) at each request (i.e., try to put a document all together
or split it in chunks of 3500 characters) both for scalability and
performance reasons."
This means, that we have to split up documents longer than 3500 characters.
Unfortunately, BabelFy seems to measure the length on the escaped text which
means that every text could be three times longer than the unescaped text.
Thus, we have to set BABELFY_MAX_TEXT_LENGTH=
.
granter, name| Constructor and Description |
|---|
BabelfyAnnotator() |
BabelfyAnnotator(String configFile) |
BabelfyAnnotator(String key,
String configFile) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected org.aksw.gerbil.transfer.nif.Document |
sendRequest(org.aksw.gerbil.transfer.nif.Document document,
boolean useSpans) |
protected List<it.uniroma1.lcl.babelfy.commons.annotation.SemanticAnnotation> |
sendRequest(it.uniroma1.lcl.babelfy.commons.IBabelfy bfy,
String chunk,
it.uniroma1.lcl.babelfy.commons.BabelfyConstraints constraints) |
protected List<String> |
splitText(String text) |
close, getName, performClose, setClosePermitionGranter, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setClosePermitionGranter, setNamepublic BabelfyAnnotator()
throws GerbilException
GerbilExceptionpublic BabelfyAnnotator(String configFile) throws GerbilException
GerbilExceptionpublic 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.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 EntityRecognizerGerbilExceptionprotected org.aksw.gerbil.transfer.nif.Document sendRequest(org.aksw.gerbil.transfer.nif.Document document,
boolean useSpans)
throws GerbilException
GerbilExceptionprotected List<it.uniroma1.lcl.babelfy.commons.annotation.SemanticAnnotation> sendRequest(it.uniroma1.lcl.babelfy.commons.IBabelfy bfy, String chunk, it.uniroma1.lcl.babelfy.commons.BabelfyConstraints constraints)
Copyright © 2014–2017. All rights reserved.