Package com.londogard.nlp.embeddings.sentence

NLP currently supports two types of sentence embeddings, namely:

  1. AverageSentenceEmbeddings

  2. USifSentenceEmbeddings

Types

Link copied to clipboard
public final class AverageSentenceEmbeddings implements SentenceEmbeddings

Simply applies the average of vectors in sentence to build the sentence embedding.

Link copied to clipboard
public interface SentenceEmbeddings
Link copied to clipboard
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/)