public class GetEmbeddingsRoute extends Object implements spark.Route
[4 bytes] [num words bytes] [rest]
for each input word,
embedding dimensions 1 byte is allocated the encoded vector
(length of the with 0 or 1 to indicate bytes, concatenated
embedding vectors) that the respective
word was (not) in
the vocabulary
Where the embedding vector encoding follows the format described in
EmbeddingServerUtils.convertVectorToByteArray(double[]).| Constructor and Description |
|---|
GetEmbeddingsRoute(de.julielab.ml.embeddings.spi.WordEmbedding embedding) |
public GetEmbeddingsRoute(de.julielab.ml.embeddings.spi.WordEmbedding embedding)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.