<s> import os <EOL> import logging <EOL> CURRENT_DIR = os . path . abspath ( os . path . dirname ( __file__ ) ) <EOL> PROJECT_DIR = os . path . abspath ( os . path . join ( CURRENT_DIR , '<STR_LIT:..>' ) ) <EOL> DATA_DIR = os . path . join ( PROJECT_DIR , '<STR_LIT:data>' ) <EOL> REVIEWS_FILE = os . path . join ( DATA_DIR , '<STR_LIT>' ) <EOL> MODELS_DIR = os . path . join ( PROJECT_DIR , '<STR_LIT>' ) <EOL> WORD_EMBEDDING_NN = os . path . join ( MODELS_DIR , '<STR_LIT>' ) <EOL> NN_CLASSIFIER_MODEL = os . path . join ( MODELS_DIR , '<STR_LIT>' ) <EOL> def create_logger ( name , level = logging . INFO ) : <EOL> formatter = logging . Formatter ( <EOL> fmt = '<STR_LIT>' <EOL> ) <EOL> handler = logging . StreamHandler ( ) <EOL> handler . setFormatter ( formatter ) <EOL> logger = logging . getLogger ( name ) <EOL> logger . setLevel ( level ) <EOL> logger . addHandler ( handler ) <EOL> return logger </s>
