Skip to content

sallesma/language-recognition

Repository files navigation

README

Language recognition based on an algorithm using Markov chains.

All the hard work of thinking had been made by Dat Tran and Dharmendra Sharma at the University of Canberra. You can read the paper I used there : http://staff.estem-uc.edu.au/html/DTran/Publications/P51479.pdf

Code status

Build Status Code Climate Coverage Status Dependency Status

Usage

Train

Using a task to fetch random articles on wikipedia:

rake auto_train_from_wikipedia en 3

where en is the locale and 3 the number or articles to fetch from wikipedia

Identify (deprecated: now uses html views)

Sending a GET request:

http://localhost:3000/identify.json?text=<text>

The server will answer with the locale

About

Language determination using markov chains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published