@@ -241,17 +241,18 @@ label of an image. The second part contains 28x28 pixel float values.</p>
...
@@ -241,17 +241,18 @@ label of an image. The second part contains 28x28 pixel float values.</p>
<p>The corresponding dataprovider is shown as below:</p>
<p>The corresponding dataprovider is shown as below:</p>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
@@ -309,17 +310,18 @@ sample by using keywords <code class="code docutils literal"><span class="pre">y
...
@@ -309,17 +310,18 @@ sample by using keywords <code class="code docutils literal"><span class="pre">y
you can take this as an example.</p>
you can take this as an example.</p>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
@@ -373,19 +375,21 @@ the <code class="code docutils literal"><span class="pre">dataprovider</span></c
...
@@ -373,19 +375,21 @@ the <code class="code docutils literal"><span class="pre">dataprovider</span></c
34
34
35
35
36
36
37</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
37
38</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
@@ -449,17 +453,18 @@ negative sentiment (marked by 0 and 1 respectively).</p>
...
@@ -449,17 +453,18 @@ negative sentiment (marked by 0 and 1 respectively).</p>
<p>The corresponding data provider can be found in the path below:</p>
<p>The corresponding data provider can be found in the path below:</p>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
@@ -522,17 +527,18 @@ configuration file, and it maps word string to word id.</li>
...
@@ -522,17 +527,18 @@ configuration file, and it maps word string to word id.</li>
into trainer configuration file.</p>
into trainer configuration file.</p>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1">#Unless required by applicable law or agreed to in writing, software</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1">#Unless required by applicable law or agreed to in writing, software</span>
<spanclass="c1">#distributed under the License is distributed on an "AS IS" BASIS,</span>
<spanclass="c1">#distributed under the License is distributed on an "AS IS" BASIS,</span>
</pre></div>
</pre></div>
</div>
</div>
</li>
</li>
...
@@ -358,9 +359,9 @@
...
@@ -358,9 +359,9 @@
<p>在网络配置里,只需要一行代码就可以调用这个PyDataProvider2,如,</p>
<p>在网络配置里,只需要一行代码就可以调用这个PyDataProvider2,如,</p>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<divclass="highlight-default"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
70</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
70
71</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
31</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
31
32</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><spanclass="c1"># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.</span>
<spanclass="c1">#</span>
<spanclass="c1">#</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#Licensed under the Apache License, Version 2.0 (the "License");</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#you may not use this file except in compliance with the License.</span>
<spanclass="c1">#You may obtain a copy of the License at</span>
<spanclass="c1">#You may obtain a copy of the License at</span>