Skip to content

Commit 7f35a76

Browse files
committed
release AverageEmbeddingInputlayer and FastText example
1 parent 0eb2015 commit 7f35a76

File tree

12 files changed

+50099
-79
lines changed

12 files changed

+50099
-79
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Examples can be found [in this folder](https://github.com/zsdonghao/tensorlayer/
7676
- Text Generation. Generates new text scripts, using LSTM network, see [tutorial\_generate_text.py](https://github.com/zsdonghao/tensorlayer/blob/master/example/tutorial_generate_text.py).
7777
- Chinese Text Anti-Spam by [pakrchen](https://github.com/pakrchen/text-antispam).
7878
- [Chatbot in 200 lines of code](https://github.com/zsdonghao/seq2seq-chatbot) for [Seq2Seq](http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#simple-seq2seq).
79+
- FastText Sentence Classification (IMDB), see [tutorial\_imdb\_fasttext.py](https://github.com/zsdonghao/tensorlayer/blob/master/example/tutorial_imdb_fasttext.py) by [tomtung](https://github.com/tomtung).
7980

8081
## Adversarial Learning
8182
- DCGAN (CelebA). Generating images by [Deep Convolutional Generative Adversarial Networks](http://arxiv.org/abs/1511.06434) by [zsdonghao](https://github.com/zsdonghao/dcgan).

docs/modules/layers.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ Layer list
252252
OneHotInputLayer
253253
Word2vecEmbeddingInputlayer
254254
EmbeddingInputlayer
255+
AverageEmbeddingInputlayer
255256

256257
DenseLayer
257258
ReconLayer
@@ -394,6 +395,10 @@ Embedding Input layer
394395
^^^^^^^^^^^^^^^^^^^^^^^
395396
.. autoclass:: EmbeddingInputlayer
396397

398+
Average Embedding Input layer
399+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
400+
.. autoclass:: AverageEmbeddingInputlayer
401+
397402
Dense layer
398403
------------
399404

docs/user/example.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Natural Language Processing
3838
- Text Generation. Generates new text scripts, using LSTM network, see `tutorial_generate_text.py <https://github.com/zsdonghao/tensorlayer/blob/master/example/tutorial_generate_text.py>`_.
3939
- Chinese Text Anti-Spam by `pakrchen <https://github.com/pakrchen/text-antispam>`_.
4040
- `Chatbot in 200 lines of code <https://github.com/zsdonghao/seq2seq-chatbot>`_ for `Seq2Seq <http://tensorlayer.readthedocs.io/en/latest/modules/layers.html#simple-seq2seq>`_.
41+
- FastText Sentence Classification (IMDB), see `tutorial_imdb_fasttext.py <https://github.com/zsdonghao/tensorlayer/blob/master/example/tutorial_imdb_fasttext.py>`_ by `tomtung <https://github.com/tomtung>`_.
4142

4243
Adversarial Learning
4344
========================
6.13 MB
Binary file not shown.

example/playground/model.npz

21 MB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
model_checkpoint_path: "model.ckpt"
2+
all_model_checkpoint_paths: "model.ckpt"
12.2 MB
Binary file not shown.
1.14 KB
Binary file not shown.
4.9 MB
Binary file not shown.

0 commit comments

Comments
 (0)