Class BabelfyUtil
- java.lang.Object
-
- edu.upf.taln.dri.common.connector.babelnet.BabelfyUtil
-
public class BabelfyUtil extends Object
Collection of utility methods to access Babelfy Disambiguation service.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DRIconfigPathPropertyName
-
Constructor Summary
Constructors Constructor Description BabelfyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<it.uniroma1.lcl.babelfy.commons.annotation.SemanticAnnotation>
disambiguateTokenList(String apiKey, List<it.uniroma1.lcl.babelfy.commons.BabelfyToken> sentTokens, it.uniroma1.lcl.jlt.util.Language lang)
Disambiguate a list of tokens belonging to the same or different sentences.static void
main(String[] args)
-
-
-
Field Detail
-
DRIconfigPathPropertyName
public static final String DRIconfigPathPropertyName
- See Also:
- Constant Field Values
-
-
Method Detail
-
disambiguateTokenList
public static List<it.uniroma1.lcl.babelfy.commons.annotation.SemanticAnnotation> disambiguateTokenList(String apiKey, List<it.uniroma1.lcl.babelfy.commons.BabelfyToken> sentTokens, it.uniroma1.lcl.jlt.util.Language lang)
Disambiguate a list of tokens belonging to the same or different sentences. Each sentence is constituted by a list of tokens of typeBabelfyToken
.- Parameters:
apiKey
-sentTokens
-- Returns:
-
main
public static void main(String[] args) throws InternalProcessingException
- Throws:
InternalProcessingException
-
-