Skip to main content

Questions tagged [bag-of-words]

For questions about the bag-of-words model, which is often used in natural language processing and information retrieval.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Validating bundles of XMLs with inconsistent structure

The problem: We have a large number of XML bundles, and each bundle needs to meet certain criteria to be considered valid; specifically, certain values (or types of values) should belong to certain ...
SpaghettiM4ster's user avatar
0 votes
0 answers
17 views

Why does alphago only go to 19 numbers and 19 alphabet letter and not 26 numbers and 26 alphabet letters? Alphago max version?

I was just looking at alpha go videos on youtube that google deep mind sent me and was wondering on the versioning board and it reminded me of a more advanced version of chess game on windows ...
John Patrick Oldfield's user avatar
1 vote
0 answers
35 views

Is there a metric to compare BOW vs TFIDF results?

I am working on a document search task and have used Bag of Words (BOW) and TFIDF vectorization techniques. My observation after going through some sample searches are - Both of them seem to provide ...
Amit Pathak's user avatar
0 votes
2 answers
78 views

How to represent multi-label colours in one-hot encoding?

Say I want to predict the price of a gemstone based on its colour. I have two options: averaging over its colour on an RGB scale, or using its textual description. If I was to choose the latter, how ...
GeorgeWTrump's user avatar
0 votes
1 answer
650 views

Which data representation of text as input for NLP Deep Learning models?

I have been given a data set with 30.000 text documents (each text file is rather small with respect to its length and consists in most cases of around 20 sentences), which are labelled with 0 or 1. ...
MiFischer22's user avatar
1 vote
1 answer
95 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 ...
rocksNwaves's user avatar
2 votes
1 answer
181 views

What is the meaning of "continuous" in a continuous bag-of-words model?

The word continuous in mathematics is a property of either a set or a function that says that the underlying object has no discontinuity in the range mentioned. If the object is a set, then $[-1,1]$ ...
hanugm's user avatar
  • 3,990
2 votes
1 answer
180 views

How many parameter would there be in a logistic regression model used to classify reviews into "good" or "bad"?

Suppose we want to classify a review as good ($1$) or bad ($0$). We have a training data set of $10,000$ reviews. Also, suppose we have a vocabulary of $100,000$ words $w_1, \dots, w_{100,000}$. So ...
aiguy123's user avatar
8 votes
1 answer
197 views

Why are documents kept separated when training a text classifier?

Most of the literature considers text classification as the classification of documents. When using the bag-of-words and Bayesian classification, they usually use the statistic TF-IDF, where TF ...
freesoul's user avatar
  • 246