Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minibikini/paasaa
🔤 Natural language detection for Elixir
https://github.com/minibikini/paasaa
detect-language elixir language language-detection nlp
Last synced: 10 days ago
JSON representation
🔤 Natural language detection for Elixir
- Host: GitHub
- URL: https://github.com/minibikini/paasaa
- Owner: minibikini
- License: mit
- Created: 2016-08-31T15:17:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T03:32:10.000Z (6 months ago)
- Last Synced: 2024-09-25T12:14:32.863Z (about 1 month ago)
- Topics: detect-language, elixir, language, language-detection, nlp
- Language: Elixir
- Homepage:
- Size: 924 KB
- Stars: 114
- Watchers: 3
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Natural language detection for Elixir. (Natural Language Processing (NLP))
- fucking-awesome-elixir - Paasaa - Natural language detection for Elixir. (Natural Language Processing (NLP))
- awesome-elixir - Paasaa - Natural language detection for Elixir. (Natural Language Processing (NLP))
README
# Paasaa
[![Actions Status](https://github.com/minibikini/paasaa/workflows/CI/badge.svg)](https://github.com/minibikini/paasaa/actions)
[![Coverage Status](https://coveralls.io/repos/github/minibikini/paasaa/badge.svg?branch=master)](https://coveralls.io/github/minibikini/paasaa?branch=master)
[![Hex.pm](https://img.shields.io/hexpm/v/paasaa.svg?maxAge=2592000)](https://hex.pm/packages/paasaa)
[![Hex.pm](https://img.shields.io/hexpm/l/paasaa.svg?maxAge=2592000)](https://hex.pm/packages/paasaa)Natural language detection for Elixir
[API Documentation] | [Hex Package]
## Installation
Add `paasaa` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:paasaa, "~> 0.6.0"}]
end
```After you are done, run `mix deps.get` in your shell to fetch and compile **Paasaa**.
## Usage
Detect a language:
```elixir
iex> Paasaa.detect "Detect this!"
"eng"
```Detect language and return a scored list of languages:
```elixir
iex> Paasaa.all("Detect this!")
[
{"eng", 1.0},
{"sco", 0.8675529295913343},
{"nob", 0.6065977351058591},
{"swe", 0.5923190546528804},
...
]
```## Benchmark
```shell
mix bench
```## Update Language Data
```shell
mix run script/generate_language_data.exs
```## Derivation
**Paasaa** is a derivative work from [Franc][] (JavaScript, MIT) by [Titus Wormer].
## License
[MIT] © [Egor Kislitsyn]
[Api Documentation]: https://hexdocs.pm/paasaa/Paasaa.html
[Hex Package]: https://hex.pm/packages/paasaa
[Franc]: https://github.com/wooorm/franc/
[Titus Wormer]: http://wooorm.com/
[mit]: LICENSE
[Egor Kislitsyn]: https://github.com/minibikini