Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 590 Bytes

README.rdoc

File metadata and controls

20 lines (14 loc) · 590 Bytes

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