word2vec.list() works with with list of characters vectors. It serializes tokens character vectors to integer vectors in R. This can be done differently but this is the simplest approach. We have to think what to do if x is already a list of integers.
word2vec.list()
works with with list of characters vectors. It serializes tokens character vectors to integer vectors in R. This can be done differently but this is the simplest approach. We have to think what to do ifx
is already a list of integers.