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
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