diff --git a/ernie_gram/README.en.md b/ernie_gram/README.en.md index 9c4f9af5bff3e223bb13f8eb60e9a18393b7b686..8a077da54f53efe798974624d2ea282961ace9c8 100644 --- a/ernie_gram/README.en.md +++ b/ernie_gram/README.en.md @@ -30,11 +30,13 @@ The **ERNIE-Gram** paper has been accepted for **NAACL-HLT 2021**, for more deta ### Quick Tour ```shell -import numpy as np -import paddle as P -pooled, encoded = model(ids) # eager execution -print(pooled.numpy()) # convert results to numpy - +mkdir -p data +cd data +wget https://ernie-github.cdn.bcebos.com/data-xnli.tar.gz +tar xf data-xnli.tar.gz +cd .. +#demo for NLI task +sh ernie_gram/run_cls.sh ernie_gram/task_configs/xnli_conf ``` ### Setup diff --git a/ernie_gram/README.zh.md b/ernie_gram/README.zh.md index 75da0c76c76f685ba73a9ff3ee23c5a0727e4ce0..8beda14e279fe33e8a49198c5e80e4856ca481ca 100644 --- a/ernie_gram/README.zh.md +++ b/ernie_gram/README.zh.md @@ -32,13 +32,13 @@ ### 快速上手(待补充运行示例) ```shell -import numpy as np -import paddle as P -from ernie.tokenizing_ernie import ErnieTokenizer -from ernie.modeling_ernie import ErnieModel - -model = ErnieModel.from_pretrained('ernie-gram') # Try to get - +mkdir -p data +cd data +wget https://ernie-github.cdn.bcebos.com/data-xnli.tar.gz +tar xf data-xnli.tar.gz +cd .. +#demo for NLI task +sh ernie_gram/run_cls.sh ernie_gram/task_configs/xnli_conf ```