def download_third_party_data(): print("Downloading punkt tokenizer") nltk.download("punkt") print("Downloading wordnet") nltk.download("wordnet") download_tagger() download_ner() download_corenlp()
def download_third_party_data(lang): print("Downloading punkt tokenizer") nltk.download("punkt") print("Downloading wordnet") nltk.download("wordnet") download_tagger() download_ner() download_corenlp(lang)
def download_third_party_data(): print("Making sure configuration folder exists") try: os.makedirs(DIRS.user_data_dir) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(DIRS.user_data_dir): pass else: raise print("Downloading punkt tokenizer") nltk.download("punkt") print("Downloading wordnet") nltk.download("wordnet") download_tagger() download_ner() download_corenlp()