Questions tagged [n-gram]

For questions about the concept of an n-gram in the context of natural language processing and other AI sub-fields.

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

Bag of Tricks: n-grams as additional features?

I've been playing with PyTorch's nn.EmbeddingBag for sentence classification for about a month. I've been doing some feature engineering, playing with different ...
0
votes
1answer
92 views

Why would adding all the possible embeddings be "worse" than using 1D-convolutions?

Suppose we are using word2vec and have embeddings of individual words $w_1, \dots, w_{10}$. Let's say we wanted to analyze $2$ grams or $3$ grams. Why would adding all the possible embeddings, $\binom{...