Package com. londogard. nlp. embeddings. sentence
NLP currently supports two types of sentence embeddings, namely:
AverageSentenceEmbeddings
USifSentenceEmbeddings
Types
Link copied to clipboard
public final class AverageSentenceEmbeddings implements SentenceEmbeddings
Content copied to clipboard
Simply applies the average of vectors in sentence to build the sentence embedding.
Link copied to clipboard
Link copied to clipboard
This implementation is based on the paper: Unsupervised Random Walk Sentence Embeddings: A Strong but Simple Baseline (https://www.aclweb.org/anthology/W18-3012/)