From f421c0785a93b295833109733dc54bbd4c3420aa Mon Sep 17 00:00:00 2001 From: mapingshuo Date: Thu, 18 Oct 2018 13:42:37 +0800 Subject: [PATCH] add copy right license --- fluid/text_matching_on_quora/configs/__init__.py | 13 +++++++++++++ fluid/text_matching_on_quora/configs/cdssm.py | 13 +++++++++++++ fluid/text_matching_on_quora/configs/dec_att.py | 13 +++++++++++++ fluid/text_matching_on_quora/configs/infer_sent.py | 13 +++++++++++++ fluid/text_matching_on_quora/configs/sse.py | 13 +++++++++++++ .../data/prepare_quora_data.sh | 13 +++++++++++++ fluid/text_matching_on_quora/metric.py | 14 ++++++++++++++ fluid/text_matching_on_quora/models/__init__.py | 14 ++++++++++++++ fluid/text_matching_on_quora/models/cdssm.py | 13 +++++++++++++ fluid/text_matching_on_quora/models/dec_att.py | 13 +++++++++++++ fluid/text_matching_on_quora/models/infer_sent.py | 13 +++++++++++++ .../text_matching_on_quora/models/match_layers.py | 14 ++++++++++++++ fluid/text_matching_on_quora/models/my_layers.py | 14 ++++++++++++++ fluid/text_matching_on_quora/models/sse.py | 13 +++++++++++++ .../text_matching_on_quora/pretrained_word2vec.py | 14 ++++++++++++++ .../text_matching_on_quora/quora_question_pairs.py | 1 + fluid/text_matching_on_quora/train_and_evaluate.py | 14 ++++++++++++++ fluid/text_matching_on_quora/utils.py | 14 ++++++++++++++ 18 files changed, 229 insertions(+) diff --git a/fluid/text_matching_on_quora/configs/__init__.py b/fluid/text_matching_on_quora/configs/__init__.py index a8c3e13b..5711d76f 100755 --- a/fluid/text_matching_on_quora/configs/__init__.py +++ b/fluid/text_matching_on_quora/configs/__init__.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. from .cdssm import cdssm_base from .dec_att import decatt_glove diff --git a/fluid/text_matching_on_quora/configs/cdssm.py b/fluid/text_matching_on_quora/configs/cdssm.py index d6433e4f..22e7bd30 100755 --- a/fluid/text_matching_on_quora/configs/cdssm.py +++ b/fluid/text_matching_on_quora/configs/cdssm.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. from . import basic_config diff --git a/fluid/text_matching_on_quora/configs/dec_att.py b/fluid/text_matching_on_quora/configs/dec_att.py index 9b8b192a..3df9f897 100755 --- a/fluid/text_matching_on_quora/configs/dec_att.py +++ b/fluid/text_matching_on_quora/configs/dec_att.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. from . import basic_config diff --git a/fluid/text_matching_on_quora/configs/infer_sent.py b/fluid/text_matching_on_quora/configs/infer_sent.py index 0bc91d49..1b71f7b9 100755 --- a/fluid/text_matching_on_quora/configs/infer_sent.py +++ b/fluid/text_matching_on_quora/configs/infer_sent.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. from . import basic_config diff --git a/fluid/text_matching_on_quora/configs/sse.py b/fluid/text_matching_on_quora/configs/sse.py index ea3c7731..45d4ab6d 100755 --- a/fluid/text_matching_on_quora/configs/sse.py +++ b/fluid/text_matching_on_quora/configs/sse.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. from . import basic_config diff --git a/fluid/text_matching_on_quora/data/prepare_quora_data.sh b/fluid/text_matching_on_quora/data/prepare_quora_data.sh index f3067952..111c2b88 100755 --- a/fluid/text_matching_on_quora/data/prepare_quora_data.sh +++ b/fluid/text_matching_on_quora/data/prepare_quora_data.sh @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. # Please download the Quora dataset firstly from https://drive.google.com/file/d/0B0PlTAo--BnaQWlsZl9FZ3l1c28/view?usp=sharing diff --git a/fluid/text_matching_on_quora/metric.py b/fluid/text_matching_on_quora/metric.py index 6e8e3c93..fd2318bb 100755 --- a/fluid/text_matching_on_quora/metric.py +++ b/fluid/text_matching_on_quora/metric.py @@ -1,3 +1,17 @@ +# Copyright (c) 2016 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. + import numpy as np """ diff --git a/fluid/text_matching_on_quora/models/__init__.py b/fluid/text_matching_on_quora/models/__init__.py index ecee5791..a52665d4 100755 --- a/fluid/text_matching_on_quora/models/__init__.py +++ b/fluid/text_matching_on_quora/models/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2016 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. + from .cdssm import cdssmNet from .dec_att import DecAttNet from .sse import SSENet diff --git a/fluid/text_matching_on_quora/models/cdssm.py b/fluid/text_matching_on_quora/models/cdssm.py index 23470305..2ff0cb5f 100755 --- a/fluid/text_matching_on_quora/models/cdssm.py +++ b/fluid/text_matching_on_quora/models/cdssm.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. import paddle.fluid as fluid diff --git a/fluid/text_matching_on_quora/models/dec_att.py b/fluid/text_matching_on_quora/models/dec_att.py index 0ca8fb7e..68bde4e1 100755 --- a/fluid/text_matching_on_quora/models/dec_att.py +++ b/fluid/text_matching_on_quora/models/dec_att.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. import paddle.fluid as fluid diff --git a/fluid/text_matching_on_quora/models/infer_sent.py b/fluid/text_matching_on_quora/models/infer_sent.py index 45a4c3d1..08679cb9 100644 --- a/fluid/text_matching_on_quora/models/infer_sent.py +++ b/fluid/text_matching_on_quora/models/infer_sent.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. import paddle.fluid as fluid from .my_layers import bi_lstm_layer diff --git a/fluid/text_matching_on_quora/models/match_layers.py b/fluid/text_matching_on_quora/models/match_layers.py index 6c6105a1..b913ece0 100755 --- a/fluid/text_matching_on_quora/models/match_layers.py +++ b/fluid/text_matching_on_quora/models/match_layers.py @@ -1,3 +1,17 @@ +# Copyright (c) 2016 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. + """ This Module provide different kinds of Match layers """ diff --git a/fluid/text_matching_on_quora/models/my_layers.py b/fluid/text_matching_on_quora/models/my_layers.py index 24328abb..842d76ca 100755 --- a/fluid/text_matching_on_quora/models/my_layers.py +++ b/fluid/text_matching_on_quora/models/my_layers.py @@ -1,3 +1,17 @@ +# Copyright (c) 2016 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. + """ This module defines some Frequently-used DNN layers """ diff --git a/fluid/text_matching_on_quora/models/sse.py b/fluid/text_matching_on_quora/models/sse.py index 445032a2..d75727fe 100644 --- a/fluid/text_matching_on_quora/models/sse.py +++ b/fluid/text_matching_on_quora/models/sse.py @@ -1,3 +1,16 @@ +# Copyright (c) 2016 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. import paddle.fluid as fluid from .my_layers import bi_lstm_layer diff --git a/fluid/text_matching_on_quora/pretrained_word2vec.py b/fluid/text_matching_on_quora/pretrained_word2vec.py index d49b4740..a3f3422e 100755 --- a/fluid/text_matching_on_quora/pretrained_word2vec.py +++ b/fluid/text_matching_on_quora/pretrained_word2vec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2016 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. + """ This Module provide pretrained word-embeddings """ diff --git a/fluid/text_matching_on_quora/quora_question_pairs.py b/fluid/text_matching_on_quora/quora_question_pairs.py index 2d97a89f..d27fa4fd 100755 --- a/fluid/text_matching_on_quora/quora_question_pairs.py +++ b/fluid/text_matching_on_quora/quora_question_pairs.py @@ -11,6 +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. + """ """ diff --git a/fluid/text_matching_on_quora/train_and_evaluate.py b/fluid/text_matching_on_quora/train_and_evaluate.py index ad87a8ef..32a2f037 100755 --- a/fluid/text_matching_on_quora/train_and_evaluate.py +++ b/fluid/text_matching_on_quora/train_and_evaluate.py @@ -1,3 +1,17 @@ +#Copyright (c) 2016 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. + from __future__ import print_function import os diff --git a/fluid/text_matching_on_quora/utils.py b/fluid/text_matching_on_quora/utils.py index 25ffe902..572b32e7 100755 --- a/fluid/text_matching_on_quora/utils.py +++ b/fluid/text_matching_on_quora/utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2016 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. + """ This module provides utilities for data generator and optimizer definition """ -- GitLab