Constructor and Description |
---|
Babelfy() |
Babelfy(BabelfyParameters parameters) |
Modifier and Type | Method and Description |
---|---|
java.util.List<SemanticAnnotation> |
babelfy(java.util.List<? extends BabelfyToken> taggedSentence,
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> taggedSentence,
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 sentence,
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 sentence,
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.
|
public Babelfy()
public Babelfy(BabelfyParameters parameters)
public java.util.List<SemanticAnnotation> babelfy(java.lang.String sentence, it.uniroma1.lcl.jlt.util.Language lang)
IBabelfy
public java.util.List<SemanticAnnotation> babelfy(java.util.List<? extends BabelfyToken> taggedSentence, it.uniroma1.lcl.jlt.util.Language lang)
IBabelfy
babelfy
in interface IBabelfy
taggedSentence
- 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)public java.util.List<SemanticAnnotation> babelfy(java.lang.String sentence, it.uniroma1.lcl.jlt.util.Language lang, BabelfyConstraints constraints)
IBabelfy
public java.util.List<SemanticAnnotation> babelfy(java.util.List<? extends BabelfyToken> taggedSentence, it.uniroma1.lcl.jlt.util.Language lang, BabelfyConstraints constraints)
IBabelfy
babelfy
in interface IBabelfy
taggedSentence
- 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