Hello, there are various reasons for ulcers to occur on tongue. Like
vitamin deficiencies, stress, sharp tooth, etc .. I would like to suggest you to get diagnosed in the first place ... Get to know the cause and treated. U can try incorporating more green veggies in your diet , citrus fruits, nuts, sesame seeds ,etc rich in vitamin B 12 and Vit C to help improve your condition.
Next Steps
if any sharp tooth tips hurting you visit your dentist to help you.
Health Tips
if stress could be the cause then try to calm down and reduce your stress levels following various physical activities and excercises .