Get vector embeddings of keys. If out of vocabulary, their embeddings would be generated at random.
Arguments
- conn
a Magnitude connection.
- q
a character vector.
- normalized
logical; whether or not vector embeddings should be normalized?
- ngram_beg
integer. If supplied, the function gets out-of-vocabulary vectors by using character ngrams of which length are `ngram_end - ngram_beg`.
- ngram_end
integer.
- topn
integer used for making out-of-vocabulary vectors.