Skip to content

Commit cdc30ad

Browse files
committed
support the wordtag doc for the paddlenlp
1 parent 17502c1 commit cdc30ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/text_to_knowledge/wordtag/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ from paddlenlp.taskflow import TaskFlow
5959
task = TaskFlow("text2knowledge", model="wordtag")
6060
task(["热梅茶是一道以梅子为主要原料制作的茶饮",
6161
"《孤女》是2010年九州出版社出版的小说,作者是余兼羽"])
62+
# Support the input text directly
63+
task("热梅茶是一道以梅子为主要原料制作的茶饮")
64+
6265
```
6366
下面是运行WordTag工具后的知识链接的预测结果
6467

0 commit comments

Comments
 (0)