Skip to content

Commit

Permalink
fix download lcqmc dataset (PaddlePaddle#107)
Browse files Browse the repository at this point in the history
* 1. fix download lcqmc dataset
2. fix installation docs
  • Loading branch information
Steffy-zxf committed Mar 11, 2021
1 parent f4ee1e4 commit 5955367
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/information_extraction/DuEE/run_duee_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ batch_size=8
epoch=12

echo -e "check and create directory"
dir_list=(../ckpt ${ckpt_dir} ../submit)
dir_list=(./ckpt ${ckpt_dir} ./submit)
for item in ${dir_list[*]}
do
if [ ! -d ${item} ]; then
Expand Down
2 changes: 1 addition & 1 deletion examples/text_classification/pretrained_models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

* 环境依赖

Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/beginners_guide/install/index_cn.html) 部分的内容
Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](http://www.paddlepaddle.org/#quick-start) 部分的内容

### 代码结构说明

Expand Down
2 changes: 1 addition & 1 deletion examples/text_classification/rnn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ PaddleNLP提供了一系列的文本表示技术,如`seq2vec`模块。

* 环境依赖

Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/beginners_guide/install/index_cn.html) 部分的内容
Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](http://www.paddlepaddle.org/#quick-start) 部分的内容

### 代码结构说明

Expand Down
2 changes: 1 addition & 1 deletion examples/text_matching/sentence_transformers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ PaddleNLP提供了丰富的预训练模型,并且可以便捷地获取PaddlePa

* 环境依赖

Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/beginners_guide/install/index_cn.html) 部分的内容
Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](http://www.paddlepaddle.org/#quick-start) 部分的内容

### 代码结构说明

Expand Down
2 changes: 1 addition & 1 deletion examples/text_matching/simnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SimNet框架在百度各产品上广泛应用,主要包括BOW、CNN、RNN、MM

* 环境依赖
- 本项目依赖于jieba分词,请在运行本项目之前,安装jieba,如`pip install -U jieba`
- Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](https://www.paddlepaddle.org.cn/install/quick/zh/2.0rc-linux-docker) 部分的内容
- Python的版本要求 3.6+,其它环境请参考 PaddlePaddle [安装说明](http://www.paddlepaddle.org/#quick-start) 部分的内容

### 代码结构说明

Expand Down
1 change: 1 addition & 0 deletions paddlenlp/datasets/experimental/lcqmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def _get_data(self, mode, **kwargs):
fullname = os.path.join(default_root, filename)
if not os.path.exists(fullname) or (data_hash and
not md5file(fullname) == data_hash):
path = get_path_from_url(self.URL, default_root, self.MD5)
fullname = os.path.join(default_root, filename)

return fullname
Expand Down

0 comments on commit 5955367

Please sign in to comment.