-
Notifications
You must be signed in to change notification settings - Fork 1
/
constant.py
36 lines (31 loc) · 801 Bytes
/
constant.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
CWS_DATA = {
'Train': 'Data/trainset/train_cws.txt',
'Dev': 'Data/devset/val_cws.txt',
'Test': 'Data/testset1/test_cws1.txt',
'Test_POS': 'Data/testset1/test_cws1_1.txt'
}
POS_DATA = {
'Train': 'Data/trainset/train_pos.txt',
'Dev': 'Data/devset/val_pos.txt',
'Test': 'Data/testset1/test_pos1.txt'
}
RESULT = {
'CWS': 'Result/cws_predict.txt',
'POS': 'Result/pos_predict.txt',
'POSTrain': 'Result/pos_train_predict.txt',
'POSTest': 'Result/pos_test_predict.txt',
'POSDev': 'Result/pos_dev_predict.txt',
}
Final = {
'RawArticle': 'Data/final/test2.txt',
'CWSResult': 'Result/test_cws2.txt',
'POSResult': 'Result/test_pos2.txt',
}
CWS_LAB2ID = {
'B': 0,
'M': 1,
'E': 2,
'S': 3
}
is_service = False
log_path = 'service.log'