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

[Doc] Spanish translation of pad_truncation.md #27890

Merged

Conversation

aaronjimv
Copy link
Contributor

What does this PR do?

Add the Spanish version of pad_truncation.md to transformers/docs/source/es

Fix a typo in the table of en/pad_truncation.md

Fixes #15947

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@omarespejel @sgugger @osanseviero @stevhliu

@aaronjimv
Copy link
Contributor Author

Hello. I am open to any feedback.

Copy link
Member

@stevhliu stevhliu 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 also fixing the en version! Pinging @osanseviero for a quick review of the content :)

@aaronjimv
Copy link
Contributor Author

Hi @stevhliu, thanks!

Copy link
Contributor

@osanseviero osanseviero left a comment

Choose a reason for hiding this comment

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

Nice! I did a quick review and overall it looks good!

la primera oración de un par si se proporciona un par de secuencias (o un lote de pares de secuencias).
- `False` o `'do_not_truncate'`: no se aplica truncamiento. Este es el comportamiento predeterminado.

El argumento `max_length` controla la longitud del Padding y el Truncation. Puede ser un número entero o `None`, en cuyo caso se establecerá automáticamente en la longitud máxima que el modelo puede aceptar. Si el modelo no tiene una longitud máxima de entrada específica, se desactiva el Truncation o el Padding hasta `max_length`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would be consistent with calling it truncamiento o Truncation, same for padding.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @osanseviero, will be ok in this way?

El argumento max_length controla la longitud del Padding (relleno) y el Truncation (truncamiento). Puede ser un número entero o None, en cuyo caso se establecerá automáticamente en la longitud máxima que el modelo puede aceptar. Si el modelo no tiene una longitud máxima de entrada específica, se desactiva el Truncation o el Padding hasta max_length.

Copy link
Contributor

@osanseviero osanseviero Dec 7, 2023

Choose a reason for hiding this comment

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

Hi there! My feedback was that in some sections you use the word in English and others in Spanish. E.g.

  • line 23: "relleno"
  • 43: "Padding"
  • 45: padding
  • 19: padding
  • 25: "relleno"

My suggestion would be to only say "El relleno (tambien conocido como "Padding")" as you already do in line 19, and afterwards only say padding or relleno, but not both. Imo you can use "relleno" and just said padding when you're explicitly saying set the padding parameter or similar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I get it. Thanks.

@aaronjimv aaronjimv requested a review from osanseviero December 7, 2023 21:38
@aaronjimv
Copy link
Contributor Author

Hi @osanseviero, thanks for the help. Please let me know anything else.

@aaronjimv aaronjimv requested a review from stevhliu December 8, 2023 14:50
@stevhliu stevhliu merged commit d6c3a3f into huggingface:main Dec 8, 2023
8 checks passed
@aaronjimv aaronjimv deleted the Translate_to_es_pad_truncation.md branch December 8, 2023 23:03
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.

Tranformers documentation translation to Spanish
3 participants