LanguageDetector is a very simple to use text language detector which uses the Hierarchical Attention Networks (HAN) from the SimpleDNN library.
LanguageDetector is part of KotlinNLP.
Import with Maven
<dependency> <groupId>com.kotlinnlp</groupId> <artifactId>languagedetector</artifactId> <version>0.4.7</version> </dependency>
Try some examples of usage of LanguageDetector running the files in the
To run the examples you need datasets of test and training that you can find here
The trained model is all contained into a single class which provides simple dump() and load() methods to serialize it and afterwards load it.
This software is released under the terms of the Mozilla Public License, v. 2.0
We greatly appreciate any bug reports and contributions, which can be made by filing an issue or making a pull request through the github page.