notice
This is documentation for Rasa & Rasa Pro Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).
Version: 2.x
rasa.utils.features
Features Objects
class Features()
Stores the features produces by any featurizer.
is_sparse
| is_sparse() -> bool
Checks if features are sparse or not.
Returns:
True, if features are sparse, false otherwise.
is_dense
| is_dense() -> bool
Checks if features are dense or not.
Returns:
True, if features are dense, false otherwise.
combine_with_features
| combine_with_features(additional_features: Optional["Features"]) -> None
Combine the incoming features with this instance's features.
Arguments:
additional_features
- additional features to add
Returns:
Combined features.