コード例 #1
0
ファイル: thesaurus.py プロジェクト: telamonian/TotT
 def __init__(self, mobyPath, **kwargs):
     Trick.__init__(self, **kwargs)
     with open(str(mobyPath)) as f:
         self.container = OrderedDict([(wordList[0], set(wordList[1:])) for wordList in [line.strip().split(',') for line in f]])