Example of the calculation for the comment vectors
| Word | Dimension | ||||
|---|---|---|---|---|---|
| 1 | … | 298 | 299 | 300 | |
| Comment 1 | |||||
| Lovely | 0.045 | −0.011 | −0.003 | 0.004 | |
| Smile | 0.154 | −0.051 | 0.071 | −0.035 | |
| Average | 0.0995a | −0.031 | 0.034 | −0.0155 | |
| Vector of comment 1 = [0.0995, …, −0.031, 0.034, −0.0155] a(0.045 + 0.154)/2 = 0.0995 | |||||
| Comment 2 | |||||
| Refreshing | 0.004 | 0.014 | 0.027 | −0.004 | |
| Flavor | −0.003 | 0.117 | −0.028 | −0.017 | |
| Average | 0.0005 | 0.0655 | −0.0005 | −0.0105 | |
| Word | Dimension | ||||
|---|---|---|---|---|---|
| 1 | … | 298 | 299 | 300 | |
| Comment 1 | |||||
| Lovely | 0.045 | −0.011 | −0.003 | 0.004 | |
| Smile | 0.154 | −0.051 | 0.071 | −0.035 | |
| Average | 0.0995a | −0.031 | 0.034 | −0.0155 | |
| Vector of comment 1 = [0.0995, …, −0.031, 0.034, −0.0155] | |||||
| Comment 2 | |||||
| Refreshing | 0.004 | 0.014 | 0.027 | −0.004 | |
| Flavor | −0.003 | 0.117 | −0.028 | −0.017 | |
| Average | 0.0005 | 0.0655 | −0.0005 | −0.0105 | |
Vector of comment 2 = [0.0005, …, 0.0655, −0.0005, −0.0105]
Note(s): The word vectors of “lovely,” “smile,” “refreshing” and “flavor” are taken from fastText and each word vector has 300 dimensions