-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.yaml
58 lines (49 loc) · 937 Bytes
/
config.yaml
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
# cuda
cuda_index: 0
seed: 42
# path
lang: zh
json_path: data/dataset/jsons
preprocessed_dir: data/preprocessed
target_dir: data/save
bert-en:
bert_path: roberta-large
cls: '<s>'
sep: '</s>'
unk: '<unk>'
pad: '<pad>'
bert-zh:
bert_path: hfl/chinese-roberta-wwm-ext
cls: '[CLS]'
sep: '[SEP]'
unk: '[UNK]'
pad: '[PAD]'
unkown_tokens: '🍔—🐛🙉🙄🔨🏆🆔👌👀🥺冖🌚🙈😭🍎😅💩尛硌糇💰🐴🙊💯⭐🐶🐟🙏😄🏻📶🐮🍺❌🤔🐍🐸🙃🤣🏆😂🌚'
max_length: 512
# parameter
epoch_size: 10
batch_size: 2
lr: 1e-3
bert_lr: 1e-5
patience: 10
max_grad_norm: 1.0
warmup_proportion: 0.1
gradient_accumulation_steps: 1
adam_epsilon: 1e-8
warmup_steps: 0
weight_decay: 0
inner_dim: 256
# dict
bio_mode: 'OBIES'
asp_type: 'Aspect'
tgt_type: 'Target'
opi_type: 'Opinion'
polarity_dict:
O: 0
pos: 1
neg: 2
other: 3
loss_weight:
ent: 1
rel: 5
pol: 3