First, you define the goal. Then you collect the data in accordance with your task. Afterward, your dataset is labeled by data annotation specialists. Finally, you use the annotated dataset to train your machine learning model.