Closed hasandiwan closed 1 month ago
@hasandiwan Sorry for my late response. The code you have posted should work just fine. I have no idea why you are getting an exception there. It is most probably related to your own code and environment which you use the language detector in.
According to the documentation -- https://javadoc.io/doc/com.github.pemistahl/lingua/0.3.0/com/github/pemistahl/lingua/api/LanguageDetector.html -- and the project's README -- https://github.com/pemistahl/lingua/blob/main/README.md -- the code below should return a Language object:
... but it throws a
java.util.concurrent.ExecutionException
.