Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
f421c078
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f421c078
编写于
10月 18, 2018
作者:
M
mapingshuo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add copy right license
上级
2bf2eb13
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
229 addition
and
0 deletion
+229
-0
fluid/text_matching_on_quora/configs/__init__.py
fluid/text_matching_on_quora/configs/__init__.py
+13
-0
fluid/text_matching_on_quora/configs/cdssm.py
fluid/text_matching_on_quora/configs/cdssm.py
+13
-0
fluid/text_matching_on_quora/configs/dec_att.py
fluid/text_matching_on_quora/configs/dec_att.py
+13
-0
fluid/text_matching_on_quora/configs/infer_sent.py
fluid/text_matching_on_quora/configs/infer_sent.py
+13
-0
fluid/text_matching_on_quora/configs/sse.py
fluid/text_matching_on_quora/configs/sse.py
+13
-0
fluid/text_matching_on_quora/data/prepare_quora_data.sh
fluid/text_matching_on_quora/data/prepare_quora_data.sh
+13
-0
fluid/text_matching_on_quora/metric.py
fluid/text_matching_on_quora/metric.py
+14
-0
fluid/text_matching_on_quora/models/__init__.py
fluid/text_matching_on_quora/models/__init__.py
+14
-0
fluid/text_matching_on_quora/models/cdssm.py
fluid/text_matching_on_quora/models/cdssm.py
+13
-0
fluid/text_matching_on_quora/models/dec_att.py
fluid/text_matching_on_quora/models/dec_att.py
+13
-0
fluid/text_matching_on_quora/models/infer_sent.py
fluid/text_matching_on_quora/models/infer_sent.py
+13
-0
fluid/text_matching_on_quora/models/match_layers.py
fluid/text_matching_on_quora/models/match_layers.py
+14
-0
fluid/text_matching_on_quora/models/my_layers.py
fluid/text_matching_on_quora/models/my_layers.py
+14
-0
fluid/text_matching_on_quora/models/sse.py
fluid/text_matching_on_quora/models/sse.py
+13
-0
fluid/text_matching_on_quora/pretrained_word2vec.py
fluid/text_matching_on_quora/pretrained_word2vec.py
+14
-0
fluid/text_matching_on_quora/quora_question_pairs.py
fluid/text_matching_on_quora/quora_question_pairs.py
+1
-0
fluid/text_matching_on_quora/train_and_evaluate.py
fluid/text_matching_on_quora/train_and_evaluate.py
+14
-0
fluid/text_matching_on_quora/utils.py
fluid/text_matching_on_quora/utils.py
+14
-0
未找到文件。
fluid/text_matching_on_quora/configs/__init__.py
浏览文件 @
f421c078
# 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
.cdssm
import
cdssm_base
from
.dec_att
import
decatt_glove
from
.dec_att
import
decatt_glove
...
...
fluid/text_matching_on_quora/configs/cdssm.py
浏览文件 @
f421c078
# 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
from
.
import
basic_config
...
...
fluid/text_matching_on_quora/configs/dec_att.py
浏览文件 @
f421c078
# 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
from
.
import
basic_config
...
...
fluid/text_matching_on_quora/configs/infer_sent.py
浏览文件 @
f421c078
# 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
from
.
import
basic_config
...
...
fluid/text_matching_on_quora/configs/sse.py
浏览文件 @
f421c078
# 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
from
.
import
basic_config
...
...
fluid/text_matching_on_quora/data/prepare_quora_data.sh
浏览文件 @
f421c078
# 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
# Please download the Quora dataset firstly from https://drive.google.com/file/d/0B0PlTAo--BnaQWlsZl9FZ3l1c28/view?usp=sharing
...
...
fluid/text_matching_on_quora/metric.py
浏览文件 @
f421c078
# 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
import
numpy
as
np
"""
"""
...
...
fluid/text_matching_on_quora/models/__init__.py
浏览文件 @
f421c078
# 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
.cdssm
import
cdssmNet
from
.dec_att
import
DecAttNet
from
.dec_att
import
DecAttNet
from
.sse
import
SSENet
from
.sse
import
SSENet
...
...
fluid/text_matching_on_quora/models/cdssm.py
浏览文件 @
f421c078
# 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
import
paddle.fluid
as
fluid
...
...
fluid/text_matching_on_quora/models/dec_att.py
浏览文件 @
f421c078
# 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
import
paddle.fluid
as
fluid
...
...
fluid/text_matching_on_quora/models/infer_sent.py
浏览文件 @
f421c078
# 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
import
paddle.fluid
as
fluid
from
.my_layers
import
bi_lstm_layer
from
.my_layers
import
bi_lstm_layer
...
...
fluid/text_matching_on_quora/models/match_layers.py
浏览文件 @
f421c078
# 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
This Module provide different kinds of Match layers
"""
"""
...
...
fluid/text_matching_on_quora/models/my_layers.py
浏览文件 @
f421c078
# 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
This module defines some Frequently-used DNN layers
"""
"""
...
...
fluid/text_matching_on_quora/models/sse.py
浏览文件 @
f421c078
# 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
import
paddle.fluid
as
fluid
from
.my_layers
import
bi_lstm_layer
from
.my_layers
import
bi_lstm_layer
...
...
fluid/text_matching_on_quora/pretrained_word2vec.py
浏览文件 @
f421c078
# 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
This Module provide pretrained word-embeddings
"""
"""
...
...
fluid/text_matching_on_quora/quora_question_pairs.py
浏览文件 @
f421c078
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""
"""
"""
"""
...
...
fluid/text_matching_on_quora/train_and_evaluate.py
浏览文件 @
f421c078
#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
from
__future__
import
print_function
import
os
import
os
...
...
fluid/text_matching_on_quora/utils.py
浏览文件 @
f421c078
# 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
This module provides utilities for data generator and optimizer definition
"""
"""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录