未验证 提交 9bb04817 编写于 作者: K KP 提交者: GitHub

Merge pull request #1802 from Wgm-Inspur/PaddleHub-SeqLabel-MatchPredict-WGM

Mismatching between result prediction and the corresponding code in demo\sequence_labeling\README.md
......@@ -183,7 +183,7 @@ model = hub.Module(
label_map=label_map,
)
results = model.predict(data, max_seq_len=50, batch_size=1, use_gpu=False)
results = model.predict(data, max_seq_len=128, batch_size=1, use_gpu=True)
for idx, text in enumerate(text_a):
print(f'Data: {text} \t Lable: {", ".join(results[idx][1:len(text)+1])}')
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册