-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
louishsu
committed
Aug 22, 2021
1 parent
7364419
commit 4b94afa
Showing
8 changed files
with
191 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
1. context-aware | ||
2. regex match | ||
3. 是否有实体重叠问题 | ||
3. 是否有实体重叠问题 | ||
4. R-Drop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"version": "alldata", | ||
"device": "cuda:0", | ||
"n_gpu": 1, | ||
"task_name": "ner", | ||
"dataset_name": "cail_ner", | ||
"data_dir": "./data/ner-ctx0-train1.0-seed42/", | ||
"train_file": "train.json", | ||
"dev_file": "dev.json", | ||
"test_file": "dev.json", | ||
"model_type": "bert_span", | ||
"model_name_or_path": "/home/louishsu/NewDisk/Garage/weights/transformers/chinese-roberta-wwm", | ||
"output_dir": "output/", | ||
"max_span_length": 30, | ||
"width_embedding_dim": 128, | ||
"optimizer": "adamw", | ||
"augment_context_aware_p": null, | ||
"rdrop_alpha": null, | ||
"scheme": "IOB2", | ||
"loss_type": "ce", | ||
"config_name": "", | ||
"tokenizer_name": "", | ||
"cache_dir": "cache/", | ||
"train_max_seq_length": 512, | ||
"eval_max_seq_length": 512, | ||
"do_train": true, | ||
"do_eval": false, | ||
"do_predict": true, | ||
"evaluate_during_training": false, | ||
"evaluate_each_epoch": true, | ||
"do_lower_case": true, | ||
"do_fgm": false, | ||
"fgm_epsilon": 1.0, | ||
"fgm_name": "word_embeddings", | ||
"per_gpu_train_batch_size": 16, | ||
"per_gpu_eval_batch_size": 24, | ||
"gradient_accumulation_steps": 2, | ||
"learning_rate": 2e-05, | ||
"other_learning_rate": 1e-3, | ||
"weight_decay": 0.01, | ||
"adam_epsilon": 1e-08, | ||
"max_grad_norm": 1.0, | ||
"num_train_epochs": 10.0, | ||
"max_steps": -1, | ||
"warmup_proportion": 0.1, | ||
"logging_steps": 50, | ||
"save_steps": 50, | ||
"save_best_checkpoints": true, | ||
"eval_all_checkpoints": false, | ||
"predict_checkpoints": 0, | ||
"no_cuda": false, | ||
"overwrite_output_dir": true, | ||
"seed": 42, | ||
"fp16": false, | ||
"fp16_opt_level": "O1", | ||
"local_rank": -1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"version": "alldata_rdrop1.0", | ||
"device": "cuda:0", | ||
"n_gpu": 1, | ||
"task_name": "ner", | ||
"dataset_name": "cail_ner", | ||
"data_dir": "./data/ner-ctx0-train1.0-seed42/", | ||
"train_file": "train.json", | ||
"dev_file": "dev.json", | ||
"test_file": "dev.json", | ||
"model_type": "bert_span", | ||
"model_name_or_path": "/home/louishsu/NewDisk/Garage/weights/transformers/chinese-roberta-wwm", | ||
"output_dir": "output/", | ||
"max_span_length": 30, | ||
"width_embedding_dim": 128, | ||
"optimizer": "adamw", | ||
"augment_context_aware_p": null, | ||
"rdrop_alpha": 1.0, | ||
"scheme": "IOB2", | ||
"loss_type": "ce", | ||
"config_name": "", | ||
"tokenizer_name": "", | ||
"cache_dir": "cache/", | ||
"train_max_seq_length": 512, | ||
"eval_max_seq_length": 512, | ||
"do_train": true, | ||
"do_eval": false, | ||
"do_predict": true, | ||
"evaluate_during_training": false, | ||
"evaluate_each_epoch": true, | ||
"do_lower_case": true, | ||
"do_fgm": false, | ||
"fgm_epsilon": 1.0, | ||
"fgm_name": "word_embeddings", | ||
"per_gpu_train_batch_size": 8, | ||
"per_gpu_eval_batch_size": 8, | ||
"gradient_accumulation_steps": 2, | ||
"learning_rate": 2e-05, | ||
"other_learning_rate": 1e-3, | ||
"weight_decay": 0.01, | ||
"adam_epsilon": 1e-08, | ||
"max_grad_norm": 1.0, | ||
"num_train_epochs": 10.0, | ||
"max_steps": -1, | ||
"warmup_proportion": 0.1, | ||
"logging_steps": 50, | ||
"save_steps": 50, | ||
"save_best_checkpoints": true, | ||
"eval_all_checkpoints": false, | ||
"predict_checkpoints": 0, | ||
"no_cuda": false, | ||
"overwrite_output_dir": true, | ||
"seed": 42, | ||
"fp16": false, | ||
"fp16_opt_level": "O1", | ||
"local_rank": -1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters