Skip to content

Commit 4506a7a

Browse files
committed
Fix api docs (#38882)
* update readme test=document_fix * update conll05 docs * update conll05 docs test=document_fix
1 parent 27774ee commit 4506a7a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

python/paddle/text/datasets/conll05.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,10 @@ def get_dict(self):
300300
301301
.. code-block:: python
302302
303-
from paddle.text.datasets import Conll05st
304-
conll05st = Conll05st()
305-
word_dict, predicate_dict, label_dict = conll05st.get_dict()
303+
from paddle.text.datasets import Conll05st
304+
305+
conll05st = Conll05st()
306+
word_dict, predicate_dict, label_dict = conll05st.get_dict()
306307
"""
307308
return self.word_dict, self.predicate_dict, self.label_dict
308309

@@ -314,8 +315,9 @@ def get_embedding(self):
314315
315316
.. code-block:: python
316317
317-
from paddle.text.datasets import Conll05st
318-
conll05st = Conll05st()
319-
emb_file = conll05st.get_embedding()
318+
from paddle.text.datasets import Conll05st
319+
320+
conll05st = Conll05st()
321+
emb_file = conll05st.get_embedding()
320322
"""
321323
return self.emb_file

0 commit comments

Comments
 (0)