Skip to content

some code part in documentation was translated to japanese #26895

@rajveer43

Description

@rajveer43

System Info

https://moon-ci-docs.huggingface.co/docs/transformers/pr_1/ja/preprocessing#pad

some code part in documentation was mistakenly translated to Japanese.

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

Expected behavior

batch_sentences = [
    "でもセカンドブレックファーストはどうなるの?",
    "セカンドブレックファーストについては知らないと思う、ピップ。",
    "イレブンジーズはどうなの?",
]
encoded_input = tokenizer(batch_sentences, padding=True)
print(encoded_input)

should be

batch_sentences = [
    "でもセカンドブレックファーストはどうなるの?", #english text
    "セカンドブレックファーストについては知らないと思う、ピップ。", #english text
    "イレブンジーズはどうなの?", #english text
]
encoded_input = tokenizer(batch_sentences, padding=True)
print(encoded_input)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions