Skip to main content
Essentially combines all of the following steps into one:
  • embed_text
  • extract_emoji
  • extract_entities
  • extract_hashtags
  • extract_keywords
  • extract_mentions
  • infer_sentiment
  • tokenize
Note that the step does not currently allow for detailed configuration of each of the extracted features. To do that, use any or all of the individual steps above.

Usage

The following examples show how the step can be used in a recipe.

Examples

Extract all text features with automatic language detection

Inputs & Outputs

The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name), datasets (ds or ds[["first_name", "last_name"]]) or models (referenced by name e.g. "churn-clf").
column[text]
required
A text column to extract n-grams from.
column[category]
An (optional) column identifying the languages of the corresponding texts. It is used to identify the correct model (spaCy) to use for each text. If the dataset doesn’t contain such a column yet, it can be created using the infer_language step. Ideally, languages should be expressed as two-letter ISO 639-1 language codes, such as “en”, “es” or “de” for English, Spanish or German respectively. We also detect fully spelled out names such as “english”, “German”, “allemande” etc., but it is not guaranteed that we will recognize all possible spellings correctly always, so ISO codes should be preferred.Alternatively, if all texts are in the same language, it can be identified with the lang parameter instead.
column[number]
required
column[list[number]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required
column[list[category]]
required

Configuration

The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e. step(..., {"param": "value", ...}) -> (output).

Parameters

This step doesn’t expect any specific parameters.