小编gun*_*udi的帖子

Flair 框架与 PyTorch - OverflowError: int 太大而无法转换

我正在尝试使用 Flair Framework(https://github.com/flairNLP/flair)训练命名实体识别模型,并使用以下嵌入:TransformerWordEmbeddings('emilyalsentzer/Bio_ClinicalBERT')。然而,它总是失败OverflowError: int too big to convert。这也发生在其他一些转换器词嵌入中,例如XLNet. 然而,BERT并且RoBERTa工作正常。

这是错误的完整回溯:

2021-04-15 09:34:48,106 ----------------------------------------------------------------------------------------------------
2021-04-15 09:34:48,106 Corpus: "Corpus: 778 train + 259 dev + 260 test sentences"
2021-04-15 09:34:48,106 ----------------------------------------------------------------------------------------------------
2021-04-15 09:34:48,106 Parameters:
2021-04-15 09:34:48,106  - learning_rate: "0.1"
2021-04-15 09:34:48,106  - mini_batch_size: "32"
2021-04-15 09:34:48,106  - patience: "3"
2021-04-15 09:34:48,106  - anneal_factor: "0.5"
2021-04-15 09:34:48,106  - max_epochs: "200"
2021-04-15 09:34:48,106  - shuffle: "True"
2021-04-15 09:34:48,106  - train_with_dev: "False"
2021-04-15 …
Run Code Online (Sandbox Code Playgroud)

python pytorch flair

5
推荐指数
1
解决办法
599
查看次数

标签 统计

flair ×1

python ×1

pytorch ×1