mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 18:26:37 +08:00
nit
This commit is contained in:
parent
34c9cfcc3c
commit
eb81e97963
@ -158,9 +158,6 @@ class BPEStreamingDetokenizer(StreamingDetokenizer):
|
|||||||
_space_matches = (".", "?", "!", ",", "n't", "'m", "'s", "'ve", "'re")
|
_space_matches = (".", "?", "!", ",", "n't", "'m", "'s", "'ve", "'re")
|
||||||
|
|
||||||
def __init__(self, tokenizer):
|
def __init__(self, tokenizer):
|
||||||
|
|
||||||
self.tokenizer = tokenizer
|
|
||||||
|
|
||||||
self.clean_spaces = tokenizer.clean_up_tokenization_spaces
|
self.clean_spaces = tokenizer.clean_up_tokenization_spaces
|
||||||
|
|
||||||
# Extract the tokens in a list from id to text
|
# Extract the tokens in a list from id to text
|
||||||
|
Loading…
Reference in New Issue
Block a user