Skip to content

Commit

Permalink
Add embeddings.md to readthedocs (PaddlePaddle#503)
Browse files Browse the repository at this point in the history
* add embeddings.md to readthedocs

* Update README.md
  • Loading branch information
yingyibiao authored Jun 7, 2021
1 parent 40d2597 commit 6198f53
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ For more `TokenEmbedding` usage, please refer to [Embedding API](./docs/embeddin
- [Transformer API](./docs/model_zoo/transformers.rst)
- [Data API](./docs/data.md)
- [Dataset API](./docs/datasets.md)
- [Embedding API](./docs/embeddings.md)
- [Embedding API](./docs/model_zoo/embeddings.md)
- [Metrics API](./docs/metrics.md)

Please find more API Reference from our [readthedocs](https://paddlenlp.readthedocs.io/).
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
:maxdepth: 2
:caption: 模型库

预训练模型 <model_zoo/transformers>
基本组网单元 <model_zoo/others>
Transformer预训练模型 <model_zoo/transformers>
预训练词向量 <model_zoo/embeddings>

.. toctree::
:maxdepth: 2
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions docs/model_zoo/others.rst

This file was deleted.

2 changes: 1 addition & 1 deletion examples/word_embedding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ python train.py --device='gpu' \

* `save_dir`: 模型保存目录。默认值为"./checkpoints/"。
* `init_from_ckpt`: 恢复模型训练的断点路径。默认值为None,表示不恢复训练。
* `embedding_name`: 预训练Embedding名称,默认为`w2v.baidu_encyclopedia.target.word-word.dim300`. 支持的预训练Embedding可参考[Embedding 模型汇总](../../docs/embeddings.md)
* `embedding_name`: 预训练Embedding名称,默认为`w2v.baidu_encyclopedia.target.word-word.dim300`. 支持的预训练Embedding可参考[Embedding 模型汇总](../../docs/model_zoo/embeddings.md)

**注意:**

Expand Down
2 changes: 1 addition & 1 deletion paddlenlp/embeddings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| 参数 | 类型 | 属性 |
| ------------ | ------------ | ------------ |
| embedding_name | **string** | 预训练embedding名称,可通过paddlenlp.embeddings.list_embedding_name或[Embedding 模型汇总](../../docs/embeddings.md)查询。 |
| embedding_name | **string** | 预训练embedding名称,可通过paddlenlp.embeddings.list_embedding_name()或[Embedding 模型汇总](../../docs/model_zoo/embeddings.md)查询。 |
| unknown_token | **string** | unknown token。 |
| unknown_token_vector | **list** 或者 **np.array** | 用来初始化unknown token对应的vector。默认为None(以正态分布方式初始化vector)|
| extended_vocab_path | **string** | 扩展词表的文件名路径。词表格式为一行一个词。 |
Expand Down

0 comments on commit 6198f53

Please sign in to comment.