未验证 提交 4a63d68e 编写于 作者: C Chen Long 提交者: GitHub

Fix api docs (#38882) (#38901)

* update readme test=document_fix

* update conll05 docs

* update conll05 docs test=document_fix
上级 9b9a225b
...@@ -300,9 +300,10 @@ class Conll05st(Dataset): ...@@ -300,9 +300,10 @@ class Conll05st(Dataset):
.. code-block:: python .. code-block:: python
from paddle.text.datasets import Conll05st from paddle.text.datasets import Conll05st
conll05st = Conll05st()
word_dict, predicate_dict, label_dict = conll05st.get_dict() conll05st = Conll05st()
word_dict, predicate_dict, label_dict = conll05st.get_dict()
""" """
return self.word_dict, self.predicate_dict, self.label_dict return self.word_dict, self.predicate_dict, self.label_dict
...@@ -314,8 +315,9 @@ class Conll05st(Dataset): ...@@ -314,8 +315,9 @@ class Conll05st(Dataset):
.. code-block:: python .. code-block:: python
from paddle.text.datasets import Conll05st from paddle.text.datasets import Conll05st
conll05st = Conll05st()
emb_file = conll05st.get_embedding() conll05st = Conll05st()
emb_file = conll05st.get_embedding()
""" """
return self.emb_file return self.emb_file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册