USifSentenceEmbeddings

public final class USifSentenceEmbeddings implements SentenceEmbeddings

This implementation is based on the paper: Unsupervised Random Walk Sentence Embeddings: A Strong but Simple Baseline (https://www.aclweb.org/anthology/W18-3012/)

Constructors

Link copied to clipboard
public USifSentenceEmbeddings USifSentenceEmbeddings(    Embeddings tokenEmbeddings,     Map<String, Float> wordProb,     Integer randomWalkLength,     Integer numCommonDiscourseVector)

Functions

Link copied to clipboard
public NDArray<Float, D1> getSentenceEmbedding(List<String> sentence)
Link copied to clipboard
public List<NDArray<Float, D1>> getSentenceEmbeddings(List<List<String>> listOfSentences)
Link copied to clipboard
public Embeddings getTokenEmbeddings()

Properties

Link copied to clipboard
private final Embeddings tokenEmbeddings