@Deprecated public class BabelfyAnnotator extends Object implements it.unipi.di.acube.batframework.problems.Sa2WSystem
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=.
| Constructor and Description |
|---|
BabelfyAnnotator(it.unipi.di.acube.batframework.utils.WikipediaApiInterface wikiApi)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastAnnotationTime()
Deprecated.
|
String |
getName()
Deprecated.
|
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)
Deprecated.
|
HashSet<it.unipi.di.acube.batframework.data.Annotation> |
solveA2W(String text)
Deprecated.
|
HashSet<it.unipi.di.acube.batframework.data.Tag> |
solveC2W(String text)
Deprecated.
|
HashSet<it.unipi.di.acube.batframework.data.Annotation> |
solveD2W(String text,
HashSet<it.unipi.di.acube.batframework.data.Mention> mentions)
Deprecated.
|
protected HashSet<it.unipi.di.acube.batframework.data.ScoredAnnotation> |
solveGeneralSa2W(String text,
HashSet<it.unipi.di.acube.batframework.data.Mention> mentions)
Deprecated.
|
HashSet<it.unipi.di.acube.batframework.data.ScoredAnnotation> |
solveSa2W(String text)
Deprecated.
|
HashSet<it.unipi.di.acube.batframework.data.ScoredTag> |
solveSc2W(String text)
Deprecated.
|
protected List<String> |
splitText(String text)
Deprecated.
|
public static final String NAME
public BabelfyAnnotator(it.unipi.di.acube.batframework.utils.WikipediaApiInterface wikiApi)
public String getName()
getName in interface it.unipi.di.acube.batframework.problems.TopicSystempublic long getLastAnnotationTime()
getLastAnnotationTime in interface it.unipi.di.acube.batframework.problems.TopicSystempublic HashSet<it.unipi.di.acube.batframework.data.Tag> solveC2W(String text) throws it.unipi.di.acube.batframework.utils.AnnotationException
solveC2W in interface it.unipi.di.acube.batframework.problems.C2WSystemit.unipi.di.acube.batframework.utils.AnnotationExceptionpublic HashSet<it.unipi.di.acube.batframework.data.Annotation> solveA2W(String text) throws it.unipi.di.acube.batframework.utils.AnnotationException
solveA2W in interface it.unipi.di.acube.batframework.problems.A2WSystemit.unipi.di.acube.batframework.utils.AnnotationExceptionpublic HashSet<it.unipi.di.acube.batframework.data.ScoredTag> solveSc2W(String text) throws it.unipi.di.acube.batframework.utils.AnnotationException
solveSc2W in interface it.unipi.di.acube.batframework.problems.Sc2WSystemit.unipi.di.acube.batframework.utils.AnnotationExceptionpublic HashSet<it.unipi.di.acube.batframework.data.Annotation> solveD2W(String text, HashSet<it.unipi.di.acube.batframework.data.Mention> mentions) throws it.unipi.di.acube.batframework.utils.AnnotationException
solveD2W in interface it.unipi.di.acube.batframework.problems.D2WSystemit.unipi.di.acube.batframework.utils.AnnotationExceptionpublic HashSet<it.unipi.di.acube.batframework.data.ScoredAnnotation> solveSa2W(String text) throws it.unipi.di.acube.batframework.utils.AnnotationException
solveSa2W in interface it.unipi.di.acube.batframework.problems.Sa2WSystemit.unipi.di.acube.batframework.utils.AnnotationExceptionprotected HashSet<it.unipi.di.acube.batframework.data.ScoredAnnotation> solveGeneralSa2W(String text, HashSet<it.unipi.di.acube.batframework.data.Mention> mentions) throws it.unipi.di.acube.batframework.utils.AnnotationException
it.unipi.di.acube.batframework.utils.AnnotationExceptionprotected 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.