indexers.hooks.default_hooks.preprocessing.CapitalisationStandardisingHook

indexers.hooks.default_hooks.preprocessing.CapitalisationStandardisingHook(
    method='lower',
    colname='query',
)

A pre-processing hook to handle upper-/lower-/sentence-/title-casing.

Attributes

Name Type Description
method str The method used to apply the selected capitalisation transformation to each string value. Must be one of “lower”, “upper”, “sentence”, or “title”.
colname str | list[str] The column name or list of column names to transform.