diff --git a/hub_module/modules/text/semantic_model/bert_cased_L_12_H_768_A_12/README.md b/hub_module/modules/text/semantic_model/bert_cased_L_12_H_768_A_12/README.md index 8466b8e43cee52670ca79829e260deee8559662e..002f621e8dd650bb0a8b7c80a2209e180dda84af 100644 --- a/hub_module/modules/text/semantic_model/bert_cased_L_12_H_768_A_12/README.md +++ b/hub_module/modules/text/semantic_model/bert_cased_L_12_H_768_A_12/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` diff --git a/hub_module/modules/text/semantic_model/bert_cased_L_24_H_1024_A_16/README.md b/hub_module/modules/text/semantic_model/bert_cased_L_24_H_1024_A_16/README.md index 3b09123d10683761f1269a701fb97849c2981b2d..1e3421417439c17df69ab76bfd437c577fd320af 100644 --- a/hub_module/modules/text/semantic_model/bert_cased_L_24_H_1024_A_16/README.md +++ b/hub_module/modules/text/semantic_model/bert_cased_L_24_H_1024_A_16/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/bert_chinese_L_12_H_768_A_12/README.md b/hub_module/modules/text/semantic_model/bert_chinese_L_12_H_768_A_12/README.md index 320511c44dc5deda8ee98e4b22ddb4f1b0523ed9..9604701172489ea9853460fde5c08dd9198eb4eb 100644 --- a/hub_module/modules/text/semantic_model/bert_chinese_L_12_H_768_A_12/README.md +++ b/hub_module/modules/text/semantic_model/bert_chinese_L_12_H_768_A_12/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/bert_multi_cased_L_12_H_768_A_12/README.md b/hub_module/modules/text/semantic_model/bert_multi_cased_L_12_H_768_A_12/README.md index 9a1914088faa50ab27d5505a1964e94d3fe5b3bd..48621361df149195a52c4d3069626afe000e650e 100644 --- a/hub_module/modules/text/semantic_model/bert_multi_cased_L_12_H_768_A_12/README.md +++ b/hub_module/modules/text/semantic_model/bert_multi_cased_L_12_H_768_A_12/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/bert_multi_uncased_L_12_H_768_A_12/README.md b/hub_module/modules/text/semantic_model/bert_multi_uncased_L_12_H_768_A_12/README.md index a19701ed17694188ffc3e739fbeb3c2acb7ca9d0..754f1ee0a26aed6d12e5ffebf968007ce5be273c 100644 --- a/hub_module/modules/text/semantic_model/bert_multi_uncased_L_12_H_768_A_12/README.md +++ b/hub_module/modules/text/semantic_model/bert_multi_uncased_L_12_H_768_A_12/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/bert_uncased_L_12_H_768_A_12/README.md b/hub_module/modules/text/semantic_model/bert_uncased_L_12_H_768_A_12/README.md index a62212d4e09aceca78f5471f24a3d27dfbb8c9a5..b157a8bb40b1c4a7a604dd0f052be8dfcdf576dc 100644 --- a/hub_module/modules/text/semantic_model/bert_uncased_L_12_H_768_A_12/README.md +++ b/hub_module/modules/text/semantic_model/bert_uncased_L_12_H_768_A_12/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/bert_uncased_L_24_H_1024_A_16/README.md b/hub_module/modules/text/semantic_model/bert_uncased_L_24_H_1024_A_16/README.md index 73893de6d3a7668a14b2b91f47d1eb4f5769e388..bf84872d2fae8b3f06627913d41b57f5627838f3 100644 --- a/hub_module/modules/text/semantic_model/bert_uncased_L_24_H_1024_A_16/README.md +++ b/hub_module/modules/text/semantic_model/bert_uncased_L_24_H_1024_A_16/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/chinese_bert_wwm/README.md b/hub_module/modules/text/semantic_model/chinese_bert_wwm/README.md index 34900f514c012dc58f3fcd782b973406a615ff05..96ae17ac8cd73754c04000c8f2f847b2c2556402 100644 --- a/hub_module/modules/text/semantic_model/chinese_bert_wwm/README.md +++ b/hub_module/modules/text/semantic_model/chinese_bert_wwm/README.md @@ -114,7 +114,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 @@ -218,7 +218,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/chinese_bert_wwm_ext/README.md b/hub_module/modules/text/semantic_model/chinese_bert_wwm_ext/README.md index 99c6319f658ba5325f11fe7225e905b2322af102..79d742a5d9cd842cacd26024ca04995c4b81009b 100644 --- a/hub_module/modules/text/semantic_model/chinese_bert_wwm_ext/README.md +++ b/hub_module/modules/text/semantic_model/chinese_bert_wwm_ext/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/chinese_electra_base/README.md b/hub_module/modules/text/semantic_model/chinese_electra_base/README.md index 0d4345652c16e101d5e53433b4a38a454a12f038..9fbf6b605e656c101e8e2bd96e4c910f697384f4 100644 --- a/hub_module/modules/text/semantic_model/chinese_electra_base/README.md +++ b/hub_module/modules/text/semantic_model/chinese_electra_base/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` diff --git a/hub_module/modules/text/semantic_model/chinese_electra_small/README.md b/hub_module/modules/text/semantic_model/chinese_electra_small/README.md index d704b823716370cb68d87041395b11c2b93d5311..34580f1d635a49df7c4d5e978cfb1ac2e4bd8ebd 100644 --- a/hub_module/modules/text/semantic_model/chinese_electra_small/README.md +++ b/hub_module/modules/text/semantic_model/chinese_electra_small/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` diff --git a/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext/README.md b/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext/README.md index e0c4027daecf9f7a127059ff99a725f77011f748..fcd9cd5c3030d210573916ce5da112c698e580ad 100644 --- a/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext/README.md +++ b/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext_large/README.md b/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext_large/README.md index 16fc2068a44c46562d350e2efec1480381b3f19b..517ced4bd655b5e756788d77f42222c8628391f3 100644 --- a/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext_large/README.md +++ b/hub_module/modules/text/semantic_model/chinese_roberta_wwm_ext_large/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/ernie/README.md b/hub_module/modules/text/semantic_model/ernie/README.md index a5c662dc866c040750a337f1dd6381e9e9473f59..ce5e557368a1b192033add891f928189901c0140 100644 --- a/hub_module/modules/text/semantic_model/ernie/README.md +++ b/hub_module/modules/text/semantic_model/ernie/README.md @@ -107,7 +107,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` 利用该PaddleHub Module Fine-tune示例,可参考[文本分类](https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.2/demo/text-classification)、[序列标注](https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.2/demo/sequence-labeling)。 diff --git a/hub_module/modules/text/semantic_model/ernie_tiny/README.md b/hub_module/modules/text/semantic_model/ernie_tiny/README.md index b4ecaae282e74338f64c0ab0706fb1697aa5552c..19805393c915cbb1a4123f8741fc4876b7a4a68b 100644 --- a/hub_module/modules/text/semantic_model/ernie_tiny/README.md +++ b/hub_module/modules/text/semantic_model/ernie_tiny/README.md @@ -94,7 +94,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` 利用该PaddleHub Module Fine-tune示例,可参考[文本分类](https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.4.0/demo/text-classification)。 diff --git a/hub_module/modules/text/semantic_model/ernie_v2_eng_base/README.md b/hub_module/modules/text/semantic_model/ernie_v2_eng_base/README.md index f625dfced1059366983b9a94d5e9f14323743795..784b63d1b392c5cae948020b45789d8f03118d6b 100644 --- a/hub_module/modules/text/semantic_model/ernie_v2_eng_base/README.md +++ b/hub_module/modules/text/semantic_model/ernie_v2_eng_base/README.md @@ -100,7 +100,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` 利用该PaddleHub Module Fine-tune示例,可参考[文本分类](https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.4.0/demo/text-classification)。 diff --git a/hub_module/modules/text/semantic_model/ernie_v2_eng_large/README.md b/hub_module/modules/text/semantic_model/ernie_v2_eng_large/README.md index 47386cc2ccfcbec0b5dccd926be74e7c6b2e73db..e10d7d26eb2b32bc09f5efd5e1442d3a7014e058 100644 --- a/hub_module/modules/text/semantic_model/ernie_v2_eng_large/README.md +++ b/hub_module/modules/text/semantic_model/ernie_v2_eng_large/README.md @@ -103,7 +103,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` 利用该PaddleHub Module Fine-tune示例,可参考[文本分类](https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.2/demo/text-classification)。 diff --git a/hub_module/modules/text/semantic_model/rbt3/README.md b/hub_module/modules/text/semantic_model/rbt3/README.md index 522ac1a309e5e0d8b654b37889694a9cd9003dc2..a9a001d882329fa4d28ac44a0f21627753bb320b 100644 --- a/hub_module/modules/text/semantic_model/rbt3/README.md +++ b/hub_module/modules/text/semantic_model/rbt3/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码 diff --git a/hub_module/modules/text/semantic_model/rbtl3/README.md b/hub_module/modules/text/semantic_model/rbtl3/README.md index a61a7ca948702e0611745d1bc7894809fc06826b..531072714c66b53a9b3b2d854c6a78ab52ed85a4 100644 --- a/hub_module/modules/text/semantic_model/rbtl3/README.md +++ b/hub_module/modules/text/semantic_model/rbtl3/README.md @@ -96,7 +96,7 @@ embedding_result = module.get_embedding(texts=[["Sample1_text_a"],["Sample2_text # Use "get_params_layer" to get params layer and used to ULMFiTStrategy. params_layer = module.get_params_layer() -strategy = hub.finetune.strategy.ULMFiTStrategy(params_layer=params_layer) +strategy = hub.finetune.strategy.ULMFiTStrategy(frz_params_layer=params_layer, dis_params_layer=params_layer) ``` ## 查看代码