File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -490,13 +490,13 @@ log \frac{n_d}{\text{df}(d, t)} + 1 = log(1)+1 = 1`
490
490
Now, if we repeat this computation for the remaining 2 terms in the document,
491
491
we get
492
492
493
- :math: `\text {tf-idf}_{\text {term2 }} = 0 \times log(6 /1 )+1 = 0 `
493
+ :math: `\text {tf-idf}_{\text {term2 }} = 0 \times ( log(6 /1 )+1 ) = 0 `
494
494
495
- :math: `\text {tf-idf}_{\text {term3 }} = 1 \times log(6 /2 )+1 \approx 2.0986 `
495
+ :math: `\text {tf-idf}_{\text {term3 }} = 1 \times ( log(6 /2 )+1 ) \approx 2.0986 `
496
496
497
497
and the vector of raw tf-idfs:
498
498
499
- :math: `\text {tf-idf}_raw = [3 , 0 , 2.0986 ].`
499
+ :math: `\text {tf-idf}_{ \text {raw}} = [3 , 0 , 2.0986 ].`
500
500
501
501
502
502
Then, applying the Euclidean (L2) norm, we obtain the following tf-idfs
You can’t perform that action at this time.
0 commit comments