Skip to content

Tokenizer breaks on single-string input #23

@ranieri

Description

@ranieri

ARM64Tokenizer mishandles a single input string. call() forwards straight to tokenize(), and tokenize() assumes texts is iterable over full samples; when given one string, it iterates character-by-character and json.loads() fails. That is a public API footgun because tokenizer callers normally expect both str and list[str] to work.

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