snips-nlu icon indicating copy to clipboard operation
snips-nlu copied to clipboard

Multiple instances of the same processing units in one pipeline?

Open hicham17 opened this issue 3 years ago • 0 comments

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

hicham17 avatar Dec 24 '21 11:12 hicham17