babelnetpy/babelnet.py
def make_url(self, **params):
        """
        this makes the target url that corresponds to the function
        
        params: lemma, id, lang, targetLang, pos, source
        lemma; word
        id: babelnet synsetids
        lang: language
        targetLang: target language that is often the same as lang; howerver rarely is not same.
        pos: part of speech
        source: wikipedia and so on
        lemma_type: full, simple
        force_compare: A == a. a big character is the same as a small character.
        
        return: target url
        """        
        synset_url = self.API_PATH
        synset_url += params["function"]
        if params.get("lemma"):
            synset_url += "lemma={0}".format(params["lemma"])
        if params.get("id"):
            synset_url += "id={0}".format(params["id"])
        if params.get("lang"):
            synset_url += "&searchLang={0}".format(params["lang"])
        if params.get("targetLang") and params["targetLang"]!=None:
            if type(params["targetLang"]) == list:
                assert len(params["targetLang"]) == 2, "targetLang is not more than 3"
                synset_url += "&targetLang={0}".format(params["targetLang"][0])
                synset_url += "&targetLang={0}".format(params["targetLang"][1])
            else:
                synset_url += "&targetLang={0}".format(params["targetLang"])
        if params.get("pos") and params["pos"]!=None:
            if type(params["pos"]) == list:
                for pos in params["pos"]:
                    synset_url += "&pos={0}".format(pos)
            else:
                synset_url += "&pos={0}".format(params["pos"])
        if params.get("source") and params["source"]!=None:
            if type(params["source"]) == list:
                for source in params["source"]:
                    synset_url += "&source={0}".format(source)
            else:
                synset_url += "&source={0}".format(params["source"])

        synset_url += "&key={0}".format(self.key)
        return synset_url

        this makes the target url that corresponds to the function
        
        params: lemma, id, lang, targetLang, pos, source
        lemma; word
        id: babelnet synsetids
        lang: language
        targetLang: target language that is often the same as lang; howerver rarely is not same.
        pos: part of speech
        source: wikipedia and so on
        lemma_type: full, simple
        force_compare: A == a. a big character is the same as a small character.
        
        return: target url
        
this makes the target url that corresponds to the function
params: lemma, id, lang, targetLang, pos, source
lemma; word
id: babelnet synsetids
lang: language
targetLang: target language that is often the same as lang; howerver rarely is not same.
pos: part of speech
source: wikipedia and so on
lemma_type: full, simple
force_compare: A == a. a big character is the same as a small character.

target url
this makes the target url that corresponds to the function params : lemma id lang targetLang pos source lemma ; word id : babelnet synsetids lang : language targetLang : target language that is often the same as lang ; howerver rarely is not same . pos : part of speech source : wikipedia and so on lemma_type : full simple force_compare : A == a . a big character is the same as a small character . target url
def make_url(self, **params):
        synset_url = self.API_PATH
        synset_url += params["function"]
        if params.get("lemma"):
            synset_url += "lemma={0}".format(params["lemma"])
        if params.get("id"):
            synset_url += "id={0}".format(params["id"])
        if params.get("lang"):
            synset_url += "&searchLang={0}".format(params["lang"])
        if params.get("targetLang") and params["targetLang"]!=None:
            if type(params["targetLang"]) == list:
                assert len(params["targetLang"]) == 2, "targetLang is not more than 3"
                synset_url += "&targetLang={0}".format(params["targetLang"][0])
                synset_url += "&targetLang={0}".format(params["targetLang"][1])
            else:
                synset_url += "&targetLang={0}".format(params["targetLang"])
        if params.get("pos") and params["pos"]!=None:
            if type(params["pos"]) == list:
                for pos in params["pos"]:
                    synset_url += "&pos={0}".format(pos)
            else:
                synset_url += "&pos={0}".format(params["pos"])
        if params.get("source") and params["source"]!=None:
            if type(params["source"]) == list:
                for source in params["source"]:
                    synset_url += "&source={0}".format(source)
            else:
                synset_url += "&source={0}".format(params["source"])
        synset_url += "&key={0}".format(self.key)
        return synset_url
def make_url ( self , ** params ) : synset_url = self . API_PATH synset_url += params [ "function" ] if params . get ( "lemma" ) : synset_url += "lemma={0}" . format ( params [ "lemma" ] ) if params . get ( "id" ) : synset_url += "id={0}" . format ( params [ "id" ] ) if params . get ( "lang" ) : synset_url += "&searchLang={0}" . format ( params [ "lang" ] ) if params . get ( "targetLang" ) and params [ "targetLang" ] != None : if type ( params [ "targetLang" ] ) == list : assert len ( params [ "targetLang" ] ) == 2 , "targetLang is not more than 3" synset_url += "&targetLang={0}" . format ( params [ "targetLang" ] [ 0 ] ) synset_url += "&targetLang={0}" . format ( params [ "targetLang" ] [ 1 ] ) else : synset_url += "&targetLang={0}" . format ( params [ "targetLang" ] ) if params . get ( "pos" ) and params [ "pos" ] != None : if type ( params [ "pos" ] ) == list : for pos in params [ "pos" ] : synset_url += "&pos={0}" . format ( pos ) else : synset_url += "&pos={0}" . format ( params [ "pos" ] ) if params . get ( "source" ) and params [ "source" ] != None : if type ( params [ "source" ] ) == list : for source in params [ "source" ] : synset_url += "&source={0}" . format ( source ) else : synset_url += "&source={0}" . format ( params [ "source" ] ) synset_url += "&key={0}" . format ( self . key ) return synset_url
this makes the target url that corresponds to the function
params: lemma, id, lang, targetLang, pos, source
lemma; word
id: babelnet synsetids
lang: language
targetLang: target language that is often the same as lang; howerver rarely is not same.
this makes the target url that corresponds to the function params : lemma id lang targetLang pos source lemma ; word id : babelnet synsetids lang : language targetLang : target language that is often the same as lang ; howerver rarely is not same .
"""
        this makes the target url that corresponds to the function
        
        params: lemma, id, lang, targetLang, pos, source
        lemma; word
        id: babelnet synsetids
        lang: language
        targetLang: target language that is often the same as lang; howerver rarely is not same.
        pos: part of speech
        source: wikipedia and so on
        lemma_type: full, simple
        force_compare: A == a. a big character is the same as a small character.
        
        return: target url
        """
self