-
Notifications
You must be signed in to change notification settings - Fork 4
/
resources.py
executable file
·25 lines (21 loc) · 1.15 KB
/
resources.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
LANGUAGE = 'english'
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # os.path.abspath('.')
DATA_DIR = os.path.join(BASE_DIR, 'data', 'cdm')
RAW_DATA_DIR = os.path.join(DATA_DIR, 'raw_json')
PROCESSED_DATA_DIR = os.path.join(DATA_DIR, 'processed_json')
FULL_CDM_RAW_DIR = os.path.join(DATA_DIR, 'cdm_full', 'raw')
FULL_CDM_SAMPLES_DIR = os.path.join(DATA_DIR, 'cdm_full', 'samples')
SWAP_FEATURES_DIR = os.path.join(DATA_DIR, 'swap_features')
TEST_FEATURES_DIR = os.path.join(DATA_DIR, 'test_features')
ROUGE_DIR = os.path.join(BASE_DIR,'scorer','auto_metrics','rouge','ROUGE-RELEASE-1.5.5/')
METEOR_DIR = os.path.join(BASE_DIR, 'scorer', 'auto_metrics')
SENT2VEC_DIR = os.path.join('/home/gao/Library/NLP-Related/sent2vec')
EMBEDDING_PATH = os.path.join(BASE_DIR,'.vector_cache')
INFERSENT_PATH = os.path.join(EMBEDDING_PATH, 'infersent1.pkl')
W2V_PATH = os.path.join(EMBEDDING_PATH, 'glove.840B.300d.txt')
VEC_DIM = 2048
ABS_MODEL_DIR = os.path.join(BASE_DIR, 'fast_abs_rl', 'pretrained', 'abstractor')
FAST_ABS_RL = os.path.join(BASE_DIR, 'fast_abs_rl')
RUNS_DIR = os.path.join(BASE_DIR, 'runs')
MODEL_WEIGHT_DIR = os.path.join(BASE_DIR,'trained_models')