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

support Japanese grammar #28

Open
iostreamatlab opened this issue Nov 8, 2018 · 2 comments
Open

support Japanese grammar #28

iostreamatlab opened this issue Nov 8, 2018 · 2 comments

Comments

@iostreamatlab
Copy link

iostreamatlab commented Nov 8, 2018

Good code.

require 'words_counted'

counter = WordsCounted.count("私の见た寿司の神の映画、だから私も恋に落ちて寿司")
puts counter.token_frequency

then ,puts:

だから私も恋に落ちて寿司
1
私の见た寿司の神の映画
1
[Finished in 0.1s]

@abitdodgy
Copy link
Owner

Thanks for the feature request. I'll have to have a look to see how the tokeniser works again. But I don't think it should be an issue. If you use a regular expression, can't you tokenise the string as desired?

@iostreamatlab
Copy link
Author

Thank you for your reply, I know that there are some simple python regular libraries, so ruby must have, thank you.

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