Embeddings

public interface Embeddings

Functions

Link copied to clipboard
public Boolean contains(String word)

Check if the word has an embedding.

Link copied to clipboard
public Float cosineDistance(String w1, String w2)
Link copied to clipboard
public Float euclideanDistance(String w1, String w2)
Link copied to clipboard
public abstract Character getDelimiter()
Link copied to clipboard
public abstract Integer getDimensions()
Link copied to clipboard
public abstract Map<String, NDArray<Float, D1>> getEmbeddings()
Link copied to clipboard
public abstract Path getFilePath()
Link copied to clipboard
public abstract Set<String> getVocabulary()
Link copied to clipboard
public List<NDArray<Float, D1>> traverseVectors(List<String> words)
Link copied to clipboard
public List<NDArray<Float, D1>> traverseVectorsOrNull(List<String> words)
Link copied to clipboard
public NDArray<Float, D1> vector(String word)

Fetches Embedding if it exists for word

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard