Python Artificial Intelligence Projects for Beginners


term frequency inverse document frequency



Download 16,12 Mb.
Pdf ko'rish
bet38/65
Sana02.01.2022
Hajmi16,12 Mb.
#311589
1   ...   34   35   36   37   38   39   40   41   ...   65
Bog'liq
Python Artificial Intelligence Projects for Beginners - Get up and running with 8 smart and exciting AI applications by Joshua Eckroth (z-lib.org)

term frequency inverse document frequency
 (
TF-IDF
), which
measures how common a word or term is in the document. 


Applications for Comment Classification
Chapter 3
[ 51 ]
We use logarithms to ensure that long documents with many words are very similar to
short documents with similar words. TF-IDF has two components that multiply, that is
when TF is high, the result is high but IDF measures how common the word is among all
the documents and that will affect the common words. So, a word that is common in other
documents will have a low score, regardless of how many times it appeared.
If a document has a low score which means the word appeared rarely and if the score is
high it means the word appears frequently in the document. But if the word is quite
common in all the documents then it becomes irrelevant to score on this document. It is
anyhow considered to have low score. This shows that the formula for TF-IDF exhibits in a
way we want our model to be. The following graph explains our theory:
We will be using the bag-of-words method to detect whether YouTube comments are spam
or .

Download 16,12 Mb.

Do'stlaringiz bilan baham:
1   ...   34   35   36   37   38   39   40   41   ...   65




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish