---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_pool_get_text_feature_indices.md
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# get_text_feature_indices

<!-- source: en/_includes/work_src/reusage-python/get_text_features_indices__desc.md -->
Return the indices of text features found in the input data.
<!-- endsource: en/_includes/work_src/reusage-python/get_text_features_indices__desc.md -->


## Method call format {#method-call-format}

```
get_text_feature_indices()
```

## Type of return value {#type-of-return-value}

Type of return value

## Examples {#examples}

```python
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:
```no-highlight
[2]
```

