-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0becc5
commit 09d59ac
Showing
3 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
|
||
<html> | ||
<head> | ||
<script type="text/x-mathjax-config"> | ||
MathJax.Hub.Config({ | ||
extensions: ["tex2jax.js", "TeX/AMSsymbols.js", "TeX/AMSmath.js"], | ||
jax: ["input/TeX", "output/HTML-CSS"], | ||
tex2jax: { | ||
inlineMath: [ ['$','$'] ], | ||
displayMath: [ ['$$','$$'] ], | ||
processEscapes: true | ||
}, | ||
"HTML-CSS": { availableFonts: ["TeX"] } | ||
}); | ||
</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" async></script> | ||
<script type="text/javascript" src="../.tools/theme/marked.js"> | ||
</script> | ||
<link href="http://cdn.bootcss.com/highlight.js/9.9.0/styles/darcula.min.css" rel="stylesheet"> | ||
<script src="http://cdn.bootcss.com/highlight.js/9.9.0/highlight.min.js"></script> | ||
<link href="http://cdn.bootcss.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/css/perfect-scrollbar.min.css" rel="stylesheet"> | ||
<link href="../.tools/theme/github-markdown.css" rel='stylesheet'> | ||
</head> | ||
<style type="text/css" > | ||
.markdown-body { | ||
box-sizing: border-box; | ||
min-width: 200px; | ||
max-width: 980px; | ||
margin: 0 auto; | ||
padding: 45px; | ||
} | ||
</style> | ||
|
||
|
||
<body> | ||
|
||
<div id="context" class="container-fluid markdown-body"> | ||
</div> | ||
|
||
<!-- This block will be replaced by each markdown file content. Please do not change lines below.--> | ||
<div id="markdown" style='display:none'> | ||
# 基于双层序列的应用 | ||
|
||
## 简介 | ||
|
||
序列是自然语言处理任务面对的一种主要输入数据类型:句子由词语构成,而多个句子进一步构成了段落。因此,段落可以看作是一个嵌套的序列(或者叫作:双层序列),这个序列的每个元素又是一个序列。 | ||
|
||
双层序列是 PaddlePaddle 支持的一种非常灵活的数据组织方式,能够帮助我们更好地描述段落、多轮对话等更为复杂的语言数据。以双层序列作为输入,我们可以设计一个层次化的网络,分别从词语和句子级别编码输入数据,从而更好地完成一些复杂的语言理解任务。 | ||
|
||
本单元将介绍如何在 PaddlePaddle 中实现基于双层序列数据的具体应用。 | ||
|
||
- [基于双层序列的文本分类](https://github.com/PaddlePaddle/models/tree/develop/nested_sequence/text_classification) | ||
|
||
</div> | ||
<!-- You can change the lines below now. --> | ||
|
||
<script type="text/javascript"> | ||
marked.setOptions({ | ||
renderer: new marked.Renderer(), | ||
gfm: true, | ||
breaks: false, | ||
smartypants: true, | ||
highlight: function(code, lang) { | ||
code = code.replace(/&/g, "&") | ||
code = code.replace(/>/g, ">") | ||
code = code.replace(/</g, "<") | ||
code = code.replace(/ /g, " ") | ||
return hljs.highlightAuto(code, [lang]).value; | ||
} | ||
}); | ||
document.getElementById("context").innerHTML = marked( | ||
document.getElementById("markdown").innerHTML) | ||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# 基于双层序列的文本分类 | ||
|
||
## 简介 | ||
本例将演示如何在 PaddlePaddle 中将长文本输入(通常能达到段落或者篇章基本)组织为双层序列,完成对长文本的分类任务。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters