---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_catboostranker_get_text_feature_indices.md
  - href: en/concepts/python-reference_catboostranker_get_text_feature_indices.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

<!-- source: en/_includes/work_src/reusage-python/model__get_text_feature_indices.md -->
# get_text_feature_indices

Return the indices of text features used by the model. The method is available after fitting or loading a model.

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

```python
get_text_feature_indices()
```

## Type of return value {#output-format}

list of integer feature indices.

To recover the type of every feature, call this method together with
`get_cat_feature_indices()` and `get_embedding_feature_indices()`. Feature indices that are
not returned by any of these methods are numerical.
<!-- endsource: en/_includes/work_src/reusage-python/model__get_text_feature_indices.md -->
