From 572ba24ea0f61f9ce54617c8c0dcd99c86bd17a7 Mon Sep 17 00:00:00 2001 From: Chen Long <1300851984@qq.com> Date: Wed, 12 Jan 2022 14:25:54 +0800 Subject: [PATCH] Fix api docs (#38882) * update readme test=document_fix * update conll05 docs * update conll05 docs test=document_fix --- python/paddle/text/datasets/conll05.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/python/paddle/text/datasets/conll05.py b/python/paddle/text/datasets/conll05.py index 7dd29637706..88ae5e3d8c6 100644 --- a/python/paddle/text/datasets/conll05.py +++ b/python/paddle/text/datasets/conll05.py @@ -300,9 +300,10 @@ class Conll05st(Dataset): .. code-block:: python - from paddle.text.datasets import Conll05st - conll05st = Conll05st() - word_dict, predicate_dict, label_dict = conll05st.get_dict() + from paddle.text.datasets import Conll05st + + conll05st = Conll05st() + word_dict, predicate_dict, label_dict = conll05st.get_dict() """ return self.word_dict, self.predicate_dict, self.label_dict @@ -314,8 +315,9 @@ class Conll05st(Dataset): .. code-block:: python - from paddle.text.datasets import Conll05st - conll05st = Conll05st() - emb_file = conll05st.get_embedding() + from paddle.text.datasets import Conll05st + + conll05st = Conll05st() + emb_file = conll05st.get_embedding() """ return self.emb_file -- GitLab