From d9aa1b447924c1af1a22d7b30ec4fd68b386d346 Mon Sep 17 00:00:00 2001 From: xixiaoyao Date: Wed, 25 Sep 2019 12:14:16 +0800 Subject: [PATCH] add a demo --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f37de00..067776d 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ sample_rate: 0.02 ... ``` -2. mask_language_model.yaml +2. `mask_language_model.yaml` ```python train_file: "data/mlm4mrqa" mix_ratio: 0.4 @@ -99,7 +99,7 @@ in_tokens: False generate_neg_sample: False ``` -3. answer_matching.yaml +3. `answer_matching.yaml` ```python train_file: "data/am4mrqa/train.txt" mix_ratio: 0.4 @@ -107,11 +107,12 @@ batch_size: 4 in_tokens: False ``` -而后可以在主配置文件`mtl_config`中完成多任务学习的配置,其中,使用`main_task`字段指定主任务,使用`auxilary_task`可指定辅助任务,多个辅助任务之间使用空格` `隔开 +而后可以在主配置文件`mtl_config.yaml`中完成多任务学习的配置,其中,使用`main_task`字段指定主任务,使用`auxilary_task`可指定辅助任务,多个辅助任务之间使用空格"` `"隔开 ```python main_task: "reading_comprehension" auxiliary_task: "mask_language_model answer_matching" do_train: True +epoch: 2 ... ``` -- GitLab