Tongue ulcers take longer time than mouth ulcers to heal. You can put anesthetic + antiseptic oral solutions on affected areas to pain relief and to prevent infection. Also eat less spicy food and food which causes irritation of the ulcer. Mire the ulcer is irritated more time it will take to heal. Also you can antacid tablets to reduce gastric acidity which helps in healing of the ulcer.