mvn package -DskipTests
Copy target/langdetect.jar to lib/langdetect.jar
java -jar lib/langdetect.jar --genprofile-text -l <language> <filename.txt>
Ex.:
java -jar lib/langdetect.jar --genprofile-text -l ne-ro data/ne-romanized.txt
Add created np-ro
profile to profiles
folder
java -jar lib/langdetect.jar --detectlang -d profiles data/ne-romanized.txt
python python/langdetect_example.py