Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Chinese #1

Open
mejinke opened this issue Mar 31, 2015 · 1 comment
Open

About Chinese #1

mejinke opened this issue Mar 31, 2015 · 1 comment

Comments

@mejinke
Copy link

mejinke commented Mar 31, 2015

Does not support the Chinese ?

@bbalet
Copy link

bbalet commented Mar 31, 2015

English speaking people are not very concerned by Unicode :) In the code sample provided, you see that he uses an ASCII string :

[]byte("this is a test phrase"),

However, the lib can support Unicode using go.text

simhash.Simhash(simhash.NewUnicodeWordFeatureSet(content, norm.NFKC))}

See this repo for a complete example : https://github.com/bbalet/gorelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants