コード例 #1
0
 def __init__(self, search_query):
     CompoundPhraseSimMeasurer.__init__(self, search_query)
     self.word_measurer = NaiveWordSimMeasurer()
コード例 #2
0
 def __init__(self, brown_ic, search_query):
     CompoundPhraseSimMeasurer.__init__(self, search_query)
     self.brown_ic = brown_ic
     self.search_POS_map = self.load_POS_map(search_query)
     self.word_measurer = SemanticWordSimMeasurer(brown_ic, self.search_words)