Generalization Of Machine Learning Model And Various Applications In Nlp And Vision