Tag machine learning pipeline