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

Update train_tokenizer_example.py #180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smit23patel
Copy link

  1. Introduced a train_and_test_tokenizer function to encapsulate the logic for training and testing each tokenizer. This reduces code duplication and makes it easier to maintain.

  2. The function takes the tokenizer class, configuration class, and data as parameters, allowing for a more modular approach.

Pull Request

Description

Changes

Related Issues

Checklist

  • I have read and followed the project's contributing guidelines.
  • My code follows the project's coding style.
  • I have tested my changes thoroughly.
  • I have updated the documentation if necessary.
  • All existing tests pass.
  • I have added new tests to cover my changes.
  • My changes do not introduce any new warnings or errors.

Additional Comments

Reviewer Instructions

Author's Note

1. Introduced a train_and_test_tokenizer function to encapsulate the logic for training and testing each tokenizer. This reduces code duplication and makes it easier to maintain.

2. The function takes the tokenizer class, configuration class, and data as parameters, allowing for a more modular approach.
@smit23patel
Copy link
Author

any update if it good please merge it

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.

1 participant