เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Manual calculations

Given the following 4 cleaned statements below:

t1 <- "government turtle blue ocean"
t2 <- "crazy turtle ocean waves"
t3 <- "massive turtle washington lion"
t4 <- "lion pride massive ocean dinner"

The \(TFIDF\) for "lion" in t4 can be calculated as follows:

  • \(TF = \frac{1}{5} = 0.2\)

  • \(IDF = log(4/2) = 0.693\)

  • \(TFIDF = .2 * 0.693\)

Calculate the \(TF\) and \(IDF\) weights for 'turtle' in t1. Use \(IDF = log \frac{N}{n_{t}}\)

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Introduction to Natural Language Processing in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำจริง

เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา

เริ่มแบบฝึกหัด