8. One Hot v.s Continue Value
It is better for
analysis
Very High
Dimension
9. Word Representation - One Hot Representation
Word One Hot Index
Apple 00000001
how 00000010
Are 00000100
You 00001000
I 00010000
Am 00100000
Fine 01000000
Book 10000000
How Are You ? I am Fine . Thank You
TF - Term Frequency
01111110
00001000
00010000
AND
You
I
00000000
10. Word Representation - Context Vector
P(Wi|Context)
Word 餐廳 浮潛 美食 旅遊 出國
沖繩 0.1 0.7 0.5 0.9 0.5
好吃 0.6 0.01 0.7 0.01 0.02
Okinawa 0.2 0.5 0.2 0.8 0.7
喔伊西 0.3 0.002 0.8 0.02 0.03
Similar
Similar
31. Word Cutting
● Word Cut Tool
○ Jieba : https://github.com/fxsjy/jieba
○ https://github.com/yanyiwu/cppjieba-serve
● C++ Jieba Server ↑ x 30 以上
● pip install jieba