Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI][Batch]Support batch input in cli. #1460

Merged
merged 4 commits into from
Feb 21, 2022

Conversation

KPatr1ck
Copy link
Contributor

PR types

New features

PR changes

APIs

Describe

  • Support batch input in cli.

@KPatr1ck KPatr1ck requested a review from zh794390558 February 18, 2022 10:44
@zh794390558 zh794390558 added this to the r0.2.0 milestone Feb 18, 2022
@KPatr1ck KPatr1ck marked this pull request as draft February 18, 2022 11:14
@KPatr1ck
Copy link
Contributor Author

TODO:

  • stdin输入,支持pipe

paddlespeech/cli/cls/infer.py Outdated Show resolved Hide resolved
paddlespeech/cli/cls/infer.py Outdated Show resolved Hide resolved
@KPatr1ck
Copy link
Contributor Author

KPatr1ck commented Feb 20, 2022

TODO:

  • stdin输入,支持pipe

更新支持stdin输入:

paddlespeech asr --input ~/zh.wav | paddlespeech text --task punc

输出:

1 我认为,跑步最重要的,就是给我带来了身体健康。

@KPatr1ck KPatr1ck marked this pull request as ready for review February 21, 2022 03:10
Copy link
Collaborator

@zh794390558 zh794390558 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zh794390558 zh794390558 merged commit 3151637 into PaddlePaddle:develop Feb 21, 2022

raw_text = self._format_task_results(results)
print(raw_text, end='')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: 非job输入,单条,输出不带key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants