ДалееСледующее руководство
Встраивание слов
Языковой ИИ
РУКОВОДСТВО ПО ЯЗЫКУ ИИ
A bag-of-words representation records term counts or weights while ignoring word order.
Прослушайте это руководствоОзвучено ИИ · ~2 min
TF-IDF combines term frequency within a document with inverse document frequency across a collection; it is a sparse, vocabulary-based representation.
The Stanford Information Retrieval textbook describes bag-of-words vectors as vocabulary features that retain term counts but discard order. TF-IDF weights a term using within-document frequency and inverse document frequency, which lowers the contribution of collection-wide common terms. A document and a query can be represented as vectors; the textbook uses cosine similarity to score their alignment and illustrates TF-IDF weights. This is a lexical matching method: it does not represent word order or contextual meaning.
Paper concept: represent a document by vocabulary-term counts without word order.
Paper concept: downweight terms that occur in many documents using inverse document frequency.
Information Retrieval textbook example: compare query and document vectors with cosine similarity.
Illustrative: evaluate sparse lexical retrieval on a domain corpus and inspect which terms drive results.
Compare TF-IDF with other sparse and dense methods on the intended corpus using held-out relevance judgments. The method’s usefulness depends on vocabulary, query distribution, indexing, and evaluation; the cited sources do not establish that neural models dominate all NLP or that TF-IDF is universally difficult to beat.
Бесплатная рассылка
Три проверенных AI-истории каждое утро буднего дня, написанные простым английским. Бесплатно навсегда, без рекламы.
Одно электронное письмо каждый будний день. Отписаться в один клик. Мы никогда не продаем и не передаем ваш адрес.
Проверьте себя
Мгновенная обратная связь по каждому ответу и общий сертификат с проверяемым идентификатором после прохождения курса.
Поддержите бесплатное образование в области искусственного интеллекта. AI Understanding — это некоммерческая организация 501(c)(3). Никакой рекламы и платного доступа. Сделать пожертвование
A bag-of-words representation records term counts or weights while ignoring word order. TF-IDF combines term frequency within a document with inverse document frequency across a collection; it is a sparse, vocabulary-based representation.
Мешок слов сохраняет количество слов, но выбрасывает порядок слов и грамматическую структуру.
Обратная частота документов снижает вес терминов, которые встречаются во многих документах, поэтому такие общие слова, как «the», мало что дают.
При IDF = log(N/df), если df равно N, соотношение равно 1, а log(1) равно 0, что практически не дает этому термину никакого веса.
Вес TF-IDF — это частота термина, умноженная на обратную частоту документов.
The Stanford Information Retrieval textbook uses cosine similarity to score a query vector against document vectors, including TF-IDF-weighted vectors. This is a documented method, not a claim that every TF-IDF system uses it.
Продолжайте учиться
Другие руководства, выбранные по этой теме
ДалееСледующее руководство
Встраивание слов
Языковой ИИ