snipsco / snips-nlu-rs

Snips NLU rust implementation
https://snips.ai
Other
340 stars 56 forks source link

feature: lookup intent parser #121

Closed mattgathu closed 5 years ago

mattgathu commented 5 years ago

A new hashmap based intent parser.

The normalized/canonical form of an utterance serves as the key and the value is tuple of (intent_id, [vec_of_slots_ids])

Once a lookup is done at inference, the intent and slots are retrieved by matching their ids to a vec of intent names and a vec of slot names respectively.

This is the rust implementation of https://github.com/snipsco/snips-nlu/pull/759