Skip to content

Standalone library and program for natural language classification.

License

Notifications You must be signed in to change notification settings

crodas/lingo-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lingo

N-Gram-Based natural language detection library.

Usage

Language detection

use lingo::Lingo;

fn main() {
    let textcat  = Lingo::new();
    let text     = "Hi there, this is a simple text written in what language?";
    let language = textcat.get_language(text).unwrap();

    println!("\"{}\" is written in \"{}\"", text, language);
}

Stopwords and Stemmers

Lingo provides stopwords and stemmers for some languages by wrapping third party libraries.

The usage is quite simple.

use lingo::Language;

fn main() {
    let stopwords = Language::English.stopwords()?;
    let stemmer   = Language::English.stemmer()?;
}

About

Standalone library and program for natural language classification.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages