snipsco / snips-nlu

Snips Python library to extract meaning from text
https://snips-nlu.readthedocs.io
Apache License 2.0
3.9k stars 512 forks source link

Multiple instances of the same processing units in one pipeline? #900

Open hicham17 opened 2 years ago

hicham17 commented 2 years ago

Question Hello I was wondering if it was possible to have for instance the follonwing pipeline

    {
        "unit_name": "deterministic_intent_parser",
        "ignore_stop_words": False ,
    },
    {
        "unit_name": "lookup_intent_parser",
        "ignore_stop_words": False
    },
    {
        "unit_name": "lookup_intent_parser",
        "ignore_stop_words": True
    },
    {
        "unit_name": "probabilistic_intent_parser",
        ....
   }

The idea is to check for an exact match first then a match with no stop words and last use the probabilistic model

Thanks in advance Hicham