LittleYenMin / jieba-bot

NLP implement by Chinese segmentation and cosine-similarity
3 stars 0 forks source link

using cosine-similarity algorithm to get command type #8

Closed LittleYenMin closed 5 years ago

LittleYenMin commented 5 years ago

Cosine-similarity algorithm image

Reference: TF-IDF与余弦相似性的应用

LittleYenMin commented 5 years ago

I am considering use NumPy to implement the cosine-similarity algorithm. But It just about computes performance, so I leave a comment here and not use it.

Ref stackoverflow cosine-similarity

LittleYenMin commented 5 years ago

make jieba quiet

Ref: silent flag for initialize

dannypsnl commented 5 years ago

@LittleYenMin ask River to review again

dannypsnl commented 5 years ago

@YanHerChen any opinion? Send a approve review if you have no opinion so I could merge this PR