<s> import logging <EOL> import errno <EOL> import os <EOL> import nltk . data <EOL> from iepy . preprocess . tagger import download as download_tagger <EOL> from iepy . preprocess . ner . stanford import download as download_ner <EOL> from iepy . preprocess . corenlp import download as download_corenlp <EOL> from iepy . utils import DIRS <EOL> def download_third_party_data ( ) : <EOL> print ( "<STR_LIT>" ) <EOL> try : <EOL> os . makedirs ( DIRS . user_data_dir ) <EOL> except OSError as exc : <EOL> if exc . errno == errno . EEXIST and os . path . isdir ( DIRS . user_data_dir ) : <EOL> pass <EOL> else : <EOL> raise <EOL> print ( "<STR_LIT>" ) <EOL> nltk . download ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> nltk . download ( "<STR_LIT>" ) <EOL> download_tagger ( ) <EOL> download_ner ( ) <EOL> download_corenlp ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> logging . basicConfig ( level = logging . INFO , <EOL> format = u"<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> download_third_party_data ( ) <EOL> print ( "<STR_LIT>" ) </s>
