Skip to content

Conversation

BasicCoder
Copy link
Contributor

only need do once valid

PR types

Function optimization

PR changes

Others

Description

    if not _is_valid_text_input(text):
        raise ValueError(
            "text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
            "or `List[List[str]]` (batch of pretokenized examples).")

    if not _is_valid_text_input(text):
        raise ValueError(
            "text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
            "or `List[List[str]]` (batch of pretokenized examples).")

only need to do once

@CLAassistant
Copy link

CLAassistant commented Aug 6, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@ZeyuChen ZeyuChen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contributions.

@ZeyuChen ZeyuChen merged commit 14d2c93 into PaddlePaddle:develop Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants