fasttext-langdetect


Namefasttext-langdetect JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://github.com/zafercavdar/fasttext-langdetect.git
Summary80x faster and 95% accurate language identification with Fasttext
upload_time2022-12-12 21:22:08
maintainer
docs_urlNone
authorZafer Cavdar
requires_python
licenseMIT
keywords fasttext langdetect language detection language identification
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # fasttext-langdetect
This library is a wrapper for the language detection model trained on fasttext by Facebook. For more information, please visit: https://fasttext.cc/docs/en/language-identification.html


## Supported languages
```
af als am an ar arz as ast av az azb ba bar bcl be bg bh bn bo bpy br bs bxr ca cbk ce cebckb co cs cv cy da de diq dsb dty dv el eml en eo es et eu fa fi fr frr fy ga gd gl gn gom gu gv he hi hif hr hsb ht hu hy ia id ie ilo io is it ja jbo jv ka kk km kn ko krc ku kv kw ky la lb lez li lmo lo lrc lt lv mai mg mhr min mk ml mn mr mrj ms mt mwl my myv mzn nah nap nds ne new nl nn no oc or os pa pam pfl pl pms pnb ps pt qu rm ro ru rue sa sah sc scn sco sd sh si sk sl so sq sr su sv sw ta te tg th tk tl tr tt tyv ug uk ur uz vec vep vi vls vo wa war wuu xal xmf yi yo yue zh
```

## Install
```
pip install fasttext-langdetect
```

## Usage
`detect` method expects UTF-8 data. `low_memory` option enables getting predictions with the compressed version of the fasttext model by sacrificing the accuracy a bit.

```
from ftlangdetect import detect

result = detect(text="Bugün hava çok güzel", low_memory=False)
print(result)
> {'lang': 'tr', 'score': 1.00}

result = detect(text="Bugün hava çok güzel", low_memory=True)
print(result)
> {'lang': 'tr', 'score': 0.9982126951217651}
```

## Benchmark
We benchmarked the fasttext model against [cld2](https://github.com/CLD2Owners/cld2), [langid](https://github.com/saffsd/langid.py), and [langdetect](https://github.com/Mimino666/langdetect) on Wili-2018 dataset.

|                          | fasttext    | langid      | langdetect  | cld2        |
|--------------------------|-------------|-------------|-------------|-------------|
| Average time (ms) | 0,158273381 | 1,726618705 | 12,44604317 | **0,028776978** |
| 139 langs - not weighted   | 76,8        | 61,6        | 37,6        | **80,8**        |
| 139 langs - pop weighted | **95,5**        | 93,1        | 86,6        | 92,7        |
| 44 langs - not weighted    | **93,3**        | 89,2        | 81,6        | 91,5        |
| 44 langs - pop weighted   | **96,6**        | 94,8        | 89,4        | 93,4        |

- `pop weighted` means recall for each language is multipled by [its number of speakers](https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers).
- 139 languages = all languages with ISO 639-1 2-letter code
- 44 languages = top 44 languages spoken in the world


#### Recall per language
| lang                    | cld2  | fasttext | langdetect | langid |
|-------------------------|-------|----------|------------|--------|
| Afrikaans               | 0,94  | 0,918    | 0,992      | 0,966  |
| Albanian                | 0,958 | 0,966    | 0,964      | 0,954  |
| Amharic                 | 0,976 | 0,982    | 0          | 0,982  |
| Arabic                  | 0,994 | 0,998    | 0,998      | 0,996  |
| Aragonese               | 0     | 0,43     | 0          | 0,788  |
| Armenian                | 0,966 | 0,972    | 0          | 0,968  |
| Assamese                | 0,946 | 0,956    | 0          | 0,14   |
| Avar                    | 0     | 0,626    | 0          | 0      |
| Aymara                  | 0,596 | 0        | 0          | 0      |
| Azerbaijani             | 0,97  | 0,988    | 0          | 0,984  |
| Bashkir                 | 0,97  | 0,97     | 0          | 0      |
| Basque                  | 0,978 | 0,99     | 0          | 0,962  |
| Belarusian              | 0,94  | 0,97     | 0          | 0,964  |
| Bengali                 | 0,898 | 0,922    | 0,904      | 0,942  |
| Bhojpuri                | 0,716 | 0,15     | 0          | 0      |
| Bokmål                  | 0,852 | 0,966    | 0,976      | 0,95   |
| Bosnian                 | 0,422 | 0,108    | 0          | 0,054  |
| Breton                  | 0,946 | 0,974    | 0          | 0,976  |
| Bulgarian               | 0,892 | 0,964    | 0,964      | 0,942  |
| Burmese                 | 0,998 | 0,998    | 0          | 0      |
| Catalan                 | 0,882 | 0,95     | 0,93       | 0,928  |
| Central Khmer           | 0,876 | 0,878    | 0          | 0,876  |
| Chechen                 | 0     | 0,99     | 0          | 0      |
| Chuvash                 | 0     | 0,96     | 0          | 0      |
| Cornish                 | 0     | 0,792    | 0          | 0      |
| Corsican                | 0,88  | 0,016    | 0          | 0      |
| Croatian                | 0,688 | 0,806    | 0,982      | 0,932  |
| Czech                   | 0,978 | 0,986    | 0,984      | 0,982  |
| Danish                  | 0,886 | 0,958    | 0,95       | 0,896  |
| Dhivehi                 | 0,996 | 0,998    | 0          | 0      |
| Dutch                   | 0,9   | 0,978    | 0,968      | 0,97   |
| English                 | 0,992 | 1        | 0,998      | 0,986  |
| Esperanto               | 0,936 | 0,978    | 0          | 0,948  |
| Estonian                | 0,918 | 0,952    | 0,948      | 0,932  |
| Faroese                 | 0,912 | 0        | 0          | 0,618  |
| Finnish                 | 0,988 | 0,998    | 0,998      | 0,994  |
| French                  | 0,946 | 0,996    | 0,99       | 0,992  |
| Galician                | 0,89  | 0,912    | 0          | 0,93   |
| Georgian                | 0,974 | 0,976    | 0          | 0,976  |
| German                  | 0,958 | 0,984    | 0,978      | 0,978  |
| Guarani                 | 0,968 | 0,728    | 0          | 0      |
| Gujarati                | 0,932 | 0,932    | 0,93       | 0,932  |
| Haitian Creole          | 0,988 | 0,536    | 0          | 0,99   |
| Hausa                   | 0,976 | 0        | 0          | 0      |
| Hebrew                  | 0,994 | 0,996    | 0,998      | 0,998  |
| Hindi                   | 0,982 | 0,984    | 0,982      | 0,972  |
| Hungarian               | 0,96  | 0,988    | 0,968      | 0,986  |
| Icelandic               | 0,984 | 0,996    | 0          | 0,996  |
| Ido                     | 0     | 0,76     | 0          | 0      |
| Igbo                    | 0,798 | 0        | 0          | 0      |
| Indonesian              | 0,88  | 0,946    | 0,958      | 0,836  |
| Interlingua             | 0,27  | 0,688    | 0          | 0      |
| Interlingue             | 0,198 | 0,192    | 0          | 0      |
| Irish                   | 0,968 | 0,978    | 0          | 0,984  |
| Italian                 | 0,866 | 0,948    | 0,932      | 0,936  |
| Japanese                | 0,97  | 0,986    | 0,98       | 0,986  |
| Javanese                | 0     | 0,864    | 0          | 0,938  |
| Kannada                 | 0,998 | 0,998    | 0,998      | 0,998  |
| Kazakh                  | 0,978 | 0,992    | 0          | 0,916  |
| Kinyarwanda             | 0,86  | 0        | 0          | 0,44   |
| Kirghiz                 | 0,974 | 0,99     | 0          | 0,408  |
| Komi                    | 0     | 0,544    | 0          | 0      |
| Korean                  | 0,986 | 0,99     | 0,988      | 0,99   |
| Kurdish                 | 0     | 0,972    | 0          | 0,976  |
| Lao                     | 0,84  | 0,842    | 0          | 0,85   |
| Latin                   | 0,778 | 0,864    | 0          | 0,854  |
| Latvian                 | 0,98  | 0,992    | 0,992      | 0,99   |
| Limburgan               | 0     | 0,324    | 0          | 0      |
| Lingala                 | 0,85  | 0        | 0          | 0      |
| Lithuanian              | 0,96  | 0,976    | 0,974      | 0,97   |
| Luganda                 | 0,952 | 0        | 0          | 0      |
| Luxembourgish           | 0,864 | 0,894    | 0          | 0,93   |
| Macedonian              | 0,88  | 0,984    | 0,982      | 0,974  |
| Malagasy                | 0,99  | 0,99     | 0          | 0,988  |
| Malay                   | 0,896 | 0,586    | 0          | 0,39   |
| Malayalam               | 0,988 | 0,988    | 0,988      | 0,988  |
| Maltese                 | 0,962 | 0,966    | 0          | 0,964  |
| Manx                    | 0,972 | 0,294    | 0          | 0      |
| Maori                   | 0,994 | 0        | 0          | 0      |
| Marathi                 | 0,958 | 0,966    | 0,964      | 0,942  |
| Modern Greek            | 0,99  | 0,992    | 0,99       | 0,992  |
| Mongolian               | 0,964 | 0,994    | 0          | 0,996  |
| Navajo                  | 0     | 0        | 0          | 0      |
| Nepali (macrolanguage)  | 0,96  | 0,98     | 0,978      | 0,922  |
| Northern Sami           | 0     | 0        | 0          | 0,866  |
| Norwegian Nynorsk       | 0,94  | 0,79     | 0          | 0,796  |
| Occitan                 | 0,66  | 0,48     | 0          | 0,724  |
| Oriya                   | 0,96  | 0,958    | 0          | 0,96   |
| Oromo                   | 0,956 | 0        | 0          | 0      |
| Ossetian                | 0     | 0,938    | 0          | 0      |
| Panjabi                 | 0,994 | 0,994    | 0,994      | 0,994  |
| Persian                 | 0,992 | 0,998    | 0,996      | 0,998  |
| Polish                  | 0,982 | 0,998    | 0,998      | 0,992  |
| Portuguese              | 0,908 | 0,956    | 0,946      | 0,952  |
| Pushto                  | 0,938 | 0,922    | 0          | 0,754  |
| Quechua                 | 0,926 | 0,808    | 0          | 0,852  |
| Romanian                | 0,932 | 0,986    | 0,984      | 0,984  |
| Romansh                 | 0,934 | 0,328    | 0          | 0      |
| Russian                 | 0,728 | 0,986    | 0,984      | 0,988  |
| Sanskrit                | 0,964 | 0,976    | 0          | 0      |
| Sardinian               | 0     | 0,01     | 0          | 0      |
| Scottish Gaelic         | 0,964 | 0,942    | 0          | 0      |
| Serbian                 | 0,942 | 0,946    | 0          | 0,902  |
| Serbo-Croatian          | 0     | 0,402    | 0          | 0      |
| Shona                   | 0,844 | 0        | 0          | 0      |
| Sindhi                  | 0,978 | 0,982    | 0          | 0      |
| Sinhala                 | 0,962 | 0,962    | 0          | 0,962  |
| Slovak                  | 0,964 | 0,974    | 0,982      | 0,97   |
| Slovene                 | 0,876 | 0,966    | 0,968      | 0,946  |
| Somali                  | 0,924 | 0,696    | 0,956      | 0      |
| Spanish                 | 0,894 | 0,986    | 0,976      | 0,98   |
| Standard Chinese        | 0,946 | 0,984    | 0,746      | 0,978  |
| Sundanese               | 0,91  | 0,854    | 0          | 0      |
| Swahili (macrolanguage) | 0,924 | 0,92     | 0,938      | 0,934  |
| Swedish                 | 0,872 | 0,994    | 0,992      | 0,986  |
| Tagalog                 | 0,928 | 0,972    | 0,974      | 0,964  |
| Tajik                   | 0,82  | 0,85     | 0          | 0      |
| Tamil                   | 0,992 | 0,992    | 0,992      | 0,994  |
| Tatar                   | 0,978 | 0,984    | 0          | 0      |
| Telugu                  | 0,958 | 0,958    | 0,958      | 0,96   |
| Thai                    | 0,988 | 0,988    | 0,988      | 0,988  |
| Tibetan                 | 0,986 | 0,992    | 0          | 0      |
| Tongan                  | 0,968 | 0        | 0          | 0      |
| Tswana                  | 0,928 | 0        | 0          | 0      |
| Turkish                 | 0,968 | 0,986    | 0,982      | 0,976  |
| Turkmen                 | 0,94  | 0,936    | 0          | 0      |
| Uighur                  | 0,978 | 0,986    | 0          | 0,964  |
| Ukrainian               | 0,97  | 0,988    | 0,986      | 0,986  |
| Urdu                    | 0,86  | 0,958    | 0,89       | 0,896  |
| Uzbek                   | 0,984 | 0,99     | 0          | 0      |
| Vietnamese              | 0,978 | 0,986    | 0,984      | 0,984  |
| Volapük                 | 0,994 | 0,982    | 0          | 0,986  |
| Walloon                 | 0     | 0,664    | 0          | 0,98   |
| Welsh                   | 0,98  | 0,992    | 0,992      | 0,984  |
| Western Frisian         | 0,888 | 0,956    | 0          | 0      |
| Wolof                   | 0,926 | 0        | 0          | 0      |
| Xhosa                   | 0,928 | 0        | 0          | 0,912  |
| Yiddish                 | 0,956 | 0,958    | 0          | 0      |
| Yoruba                  | 0,75  | 0,262    | 0          | 0      |


## References
[1] A. Joulin, E. Grave, P. Bojanowski, T. Mikolov, [Bag of Tricks for Efficient Text Classification](https://arxiv.org/abs/1607.01759)

```
@article{joulin2016bag,
  title={Bag of Tricks for Efficient Text Classification},
  author={Joulin, Armand and Grave, Edouard and Bojanowski, Piotr and Mikolov, Tomas},
  journal={arXiv preprint arXiv:1607.01759},
  year={2016}
}
```

[2] A. Joulin, E. Grave, P. Bojanowski, M. Douze, H. Jégou, T. Mikolov, [FastText.zip: Compressing text classification models](https://arxiv.org/abs/1612.03651)

```
@article{joulin2016fasttext,
  title={FastText.zip: Compressing text classification models},
  author={Joulin, Armand and Grave, Edouard and Bojanowski, Piotr and Douze, Matthijs and J{\'e}gou, H{\'e}rve and Mikolov, Tomas},
  journal={arXiv preprint arXiv:1612.03651},
  year={2016}
}
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zafercavdar/fasttext-langdetect.git",
    "name": "fasttext-langdetect",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "fasttext,langdetect,language detection,language identification",
    "author": "Zafer Cavdar",
    "author_email": "zafercavdar@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/b1/b1/8fa4bc80f4d33be39f017b7e9096ed846748bbc360e6d53b68c0286b6763/fasttext-langdetect-1.0.4.tar.gz",
    "platform": null,
    "description": "# fasttext-langdetect\nThis library is a wrapper for the language detection model trained on fasttext by Facebook. For more information, please visit: https://fasttext.cc/docs/en/language-identification.html\n\n\n## Supported languages\n```\naf als am an ar arz as ast av az azb ba bar bcl be bg bh bn bo bpy br bs bxr ca cbk ce cebckb co cs cv cy da de diq dsb dty dv el eml en eo es et eu fa fi fr frr fy ga gd gl gn gom gu gv he hi hif hr hsb ht hu hy ia id ie ilo io is it ja jbo jv ka kk km kn ko krc ku kv kw ky la lb lez li lmo lo lrc lt lv mai mg mhr min mk ml mn mr mrj ms mt mwl my myv mzn nah nap nds ne new nl nn no oc or os pa pam pfl pl pms pnb ps pt qu rm ro ru rue sa sah sc scn sco sd sh si sk sl so sq sr su sv sw ta te tg th tk tl tr tt tyv ug uk ur uz vec vep vi vls vo wa war wuu xal xmf yi yo yue zh\n```\n\n## Install\n```\npip install fasttext-langdetect\n```\n\n## Usage\n`detect` method expects UTF-8 data. `low_memory` option enables getting predictions with the compressed version of the fasttext model by sacrificing the accuracy a bit.\n\n```\nfrom ftlangdetect import detect\n\nresult = detect(text=\"Bug\u00fcn hava \u00e7ok g\u00fczel\", low_memory=False)\nprint(result)\n> {'lang': 'tr', 'score': 1.00}\n\nresult = detect(text=\"Bug\u00fcn hava \u00e7ok g\u00fczel\", low_memory=True)\nprint(result)\n> {'lang': 'tr', 'score': 0.9982126951217651}\n```\n\n## Benchmark\nWe benchmarked the fasttext model against [cld2](https://github.com/CLD2Owners/cld2), [langid](https://github.com/saffsd/langid.py), and [langdetect](https://github.com/Mimino666/langdetect) on Wili-2018 dataset.\n\n|                          | fasttext    | langid      | langdetect  | cld2        |\n|--------------------------|-------------|-------------|-------------|-------------|\n| Average time (ms) | 0,158273381 | 1,726618705 | 12,44604317 | **0,028776978** |\n| 139 langs - not weighted   | 76,8        | 61,6        | 37,6        | **80,8**        |\n| 139 langs - pop weighted | **95,5**        | 93,1        | 86,6        | 92,7        |\n| 44 langs - not weighted    | **93,3**        | 89,2        | 81,6        | 91,5        |\n| 44 langs - pop weighted   | **96,6**        | 94,8        | 89,4        | 93,4        |\n\n- `pop weighted` means recall for each language is multipled by [its number of speakers](https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers).\n- 139 languages = all languages with ISO 639-1 2-letter code\n- 44 languages = top 44 languages spoken in the world\n\n\n#### Recall per language\n| lang                    | cld2  | fasttext | langdetect | langid |\n|-------------------------|-------|----------|------------|--------|\n| Afrikaans               | 0,94  | 0,918    | 0,992      | 0,966  |\n| Albanian                | 0,958 | 0,966    | 0,964      | 0,954  |\n| Amharic                 | 0,976 | 0,982    | 0          | 0,982  |\n| Arabic                  | 0,994 | 0,998    | 0,998      | 0,996  |\n| Aragonese               | 0     | 0,43     | 0          | 0,788  |\n| Armenian                | 0,966 | 0,972    | 0          | 0,968  |\n| Assamese                | 0,946 | 0,956    | 0          | 0,14   |\n| Avar                    | 0     | 0,626    | 0          | 0      |\n| Aymara                  | 0,596 | 0        | 0          | 0      |\n| Azerbaijani             | 0,97  | 0,988    | 0          | 0,984  |\n| Bashkir                 | 0,97  | 0,97     | 0          | 0      |\n| Basque                  | 0,978 | 0,99     | 0          | 0,962  |\n| Belarusian              | 0,94  | 0,97     | 0          | 0,964  |\n| Bengali                 | 0,898 | 0,922    | 0,904      | 0,942  |\n| Bhojpuri                | 0,716 | 0,15     | 0          | 0      |\n| Bokm\u00e5l                  | 0,852 | 0,966    | 0,976      | 0,95   |\n| Bosnian                 | 0,422 | 0,108    | 0          | 0,054  |\n| Breton                  | 0,946 | 0,974    | 0          | 0,976  |\n| Bulgarian               | 0,892 | 0,964    | 0,964      | 0,942  |\n| Burmese                 | 0,998 | 0,998    | 0          | 0      |\n| Catalan                 | 0,882 | 0,95     | 0,93       | 0,928  |\n| Central Khmer           | 0,876 | 0,878    | 0          | 0,876  |\n| Chechen                 | 0     | 0,99     | 0          | 0      |\n| Chuvash                 | 0     | 0,96     | 0          | 0      |\n| Cornish                 | 0     | 0,792    | 0          | 0      |\n| Corsican                | 0,88  | 0,016    | 0          | 0      |\n| Croatian                | 0,688 | 0,806    | 0,982      | 0,932  |\n| Czech                   | 0,978 | 0,986    | 0,984      | 0,982  |\n| Danish                  | 0,886 | 0,958    | 0,95       | 0,896  |\n| Dhivehi                 | 0,996 | 0,998    | 0          | 0      |\n| Dutch                   | 0,9   | 0,978    | 0,968      | 0,97   |\n| English                 | 0,992 | 1        | 0,998      | 0,986  |\n| Esperanto               | 0,936 | 0,978    | 0          | 0,948  |\n| Estonian                | 0,918 | 0,952    | 0,948      | 0,932  |\n| Faroese                 | 0,912 | 0        | 0          | 0,618  |\n| Finnish                 | 0,988 | 0,998    | 0,998      | 0,994  |\n| French                  | 0,946 | 0,996    | 0,99       | 0,992  |\n| Galician                | 0,89  | 0,912    | 0          | 0,93   |\n| Georgian                | 0,974 | 0,976    | 0          | 0,976  |\n| German                  | 0,958 | 0,984    | 0,978      | 0,978  |\n| Guarani                 | 0,968 | 0,728    | 0          | 0      |\n| Gujarati                | 0,932 | 0,932    | 0,93       | 0,932  |\n| Haitian Creole          | 0,988 | 0,536    | 0          | 0,99   |\n| Hausa                   | 0,976 | 0        | 0          | 0      |\n| Hebrew                  | 0,994 | 0,996    | 0,998      | 0,998  |\n| Hindi                   | 0,982 | 0,984    | 0,982      | 0,972  |\n| Hungarian               | 0,96  | 0,988    | 0,968      | 0,986  |\n| Icelandic               | 0,984 | 0,996    | 0          | 0,996  |\n| Ido                     | 0     | 0,76     | 0          | 0      |\n| Igbo                    | 0,798 | 0        | 0          | 0      |\n| Indonesian              | 0,88  | 0,946    | 0,958      | 0,836  |\n| Interlingua             | 0,27  | 0,688    | 0          | 0      |\n| Interlingue             | 0,198 | 0,192    | 0          | 0      |\n| Irish                   | 0,968 | 0,978    | 0          | 0,984  |\n| Italian                 | 0,866 | 0,948    | 0,932      | 0,936  |\n| Japanese                | 0,97  | 0,986    | 0,98       | 0,986  |\n| Javanese                | 0     | 0,864    | 0          | 0,938  |\n| Kannada                 | 0,998 | 0,998    | 0,998      | 0,998  |\n| Kazakh                  | 0,978 | 0,992    | 0          | 0,916  |\n| Kinyarwanda             | 0,86  | 0        | 0          | 0,44   |\n| Kirghiz                 | 0,974 | 0,99     | 0          | 0,408  |\n| Komi                    | 0     | 0,544    | 0          | 0      |\n| Korean                  | 0,986 | 0,99     | 0,988      | 0,99   |\n| Kurdish                 | 0     | 0,972    | 0          | 0,976  |\n| Lao                     | 0,84  | 0,842    | 0          | 0,85   |\n| Latin                   | 0,778 | 0,864    | 0          | 0,854  |\n| Latvian                 | 0,98  | 0,992    | 0,992      | 0,99   |\n| Limburgan               | 0     | 0,324    | 0          | 0      |\n| Lingala                 | 0,85  | 0        | 0          | 0      |\n| Lithuanian              | 0,96  | 0,976    | 0,974      | 0,97   |\n| Luganda                 | 0,952 | 0        | 0          | 0      |\n| Luxembourgish           | 0,864 | 0,894    | 0          | 0,93   |\n| Macedonian              | 0,88  | 0,984    | 0,982      | 0,974  |\n| Malagasy                | 0,99  | 0,99     | 0          | 0,988  |\n| Malay                   | 0,896 | 0,586    | 0          | 0,39   |\n| Malayalam               | 0,988 | 0,988    | 0,988      | 0,988  |\n| Maltese                 | 0,962 | 0,966    | 0          | 0,964  |\n| Manx                    | 0,972 | 0,294    | 0          | 0      |\n| Maori                   | 0,994 | 0        | 0          | 0      |\n| Marathi                 | 0,958 | 0,966    | 0,964      | 0,942  |\n| Modern Greek            | 0,99  | 0,992    | 0,99       | 0,992  |\n| Mongolian               | 0,964 | 0,994    | 0          | 0,996  |\n| Navajo                  | 0     | 0        | 0          | 0      |\n| Nepali (macrolanguage)  | 0,96  | 0,98     | 0,978      | 0,922  |\n| Northern Sami           | 0     | 0        | 0          | 0,866  |\n| Norwegian Nynorsk       | 0,94  | 0,79     | 0          | 0,796  |\n| Occitan                 | 0,66  | 0,48     | 0          | 0,724  |\n| Oriya                   | 0,96  | 0,958    | 0          | 0,96   |\n| Oromo                   | 0,956 | 0        | 0          | 0      |\n| Ossetian                | 0     | 0,938    | 0          | 0      |\n| Panjabi                 | 0,994 | 0,994    | 0,994      | 0,994  |\n| Persian                 | 0,992 | 0,998    | 0,996      | 0,998  |\n| Polish                  | 0,982 | 0,998    | 0,998      | 0,992  |\n| Portuguese              | 0,908 | 0,956    | 0,946      | 0,952  |\n| Pushto                  | 0,938 | 0,922    | 0          | 0,754  |\n| Quechua                 | 0,926 | 0,808    | 0          | 0,852  |\n| Romanian                | 0,932 | 0,986    | 0,984      | 0,984  |\n| Romansh                 | 0,934 | 0,328    | 0          | 0      |\n| Russian                 | 0,728 | 0,986    | 0,984      | 0,988  |\n| Sanskrit                | 0,964 | 0,976    | 0          | 0      |\n| Sardinian               | 0     | 0,01     | 0          | 0      |\n| Scottish Gaelic         | 0,964 | 0,942    | 0          | 0      |\n| Serbian                 | 0,942 | 0,946    | 0          | 0,902  |\n| Serbo-Croatian          | 0     | 0,402    | 0          | 0      |\n| Shona                   | 0,844 | 0        | 0          | 0      |\n| Sindhi                  | 0,978 | 0,982    | 0          | 0      |\n| Sinhala                 | 0,962 | 0,962    | 0          | 0,962  |\n| Slovak                  | 0,964 | 0,974    | 0,982      | 0,97   |\n| Slovene                 | 0,876 | 0,966    | 0,968      | 0,946  |\n| Somali                  | 0,924 | 0,696    | 0,956      | 0      |\n| Spanish                 | 0,894 | 0,986    | 0,976      | 0,98   |\n| Standard Chinese        | 0,946 | 0,984    | 0,746      | 0,978  |\n| Sundanese               | 0,91  | 0,854    | 0          | 0      |\n| Swahili (macrolanguage) | 0,924 | 0,92     | 0,938      | 0,934  |\n| Swedish                 | 0,872 | 0,994    | 0,992      | 0,986  |\n| Tagalog                 | 0,928 | 0,972    | 0,974      | 0,964  |\n| Tajik                   | 0,82  | 0,85     | 0          | 0      |\n| Tamil                   | 0,992 | 0,992    | 0,992      | 0,994  |\n| Tatar                   | 0,978 | 0,984    | 0          | 0      |\n| Telugu                  | 0,958 | 0,958    | 0,958      | 0,96   |\n| Thai                    | 0,988 | 0,988    | 0,988      | 0,988  |\n| Tibetan                 | 0,986 | 0,992    | 0          | 0      |\n| Tongan                  | 0,968 | 0        | 0          | 0      |\n| Tswana                  | 0,928 | 0        | 0          | 0      |\n| Turkish                 | 0,968 | 0,986    | 0,982      | 0,976  |\n| Turkmen                 | 0,94  | 0,936    | 0          | 0      |\n| Uighur                  | 0,978 | 0,986    | 0          | 0,964  |\n| Ukrainian               | 0,97  | 0,988    | 0,986      | 0,986  |\n| Urdu                    | 0,86  | 0,958    | 0,89       | 0,896  |\n| Uzbek                   | 0,984 | 0,99     | 0          | 0      |\n| Vietnamese              | 0,978 | 0,986    | 0,984      | 0,984  |\n| Volap\u00fck                 | 0,994 | 0,982    | 0          | 0,986  |\n| Walloon                 | 0     | 0,664    | 0          | 0,98   |\n| Welsh                   | 0,98  | 0,992    | 0,992      | 0,984  |\n| Western Frisian         | 0,888 | 0,956    | 0          | 0      |\n| Wolof                   | 0,926 | 0        | 0          | 0      |\n| Xhosa                   | 0,928 | 0        | 0          | 0,912  |\n| Yiddish                 | 0,956 | 0,958    | 0          | 0      |\n| Yoruba                  | 0,75  | 0,262    | 0          | 0      |\n\n\n## References\n[1] A. Joulin, E. Grave, P. Bojanowski, T. Mikolov, [Bag of Tricks for Efficient Text Classification](https://arxiv.org/abs/1607.01759)\n\n```\n@article{joulin2016bag,\n  title={Bag of Tricks for Efficient Text Classification},\n  author={Joulin, Armand and Grave, Edouard and Bojanowski, Piotr and Mikolov, Tomas},\n  journal={arXiv preprint arXiv:1607.01759},\n  year={2016}\n}\n```\n\n[2] A. Joulin, E. Grave, P. Bojanowski, M. Douze, H. J\u00e9gou, T. Mikolov, [FastText.zip: Compressing text classification models](https://arxiv.org/abs/1612.03651)\n\n```\n@article{joulin2016fasttext,\n  title={FastText.zip: Compressing text classification models},\n  author={Joulin, Armand and Grave, Edouard and Bojanowski, Piotr and Douze, Matthijs and J{\\'e}gou, H{\\'e}rve and Mikolov, Tomas},\n  journal={arXiv preprint arXiv:1612.03651},\n  year={2016}\n}\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "80x faster and 95% accurate language identification with Fasttext",
    "version": "1.0.4",
    "split_keywords": [
        "fasttext",
        "langdetect",
        "language detection",
        "language identification"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d3bf91bbfa3e95a26933031f87ae46e1",
                "sha256": "ace3ae85002098fe7cc14cb9db48c3f6b93209cc968e4028907865bd9527c618"
            },
            "downloads": -1,
            "filename": "fasttext-langdetect-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d3bf91bbfa3e95a26933031f87ae46e1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6806,
            "upload_time": "2022-12-12T21:22:08",
            "upload_time_iso_8601": "2022-12-12T21:22:08.777714Z",
            "url": "https://files.pythonhosted.org/packages/b1/b1/8fa4bc80f4d33be39f017b7e9096ed846748bbc360e6d53b68c0286b6763/fasttext-langdetect-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-12 21:22:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "zafercavdar",
    "github_project": "fasttext-langdetect.git",
    "lcname": "fasttext-langdetect"
}
        
Elapsed time: 0.02013s