Browse Source

ignore the methods inherited from torch.nn.Embedding

tags/v0.4.10
ChenXin 5 years ago
parent
commit
169f519ffb
11 changed files with 2 additions and 16 deletions
  1. +2
    -1
      docs/count.py
  2. +0
    -1
      docs/source/fastNLP.embeddings.bert_embedding.rst
  3. +0
    -1
      docs/source/fastNLP.embeddings.char_embedding.rst
  4. +0
    -1
      docs/source/fastNLP.embeddings.contextual_embedding.rst
  5. +0
    -1
      docs/source/fastNLP.embeddings.elmo_embedding.rst
  6. +0
    -1
      docs/source/fastNLP.embeddings.embedding.rst
  7. +0
    -1
      docs/source/fastNLP.embeddings.rst
  8. +0
    -1
      docs/source/fastNLP.embeddings.stack_embedding.rst
  9. +0
    -1
      docs/source/fastNLP.embeddings.static_embedding.rst
  10. +0
    -1
      docs/source/fastNLP.embeddings.utils.rst
  11. +0
    -6
      docs/source/fastNLP.io.dataset_loader.rst

+ 2
- 1
docs/count.py View File

@@ -68,7 +68,8 @@ def create_rst_file(modules, name, children):
fout.write(".. automodule:: " + name + "\n")
if name != "fastNLP.core" and len(m.__all__) > 0:
fout.write(" :members: " + ", ".join(m.__all__) + "\n")
if not (name.startswith('fastNLP.models') or name.startswith('fastNLP.modules')):
short = name[len("fastNLP."):]
if not (short.startswith('models') or short.startswith('modules') or short.startswith('embeddings')):
fout.write(" :inherited-members:\n")
fout.write("\n")
if name in children:


+ 0
- 1
docs/source/fastNLP.embeddings.bert_embedding.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.bert_embedding

.. automodule:: fastNLP.embeddings.bert_embedding
:members: BertEmbedding, BertWordPieceEncoder
:inherited-members:


+ 0
- 1
docs/source/fastNLP.embeddings.char_embedding.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.char_embedding

.. automodule:: fastNLP.embeddings.char_embedding
:members: CNNCharEmbedding, LSTMCharEmbedding
:inherited-members:


+ 0
- 1
docs/source/fastNLP.embeddings.contextual_embedding.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.contextual_embedding

.. automodule:: fastNLP.embeddings.contextual_embedding
:members: ContextualEmbedding
:inherited-members:


+ 0
- 1
docs/source/fastNLP.embeddings.elmo_embedding.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.elmo_embedding

.. automodule:: fastNLP.embeddings.elmo_embedding
:members: ElmoEmbedding
:inherited-members:


+ 0
- 1
docs/source/fastNLP.embeddings.embedding.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.embedding

.. automodule:: fastNLP.embeddings.embedding
:members: Embedding, TokenEmbedding
:inherited-members:


+ 0
- 1
docs/source/fastNLP.embeddings.rst View File

@@ -3,7 +3,6 @@ fastNLP.embeddings

.. automodule:: fastNLP.embeddings
:members: Embedding, TokenEmbedding, StaticEmbedding, ElmoEmbedding, BertEmbedding, BertWordPieceEncoder, StackEmbedding, LSTMCharEmbedding, CNNCharEmbedding, get_embeddings
:inherited-members:

子模块
------


+ 0
- 1
docs/source/fastNLP.embeddings.stack_embedding.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.stack_embedding

.. automodule:: fastNLP.embeddings.stack_embedding
:members: StackEmbedding
:inherited-members:


+ 0
- 1
docs/source/fastNLP.embeddings.static_embedding.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.static_embedding

.. automodule:: fastNLP.embeddings.static_embedding
:members: StaticEmbedding
:inherited-members:


+ 0
- 1
docs/source/fastNLP.embeddings.utils.rst View File

@@ -3,5 +3,4 @@ fastNLP.embeddings.utils

.. automodule:: fastNLP.embeddings.utils
:members: get_embeddings
:inherited-members:


+ 0
- 6
docs/source/fastNLP.io.dataset_loader.rst View File

@@ -1,6 +0,0 @@
fastNLP.io.dataset_loader
=========================

.. automodule:: fastNLP.io.dataset_loader
:members: CSVLoader, JsonLoader


Loading…
Cancel
Save