# Text encoding

CTranslate2 exposes high-level classes to run encoder-only models such as BERT. The main entrypoint is the [`Encoder`](python/ctranslate2.Encoder.rst) class.

```{tip}
See the {ref}`guides/transformers:bert` example in the Transformers guide which uses a BERT model for sequence classification.
```
