@@ -239,19 +239,20 @@ label of an image. The second part contains 28x28 pixel float values.</p>
</pre></div>
</div>
<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">#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 obtain a copy of the License at</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 obtain a copy of the License at</span>
<p>Only a few lines of codes need to be added into the training configuration file,
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">#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 obtain a copy of the License at</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 obtain a copy of the License at</span>
@@ -373,19 +375,21 @@ the <code class="code docutils literal"><span class="pre">dataprovider</span></c
34
35
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">#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 obtain a copy of the License at</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 obtain a copy of the License at</span>
@@ -447,19 +451,20 @@ negative sentiment (marked by 0 and 1 respectively).</p>
</pre></div>
</div>
<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">#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 obtain a copy of the License at</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 obtain a copy of the License at</span>
@@ -520,19 +525,20 @@ configuration file, and it maps word string to word id.</li>
</ul>
<p>To pass these parameters into DataProvider, the following lines should be added
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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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>
<spanclass="c1">#distributed under the License is distributed on an "AS IS" BASIS,</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>
<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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 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">#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 obtain a copy of the License at</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 obtain a copy of the License at</span>