It converts a sequence of words into a sequence of numerical identifier.
Vector of strings (tokens)
vector of strings (types)
Imagine we want to treat all words from the semantic category of animals in the same way. This function would allow the user to assign to different words, e.g, cat, dog or bird, the same identifier, e.g., 1. Note, words and wordCode need to have the same length.
It returns the vector of words but now converted to a numerical identifier, which corresponds to the associated wordCode.
Rick Dale (email@example.com)
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.