<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/nlp/serving/serving_modules.py) |

Serving export modules for TF Model Garden NLP models.

## Classes

[`class MaskedLM`](https://www.tensorflow.org/api_docs/python/tfm/nlp/serving_modules/MaskedLM): The export module for the Bert Pretrain (MaskedLM) task.

[`class QuestionAnswering`](https://www.tensorflow.org/api_docs/python/tfm/nlp/serving_modules/QuestionAnswering): The export module for the question answering task.

[`class SentencePrediction`](https://www.tensorflow.org/api_docs/python/tfm/nlp/serving_modules/SentencePrediction): The export module for the sentence prediction task.

[`class Tagging`](https://www.tensorflow.org/api_docs/python/tfm/nlp/serving_modules/Tagging): The export module for the tagging task.

[`class Translation`](https://www.tensorflow.org/api_docs/python/tfm/nlp/serving_modules/Translation): The export module for the translation task.

## Functions

[`features_to_int32(...)`](https://www.tensorflow.org/api_docs/python/tfm/nlp/serving_modules/features_to_int32): Converts tf.int64 features to tf.int32, keep other features the same.