notice

This is documentation for Rasa Open Source Documentation v2.0.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.1.x).

Version: 2.0.x

rasa.shared.nlu.training_data.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.