From 9744d4c7841cbc473d12cbc73f83e9f7efff8aab Mon Sep 17 00:00:00 2001 From: zhanghan17 Date: Thu, 20 May 2021 01:20:02 +0800 Subject: [PATCH] update readme --- ernie_gram/README.en.md | 12 +++++++----- ernie_gram/README.zh.md | 14 +++++++------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/ernie_gram/README.en.md b/ernie_gram/README.en.md index 9c4f9af..8a077da 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 75da0c7..8beda14 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 ``` -- GitLab