# Module: tfr.extension.premade

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/extension/premade/__init__.py) |

TensorFlow Ranking Premade Orbit Task Module.

> [!NOTE]
> **Note:** First - These APIs require These APS require the `tensorflow_models`package. You can install it with `pip install
> tf-models-official`. Second - Nothing under `tensorflow_ranking.extension.premade` is imported by default. To use these APIs import `premade` in your code: `import tensorflow_ranking.extension.premade`.

## Modules

[`tfrbert_task`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/tfrbert_task) module: TF-Ranking BERT task.

## Classes

[`class TFRBertConfig`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertConfig): The tf-ranking BERT task config.

[`class TFRBertDataConfig`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertDataConfig): Data config for TFR-BERT task.

[`class TFRBertDataLoader`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertDataLoader): A class to load dataset for TFR-BERT task.

[`class TFRBertModelBuilder`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertModelBuilder): Model builder for TFR-BERT models.

[`class TFRBertModelConfig`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertModelConfig): A TFR-BERT model configuration.

[`class TFRBertScorer`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertScorer): Univariate BERT-based scorer.

[`class TFRBertTask`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertTask): Task object for tf-ranking BERT.

## Type Aliases

[`TensorDict`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TensorDict)

[`TensorLike`](https://www.tensorflow.org/ranking/api_docs/python/tfr/keras/model/TensorLike)

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| DOCUMENT_ID | `'document_id'` |
| QUERY_ID | `'query_id'` |

<br />