For my app I'd like to, given a text , detect its language (the ISO code and a chance for example). I'd like to know if there is some kind of web service or java library for doing so.
Thanks in advance
To identify the language of a string, call LanguageIdentification. getClient() to get an instance of LanguageIdentifier , and then pass the string to the identifyLanguage() method of LanguageIdentifier .
Google Translate - If you need to determine the language of an entire web page or an online document, paste the URL of that page in the Google Translate box and choose “Detect Language” as the source language.
Java is technically not supported on Android XResearchsource , meaning that you can't run JAR files or visit websites with Java content. Luckily there are a few ways around these restrictions, depending on what you want to do.
Auto-detecting the natural language of a text is relatively easy using a bigram analysis algorithm. You can either implement it by yourself or simply use some existing library, e.g. Language-Detection project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With