############
###8.3.3汉英法律语义检索词典构建
###采用采用中国文本+LSI模型+WordNet自动选词
###(1)检索词及其注释
fromnltk.corpusimportwordnetaswn
searchTerm="责任"
termTotal=wn.synsets(searchTerm,lang=cmn)
itemList=[]
defList=[]
fortermintermTotal:
itemList.append(term)#.name()
defList.append(term.definition())