Class BabelfyUtil


  • public class BabelfyUtil
    extends Object
    Collection of utility methods to access Babelfy Disambiguation service.
    • Constructor Detail

      • BabelfyUtil

        public BabelfyUtil()
    • 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 type BabelfyToken.
        Parameters:
        apiKey -
        sentTokens -
        Returns: