diff --git a/fluid/text_matching_on_quora/configs/__init__.py b/fluid/text_matching_on_quora/configs/__init__.py index a8c3e13b8a203a199572c1bc0df3214bc69ee3df..5711d76f3c8f838ab9e2bf2cc4fa5e3ccb288563 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 d6433e4f93118cf50e7c5d84e1c78735911897c8..22e7bd30e4324d184f4a04d72e4fd1e7a04aedaa 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 9b8b192ae026a65a525aff5876b99c2388449da5..3df9f897e4c240554bf75108afb8bd54a5cf94fa 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 0bc91d49e87c64d02ca51e074331d1aa02abb5eb..1b71f7b99893a1ec3661b8e1879b4bce7b2a97f0 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 ea3c77319b0870130690f4f89bf6173b806ff14d..45d4ab6d6c5f059170de7acc26865ea273755fe1 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 f30679528528a87d068822b95ef969318287800b..111c2b8886f304ad1f8bc31cb662506044a9535b 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 6e8e3c9343d8a4187c9ab519f8dff98cbb879759..fd2318bb6d96225f94e2f494e0c19e2d78e0bd89 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 ecee5791ab3bdd277d35321d5d608683c22e5d01..a52665d415e198b3fc47c1ee3f3bc7fa0bde4971 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 234703051d4956a34b3cabbff416d42547b22ca7..2ff0cb5f3d9eaac872651362f17168c0878cb77b 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 0ca8fb7ec753ba75580a02a7931ef91220c9d2f0..68bde4e117d71b09e6faff12b6175984c30a9f7a 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 45a4c3d122c12e9442c0adf849abae1d9d476a5c..08679cb9fbf489e63390a52ba0f842d5832023d1 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 6c6105a1fa9bee3bf940e0a783c5622220637787..b913ece03dfa7113bafcb209afba5d3405f4c277 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 24328abb797d9fa315ff391431f57b44063d66b6..842d76cabc88c9b8aa5c57fd23e0e6abbb1283fc 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 445032a2efb41213a0fef6b4e375acbc0eccf2ee..d75727fe515329612a9fc0d362af5efa860e9346 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 d49b4740a506a22fbf1cd6b43a002a135ee21ef9..a3f3422e8bb2d4065978d43378e6c607b00141a4 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 2d97a89f540bd39b794d698c35e0bbafc4617380..d27fa4fdeb598b84fa2069df01951158f78b1834 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 ad87a8ef4a967c42280c596d4639f5baec9d19ea..32a2f037b9833fac8376d7486114e224d37b940a 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 25ffe9024f2f874c19eb65fcd484d6bd2d5e8a63..572b32e749b4969c00670237a5d5ca9045ffb5d4 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 """