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

UTF-8 Tokenization #6

Open
sajov opened this issue Apr 3, 2018 · 2 comments
Open

UTF-8 Tokenization #6

sajov opened this issue Apr 3, 2018 · 2 comments

Comments

@sajov
Copy link

sajov commented Apr 3, 2018

Hi,

i have issues with German Umlaute so i guess it depends on
const { WordTokenizer } = require('natural/lib/natural/tokenizers/regexp_tokenizer');

see classifier response

{ "text": "what's the weather in münchen on the weekend", "tokens": [ "what", "s", "the", "weather", "in", "m", "nchen", "on", "the", "weekend" ], "stems": [ "what", "s", "the", "weather", "in", "m", "nchen", "on", "the", "weekend" ], "_id": "f382b318585747e8f72a6c11af37e88e", "action": { "type": "weather", "tags": { "location": [ 5, 6 ], "time": null }, "text": "what's the weather in münchen on the weekend", "_id": 2 }, "confidence": 0.8600388765335083, "extracted": { "location": "m nchen", "time": null }, "reference": { "type": "weather", "tags": { "location": [ 5, 5 ], "time": [ 6, 8 ] }, "text": "what's the weather in vancouver on the weekend", "_id": 2 } }

I have not compared other tokenizer
Any suggestions?
thanks

@daffl
Copy link
Member

daffl commented Apr 3, 2018

Very odd, I thought I tested it in my mother tongue and it worked. I'll write a test and dig a little more into why that would be an issue.

@sajov
Copy link
Author

sajov commented Apr 3, 2018

great to hear :-)
thanks

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