No. Vocabulary indices do not form a semantic scale. Similarity calculations require suitable representations, such as embeddings trained for the relationship you want to measure.
Why do token IDs not contain the meanings of words?
Can I calculate word similarity by subtracting token IDs?
The answer
More FAQs in Why do token IDs not contain the meanings of words?
Integer IDs provide compact, consistent indices for selecting embeddings and identifying output vocabulary items. They connect text units with the model’s numerical components efficiently.
Changing only the input ID can select a different token. A complete, consistent remapping of vocabulary and model lookup structures is a different operation.
Still have questions?
Browse all our FAQs or reach out to our support team
Want to upskill yourself?
Your learning library
Small steps. Big possibilities.
Find your next course. Build something great.