Skip to content

igrigorik/language_detector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-Gram Language Detection in Ruby

For technical details about language detection, I recommend this paper:

Usage

require 'language_detector'

# using generated model (built from scratch)
d = LanguageDetector.new
p d.detect('this text is in English')

# using textcat n-gram model
d = LanguageDetector.new('tc')
p d.detect('this text is in English')

Thanks

About

ruby language detection library using n-gram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%