public interface IBabelfy
Modifier and Type | Method and Description |
---|---|
java.util.List<SemanticAnnotation> |
babelfy(java.util.List<? extends BabelfyToken> tokenizedText,
it.uniroma1.lcl.jlt.util.Language lang)
Given a tokenized text and a language, returns a list of semantic annotations.
|
java.util.List<SemanticAnnotation> |
babelfy(java.util.List<? extends BabelfyToken> tokenizedText,
it.uniroma1.lcl.jlt.util.Language lang,
BabelfyConstraints constraints)
Given a tokenized text and a language, returns a list of semantic annotations on the given
constraints.
|
java.util.List<SemanticAnnotation> |
babelfy(java.lang.String text,
it.uniroma1.lcl.jlt.util.Language lang)
Given a text and a language, returns a list of semantic annotations.
|
java.util.List<SemanticAnnotation> |
babelfy(java.lang.String text,
it.uniroma1.lcl.jlt.util.Language lang,
BabelfyConstraints constraints)
Given a text and a language, returns a list of semantic annotations on the given constraints.
|
java.util.List<SemanticAnnotation> babelfy(java.lang.String text, it.uniroma1.lcl.jlt.util.Language lang)
text
- input textlang
- text language (with null all languages will be considered)java.util.List<SemanticAnnotation> babelfy(java.lang.String text, it.uniroma1.lcl.jlt.util.Language lang, BabelfyConstraints constraints)
text
- input textlang
- text languageconstraints
- disambiguation constraintsjava.util.List<SemanticAnnotation> babelfy(java.util.List<? extends BabelfyToken> tokenizedText, it.uniroma1.lcl.jlt.util.Language lang)
tokenizedText
- list of words in the form of BabelfyToken
(you can specify all optional
fields (i.e., lemma, PoS tag, language) of the BabelfyTokens or partially or even
none of them, Babelfy will integrate all the missing fields for you).lang
- text language (this will be considered the main language of the text if no
explicit information is given on the BabelfyToken
s. Moreover, this
parameter can be set to null to enable language-agnostic handling of the input
text)java.util.List<SemanticAnnotation> babelfy(java.util.List<? extends BabelfyToken> tokenizedText, it.uniroma1.lcl.jlt.util.Language lang, BabelfyConstraints constraints)
tokenizedText
- list of words in the form of BabelfyToken
(you can specify all optional
fields (i.e., lemma, PoS tag, language) of the BabelfyTokens or partially or even
none of them, Babelfy will integrate all the missing fields for you).lang
- text language (this will be considered the main language of the text if no
explicit information is given on the BabelfyToken
s. Moreover, this
parameter can be set to null to enable language-agnostic handling of the input
text)constraints
- disambiguation constraints