Exemplo n.º 1
0
class Concepts:
    def __init__(self, options):
        self.options = options
        self.divsi = Divsi()
        self.conceptNet = ConceptNet()
    
    def run(self, universal_word):
        out = []
        
        similarity = self.divsi.concept_similarity(universal_word)
        if similarity:
            out.append(similarity)
        

        concept = self.conceptNet.Connectors(universal_word)
        out.append(concept)

        #concept = self.conceptNet.Surface(universal_word)
        #out.append(concept)

        return out
Exemplo n.º 2
0
 def __init__(self, options):
     self.options = options
     self.divsi = Divsi()
     self.conceptNet = ConceptNet()