53bffb88d3b4809f7c4319344f5ee4d185701f23,examples/np_semantic_segmentation/feature_extraction.py,Wordnet,__init__,#Wordnet#,237
Before Change
def __init__(self):
nltk.download("wordnet")
self.wordnet = wn
def find_wordnet_existence(self, candidates):
After Change
def __init__(self):
try:
nltk.data.find("corpora/wordnet")
except LookupError:
if license_prompt("WordNet data set", "http://www.nltk.org/nltk_data/") is False:
raise Exception("can"t continue data prepare process "
"without downloading WordNet dataset")
nltk.download("wordnet")
self.wordnet = wn
def find_wordnet_existence(self, candidates):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: NervanaSystems/nlp-architect
Commit Name: 53bffb88d3b4809f7c4319344f5ee4d185701f23
Time: 2018-05-16
Author: amit.yaccobi@intel.com
File Name: examples/np_semantic_segmentation/feature_extraction.py
Class Name: Wordnet
Method Name: __init__
Project Name: NervanaSystems/nlp-architect
Commit Name: 53bffb88d3b4809f7c4319344f5ee4d185701f23
Time: 2018-05-16
Author: amit.yaccobi@intel.com
File Name: examples/np_semantic_segmentation/feature_extraction.py
Class Name: NLTKCollocations
Method Name: __init__
Project Name: NervanaSystems/nlp-architect
Commit Name: 53bffb88d3b4809f7c4319344f5ee4d185701f23
Time: 2018-05-16
Author: amit.yaccobi@intel.com
File Name: examples/most_common_word_sense/feature_extraction.py
Class Name:
Method Name: