NLP Model Deployment and input transformation

Hello! Hope you’re all well
I want to deploy a PyTorch NLP model using FastAPI, and via the web app interface, the user has to submit a text as input
I’m aware that the text needs to be transformed before passing it to the model for prediction, but is word embeddings generation of the submitted text also a step that needs to be done during this transformation?

Thank you in advance :pray: