1 Star 0 Fork 0

Alessa-mo/diaparser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.ini 806 Bytes
一键复制 编辑 原始数据 按行查看 历史
Giuseppe Attardi 提交于 2020-10-16 13:44 . first commit
[Transformer]
bert = 'bert-base-multilingual-cased'
n_bert_layers = 0 # 0 means all
use_hidden_states = True
use_attentions = True
attention_head = 0
attention_layer = 6
bert_fine_tune = False
[Features]
n_word_embed = 0 # embeddings for words
n_char_embed = 50
n_feat_embed = 0
[Network]
mix_dropout = .1
embed_dropout = .33
n_lstm_hidden = 400
n_lstm_layers = 2
lstm_dropout = .33
token_dropout = 0.0
n_mlp_arc = 500
n_mlp_rel = 100
mlp_dropout = .33
[Optimizer]
optimizer = 'adam' # or 'adamw'
lr = 2e-3 # Li uses 1.2e-3
mu = .9
nu = .98 # sometimes 0.9 is better
epsilon = 1e-12 # Li uses 1e-6
clip = 5.0
decay = .75
decay_steps = 5000
accumulation_steps = 1
evaluate_in_training = True
warmup_steps_ratio = .1
[Run]
batch_size = 5000
epochs = 1000
patience = 20
min_freq = 2
fix_len = 20
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/alessa-mo/diaparser.git
git@gitee.com:alessa-mo/diaparser.git
alessa-mo
diaparser
diaparser
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385