snipsco / snips-nlu-rs

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

Intents blacklist #112

Closed adrienball closed 5 years ago

adrienball commented 5 years ago

Description This PR introduces a new optional parameter to the parse API of the SnipsNluEngine object, which allows to blacklist intents:

impl SnipsNluEngine {
    pub fn parse(
        &self,
        input: &str,
        intents_whitelist: Option<Vec<&str>>,
        intents_blacklist: Option<Vec<&str>>,
    ) -> Result<IntentParserResult>;
}