Binary Term Occurrence
Before asking how many times a word appears in a document, there is a cheaper question: did it appear at all? Binary term occurrence is the representation built entirely on that question.
What the vector looks like
Fix a vocabulary, then give each document a vector with one dimension per entry holding 1 if the word occurs anywhere in the document and 0 if it does not. Repetition is thrown away: a review saying terrible six times and one saying it once are identical in that dimension. In scikit-learn this is a single argument — CountVectorizer(binary=True) — and the same switch exists on the TF-IDF vectoriser.
When presence beats counting
Short texts are the clear case. In a tweet or a product title a second occurrence of a word carries almost no extra evidence, and raw counts hand disproportionate weight to whatever a verbose author repeated. Sentiment classifiers on movie reviews have long been reported to do as well on binary features as on counts. The Bernoulli naive Bayes model assumes this representation outright, and it treats absence as evidence too — a vocabulary word missing from the document actively lowers a class score, which multinomial naive Bayes never does.
Why it matters
Binary occurrence is also the quantity behind other weighting schemes: document frequency, and therefore IDF, is binary occurrence summed down a column of the document-term matrix. Choose it when frequency is noise; avoid it on long documents or topic work, where collapsing counts to a flag discards most of what distinguishes one text from another.
Binary term occurrence represents a document as a vector of ones and zeros recording whether each vocabulary word is present, discarding how many times it appears. It suits short texts and classifiers where repetition adds no evidence, and it is the representation assumed by Bernoulli naive Bayes. Summed across a corpus it yields document frequency, the basis of IDF. Where frequency carries real signal, collapsing counts to a flag throws that signal away.
Think of a checklist rather than a tally. Instead of noting that a restaurant review used the word cold four times, you simply tick a box: the word cold is in there somewhere. That tick is all the computer keeps.
Binary term occurrence turns a piece of text into a long row of ticks and blanks, one for every word the system knows about. It exists because in short texts — a tweet, a headline, a product title — saying a word twice rarely means twice as much, and counting can mislead. The tick list is smaller, faster, and surprisingly hard to beat for jobs like spam filtering. Its blind spot is obvious: it cannot tell real emphasis from a passing mention.