From 4a63d68eebaf8d33980509532ab45e78f6eff7b3 Mon Sep 17 00:00:00 2001 From: Chen Long <1300851984@qq.com> Date: Thu, 13 Jan 2022 13:37:01 +0800 Subject: [PATCH] Fix api docs (#38882) (#38901) * 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