TextRole

class lightautoml.dataset.roles.TextRole(dtype=<class 'str'>, force_input=True)[source]

Bases: lightautoml.dataset.roles.ColumnRole

Text role.

__init__(dtype=<class 'str'>, force_input=True)[source]

Create text role with specific dtype and attrs.

Parameters
  • dtype (Union[Callable, str]) – Variable type.

  • force_input (bool) – Select a feature for training, regardless of the selector results.