Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🔤 Natural language detection for Elixir without AI

License

NotificationsYou must be signed in to change notification settings

minibikini/paasaa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions StatusCoverage StatusHex.pmHex.pm

Natural language detection for Elixir

API Documentation |Hex Package

Installation

Addpaasaa to your list of dependencies inmix.exs:

defdepsdo[{:paasaa,"~> 0.6.0"}]end

After you are done, runmix deps.get in your shell to fetch and compilePaasaa.

Usage

Detect a language:

iex>Paasaa.detect"Detect this!""eng"

Detect language and return a scored list of languages:

iex>Paasaa.all("Detect this!")[{"eng",1.0},{"sco",0.8675529295913343},{"nob",0.6065977351058591},{"swe",0.5923190546528804},...]

Benchmark

mix bench

Update Language Data

mix run script/generate_language_data.exs

Derivation

Paasaa is a derivative work fromFranc (JavaScript, MIT) byTitus Wormer.

License

MIT ©Egor Kislitsyn


[8]ページ先頭

©2009-2025 Movatter.jp