CertKeen

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?

  1. A.It trains on raw text and treats spaces as an ordinary symbol, with no word splitter
  2. B.It requires a dictionary of whole words for each language before training can begin
  3. C.It produces one token per sentence, which removes the need for subword units
  4. 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