autointent.modules.regexp.RegExp#
- class autointent.modules.regexp.RegExp#
Bases:
autointent.modules.abc.Module
Regular expressions based intent detection module.
- classmethod from_context(context)#
Initialize from context.
- Parameters:
context (autointent.Context)
- Return type:
- fit(intents)#
Fit the model.
- predict(utterances)#
Predict intents for utterances.
- predict_with_metadata(utterances)#
Predict intents for utterances with metadata.
- score(context, split, metric_fn)#
Calculate metric on test set and return metric value.
- Parameters:
context (autointent.Context) – Context to score
metric_fn (autointent.metrics.regexp.RegexpMetricFn) – Metric function
split (Literal['validation', 'test'])
- Return type:
- clear_cache()#
Clear cache.
- Return type:
None
- get_assets()#
Get assets.
- Return type: