Java – is there a utility or API to convert SMS shorthand abbreviations into correct sentences?

I'm creating an Android application that will convert SMS text messages through the TTS API

This works when the text is written in proper English, but when the text message contains emoticons and abbreviations, these will be output from the TTS engine as a garbled world

Regular expressions can be used to strip emoticons from text, but is there an API that can detect abbreviations and replace them with complete words?

For example, can you intelligently determine this:

Hi, how are you two days?

become

Hello, how are you today?

Solution

There is an online service, it – http://www.lingo2word.com/translate.php

Check what they use – or activate it as a web service from your app

the other one: http://www.dtxtrapp.com/index.htm

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>