-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
67 lines (58 loc) · 1.93 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Holds common configuration parameters
@author: yaric
"""
# The root path to the data directory
data_dir = "../data"
# The output directory
out_dir = "../out"
# The intermediate output directory
intermediate_dir = out_dir + "/intermediate"
# The directory to store unit test results
unit_tests_dir = intermediate_dir + "/u_tests"
# The directory to store rained models
models_dir = intermediate_dir + "/models"
#
# The train raw corpora
#
sentence_train_path = data_dir + "/sentence_train.txt"
parse_train_path = data_dir + "/parse_train.txt"
glove_train_path = data_dir + "/glove_train.txt"
corrections_train_path = data_dir + "/corrections_train.txt"
pos_tags_train_path = data_dir + "/pos_tags_train.txt"
#
# The validate raw corpora
#
sentence_validate_path = data_dir + "/sentence_test.txt"
parse_validate_path = data_dir + "/parse_test.txt"
glove_validate_path = data_dir + "/glove_test.txt"
corrections_validate_path = data_dir + "/corrections_test.txt"
pos_tags_validate_path = data_dir + "/pos_tags_test.txt"
#
# The test raw corpora
#
sentence_test_path = data_dir + "/sentence_private_test.txt"
parse_test_path = data_dir + "/parse_private_test.txt"
glove_test_path = data_dir + "/glove_private_test.txt"
pos_tags_test_path = data_dir + "/pos_tags_private_test.txt"
#
# The train processed corpora
#
train_features_path = intermediate_dir + "/train_features.npy"
train_labels_path = intermediate_dir + "/train_labels.npy"
#
# The validate processed corpora
#
validate_features_path = intermediate_dir + "/validate_features.npy"
validate_labels_path = intermediate_dir + "/validate_labels.npy"
#
# The test processed corpora
#
test_features_path = intermediate_dir + "/test_features.npy"
test_labels_prob_path = intermediate_dir + "/test_labels_prob.npy"
# The trained n-gram model file
ngram_model_path = "../out/counter.pkl"
# The test results file
test_reults_path = out_dir + "/submission_test.txt"