BrikerMan / Kashgari

Kashgari is a production-level NLP Transfer learning framework built on top of tf.keras for text-labeling and text-classification, includes Word2Vec, BERT, and GPT2 Language Embedding.
http://kashgari.readthedocs.io/
Apache License 2.0
2.4k stars 441 forks source link

您好!序列标注中,想预测很多句子,一个一个去预测时间好慢,可以实现批量的运算吗?[Question] #477

Closed baketbek closed 2 years ago

baketbek commented 3 years ago

You must follow the issue template and provide as much information as possible. otherwise, this issue will be closed. 请按照 issue 模板要求填写信息。如果没有按照 issue 模板填写,将会忽略并关闭这个 issue

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

You can post pictures, but if specific text or code is required to reproduce the issue, please provide the text in a plain text format for easy copy/paste.

Environment

[Paste requirements.txt file here]

Question

[A clear and concise description of what you want to know.]

BrikerMan commented 3 years ago

predict 接口就可以传多个 sentence,本来就是个[sample]

baketbek commented 3 years ago

predict 接口就可以传多个 sentence,本来就是个[sample]

感恩 刚尝试了一下,可以的。效率也提上来了。幸亏遇到这个项目,简直太棒了,上来就解决业务需求!!!必须打 call。能方便加上大佬微信,私下请教沟通吗?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.