Skip to content

Can padding and/or Truncation be overridden using the library #30

@rmrbytes

Description

@rmrbytes

Hello:

In my use-case I wish to calculate the number of tokens for a particular string of text without padding or truncation. However, I find that the tokenizer.json may by default have set to true for both. Is there a way to programmatically override it before encoding a text using this library?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions