About 3,550,000 results
Open links in new tab
  1. What does Keras Tokenizer method exactly do? - Stack Overflow

    On occasion, circumstances require us to do the following: from keras.preprocessing.text import Tokenizer tokenizer = Tokenizer(num_words=my_max) Then, invariably, we chant this mantra: …

  2. How to do Tokenizer Batch processing? - HuggingFace

    Jun 7, 2023 · in the Tokenizer documentation from huggingface, the call fuction accepts List [List [str]] and says: text (str, List [str], List [List [str]], optional) — The sequence or batch of sequences to be …

  3. How to add new tokens to an existing Huggingface tokenizer?

    May 8, 2023 · # add the tokens to the tokenizer vocabulary tokenizer.add_tokens(list(new_tokens)) # add new, random embeddings for the new tokens model.resize_token_embeddings(len(tokenizer)) …

  4. Looking for a clear definition of what a "tokenizer", "parser" and ...

    A tokenizer breaks a stream of text into tokens, usually by looking for whitespace (tabs, spaces, new lines). A lexer is basically a tokenizer, but it usually attaches extra context to the tokens -- this token …

  5. OpenAI API: How do I count tokens before(!) I send an API request?

    Mar 21, 2023 · How do I count tokens before (!) I send an API request? As stated in the official OpenAI article: To further explore tokenization, you can use our interactive Tokenizer tool, which allows you …

  6. Unable to get the tokenizer of Gemma-3 - Stack Overflow

    Mar 22, 2025 · 3 I am trying to get the tokenizer using huggingface AutoTokenizer library, but I am unable to fetch, is there any other way to get it? Where I am doing wrong?

  7. Huggingface saving tokenizer - Stack Overflow

    Oct 27, 2020 · Make sure that: - './models/tokenizer/' is a correct model identifier listed on 'https://huggingface.co/models' - or './models/tokenizer/' is the correct path to a directory containing a …

  8. How to download punkt tokenizer in nltk? - Stack Overflow

    How to download punkt tokenizer in nltk? Asked 2 years, 2 months ago Modified 7 months ago Viewed 24k times

  9. python - TypeError in SFTTrainer Initialization: Unexpected Keyword ...

    Mar 31, 2025 · I tried passing tokenizer inside training_arguments, but that didn't work either. Question: Is SFTTrainer expecting the tokenizer to be handled differently in the latest versions of trl? How …

  10. python - AutoTokenizer.from_pretrained fails to load locally saved ...

    from transformers import AutoTokenizer, AutoConfig tokenizer = AutoTokenizer.from_pretrained('distilroberta-base') config = AutoConfig.from_pretrained('distilroberta …