Skip to content

UTF-8 Tokenization #6

Description

@sajov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions