From 44879a498887cafdefddce3ea7e3b41fd67a0cfd Mon Sep 17 00:00:00 2001 From: xixiaoyao Date: Tue, 24 Sep 2019 14:46:59 +0800 Subject: [PATCH] Release PALM 1.0 --- README.md | 4 ++-- backbone/bert_model.py | 3 +-- mtl_run.py | 13 +++++++++++++ paradigm/answer_matching.py | 13 +++++++++++++ paradigm/reading_comprehension.py | 13 +++++++++++++ 5 files changed, 42 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5be6e43..f9d857e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ PALM === -PALM (PAddLE Multitask) 是一个灵活易用的多任务学习框架,框架中内置了丰富的模型backbone(BERT、ERNIE、XLNet等)、常见的任务范式(分类、匹配、序列标注、机器阅读理解等)和数据集读取与处理工具。 +PALM (PAddLE Multitask) 是一个灵活易用的多任务学习框架,框架中内置了丰富的模型backbone(BERT、ERNIE等)、常见的任务范式(分类、匹配、序列标注、机器阅读理解等)和数据集读取与处理工具。对于典型的任务场景,用户几乎无需书写代码便可完成新任务的添加;对于特殊的任务场景,用户可通过对预置接口的实现来完成对新任务的支持。 ## 安装 @@ -13,7 +13,7 @@ git clone https://github.com/PaddlePaddle/PALM.git - Python >= 2.7 - cuda >= 9.0 - cudnn >= 7.0 -- PaddlePaddle >= 1.5.0 +- PaddlePaddle >= 1.5.0 (请参考[安装指南](http://www.paddlepaddle.org/#quick-start)进行安装) ## 目录结构 diff --git a/backbone/bert_model.py b/backbone/bert_model.py index a9a2cc9..41e0c49 100644 --- a/backbone/bert_model.py +++ b/backbone/bert_model.py @@ -11,8 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""v1.1 -BERT model.""" +"""BERT model""" from __future__ import absolute_import from __future__ import division diff --git a/mtl_run.py b/mtl_run.py index fb99306..eb23f75 100644 --- a/mtl_run.py +++ b/mtl_run.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # encoding=utf8 import os diff --git a/paradigm/answer_matching.py b/paradigm/answer_matching.py index bf1d335..3c2f797 100644 --- a/paradigm/answer_matching.py +++ b/paradigm/answer_matching.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # encoding=utf8 import paddle.fluid as fluid diff --git a/paradigm/reading_comprehension.py b/paradigm/reading_comprehension.py index 7da3e67..af73630 100644 --- a/paradigm/reading_comprehension.py +++ b/paradigm/reading_comprehension.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # encoding=utf8 import paddle.fluid as fluid -- GitLab