Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bindings/python/py_src/tokenizers/pre_tokenizers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ class UnicodeScripts(PreTokenizer):
@final
class Whitespace(PreTokenizer):
"""
This pre-tokenizer splits on word boundaries according to the ``\w+|[^\w\s]+``
regex pattern. It splits on word characters or characters that aren't words or
whitespaces (punctuation such as hyphens, apostrophes, commas, etc.).
This pre-tokenizer splits on word boundaries. It splits on word characters
or characters that aren't words or whitespaces (punctuation such as hyphens,
apostrophes, commas, etc.).

Example::

Expand Down
6 changes: 3 additions & 3 deletions bindings/python/src/pre_tokenizers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ impl PyByteLevel {
}
}

/// This pre-tokenizer splits on word boundaries according to the ``\w+|[^\w\s]+``
/// regex pattern. It splits on word characters or characters that aren't words or
/// whitespaces (punctuation such as hyphens, apostrophes, commas, etc.).
/// This pre-tokenizer splits on word boundaries. It splits on word characters
/// or characters that aren't words or whitespaces (punctuation such as hyphens,
/// apostrophes, commas, etc.).
///
/// Example::
///
Expand Down