#NEWLINE# def __init__( self , override = False ) : #NEWLINE# #INDENT# ner_path = os . path . join ( DIRS . user_data_dir , stanford_ner_name ) #NEWLINE# if ( not os . path . exists ( ner_path ) ) : #NEWLINE# #INDENT# raise LookupError ( 'Stanford NER not found. Try running the command download_third_party_data.py' ) #NEWLINE# #UNINDENT# ner = NonTokenizingNERTagger ( os . path . join ( ner_path , 'classifiers' , 'english.all.3class.distsim.crf.ser.gz' ) , os . path . join ( override , 'stanford-ner.jar' ) , encoding = 'utf8' ) #NEWLINE# super ( StanfordNERRunner , self ) . __init__ ( ner . tag_sents , override )