Version: 3.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.