-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fd5780
commit cb97282
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Dev Problem of the Day | ||
### NLP Tokenizer | ||
|
||
For machine learning roles, companies often check your fundamentals, specifically for NLP (natural language purposes), and the interviewer may ask you about your understanding of the fundamentals. So today, we are going to cover one of those fundamental topics, which is tokenizerms can easily process. Token is a way to numerically represent a word. | ||
|
||
So, what is a tokenizer?? | ||
The tokeniser is the first step after data cleaning, it is used for converting a text or sentence into smaller parts, known as tokens, which machine learning algorithms can easily process. Token is a way to numerically represent a word. | ||
|
||
### Resources | ||
- [Tokenizers - Hugging Face](https://huggingface.co/learn/nlp-course/chapter2/4) | ||
- [Understanding BPE and Tokenization Algorithms - Hugging Face](https://huggingface.co/learn/nlp-course/chapter6/1) | ||
[Entire Chapter 6] | ||
|
||
This resource contains detailed discussions, videos, and examples related to tokenizers. | ||
|
||
### Tips | ||
- Understand what tokenizer is and then learn about the subword tokenization algorithm. | ||
- Understand BPE (Byte Pair Encoding Tokenization), as it is currently used by GPT-2 and many LLMs. | ||
- Go also through Fast Tokenizer, Word Piece Tokenizer, and Unigram Tokenizer. | ||
- Then finally, learn how to build your own tokenizer. |