NVIDIA Generative AI LLMs Associate (NCA-GENL) · Free practice question 2 of 12
SentencePiece and raw-text tokenization
Cotterdale Translate is building one tokenizer for Japanese, Thai and English, and some of these languages do not separate words with spaces. Why is SentencePiece a common choice here?
- A.It trains on raw text and treats spaces as an ordinary symbol, with no word splitter
- B.It requires a dictionary of whole words for each language before training can begin
- C.It produces one token per sentence, which removes the need for subword units
- D.It only supports languages written in the Latin alphabet with spaces between words
Show answer and explanation
Correct answer: A. It trains on raw text and treats spaces as an ordinary symbol, with no word splitter
Why: SentencePiece trains subword models (BPE or unigram) on raw text and encodes spaces as a regular symbol, so it needs no pre-tokenization into words and the original text can be recovered exactly. That makes it well suited to multilingual models and languages without spaces. It does not need word dictionaries, is not limited to Latin scripts, and still produces subword tokens rather than whole sentences.
More free NVIDIA Generative AI LLMs Associate (NCA-GENL) questions
- Positional encoding in transformers
- Mean reciprocal rank for retrieval
- Box plots and the interquartile range
- Knowledge distillation into a smaller model
- Random search versus grid search
- Vector index storage estimate
- Disaggregated prefill and decode serving
- Counterfactual data augmentation for bias
- Red teaming before release
- Parameter-efficient fine-tuning methods
- Limiting generation length and stopping