forked from gauthierdmn/question_answering
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathconfig.py
32 lines (28 loc) · 829 Bytes
/
config.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
# experiment ID
exp = "exp-1"
# data directories
data_dir = "/Users/elizabethlorelei/Documents/Programming/Test/Question_Answ_Syst/SquAD/"
train_dir = data_dir + "train/"
dev_dir = data_dir + "dev/"
# model paths
spacy_en = "/Users/elizabethlorelei/anaconda3/lib/python3.6/site-packages/en_core_web_sm/en_core_web_sm-2.1.0"
glove = "/Users/elizabethlorelei/Documents/Programming/Test/Question_Answ_Syst/Data/glove.6B/" + "glove.6B.{}d.txt"
squad_models = "output/" + exp
# preprocessing values
max_words = -1
word_embedding_size = 100
char_embedding_size = 8
max_len_context = 400
max_len_question = 50
max_len_word = 25
# training hyper-parameters
num_epochs = 1
batch_size = 1
learning_rate = 0.5
drop_prob = 0.2
hidden_size = 100
char_channel_width = 5
char_channel_size = 100
#cuda = True
cuda = False
pretrained = False