-
Notifications
You must be signed in to change notification settings - Fork 59
/
directories.py
38 lines (30 loc) · 942 Bytes
/
directories.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
26
27
28
29
30
31
32
33
34
35
36
37
import utils
DATA = './data/'
RAW = DATA + 'data_raw/'
MODELS = DATA + 'models/'
CLUSTERERS = DATA + 'clusterers/'
DOCUMENTS = DATA + 'documents/'
ACTION_SPACES_BASE = DATA + 'action_spaces/'
GOLD = DATA + 'gold/'
MISC = DATA + 'misc/'
CHINESE = False
PRETRAINED_WORD_VECTORS = DATA + 'polyglot_64d.txt' if CHINESE else DATA + 'w2v_50d.txt'
FEATURES_BASE = DATA + 'features/'
MENTION_DATA = FEATURES_BASE + 'mention_data/'
RELEVANT_VECTORS = MENTION_DATA
PAIR_DATA = FEATURES_BASE + 'mention_pair_data/'
DOC_DATA = FEATURES_BASE + 'doc_data/'
ACTION_SPACE_NAME = 'action_spaces/'
ACTION_SPACE = ACTION_SPACES_BASE + ACTION_SPACE_NAME
assert DATA[-1] == '/'
assert ACTION_SPACE_NAME[-1] == '/'
utils.mkdir(MISC)
utils.mkdir(FEATURES_BASE)
utils.mkdir(MENTION_DATA)
utils.mkdir(PAIR_DATA)
utils.mkdir(DOC_DATA)
utils.mkdir(MODELS)
utils.mkdir(CLUSTERERS)
utils.mkdir(DOCUMENTS)
utils.mkdir(ACTION_SPACES_BASE)
utils.mkdir(ACTION_SPACE)