get_text_feature_indices

Return the indices of text features found in the input data.

Method call format

get_text_feature_indices()

Type of return value

Type of return value

Examples

from catboost import Pool

data = [[1, 3, "Unthrifty loveliness"],
        [0, 4, "why dost thou spend"],
        [1, 7, "Upon thy self"],
        [6, 4, "thy beauty's legacy"]]

dataset = Pool(data, text_features=[2])

print(dataset.get_text_feature_indices())

The output of this example:

[2]