We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6552a58 commit 29d56eeCopy full SHA for 29d56ee
examples/text_to_knowledge/wordtag/README.md
@@ -55,10 +55,10 @@ Term-Linking示例程序可以对无标签数据可以启动模型预测, 例如
55
执行下面的脚本即可快速获取上面两段文本的百科知识树链接的结果
56
57
```bash
58
-python -u predict.py \
59
- --max_seq_len 128 \
60
- --batch_size 32 \
61
- --device "gpu"
+from paddlenlp.taskflow import TaskFlow
+task = TaskFlow("text2knowledge", model="wordtag")
+task(["热梅茶是一道以梅子为主要原料制作的茶饮",
+ "《孤女》是2010年九州出版社出版的小说,作者是余兼羽"])
62
```
63
下面是运行WordTag工具后的知识链接的预测结果
64
0 commit comments