cis-lmu / glotlid

huggingface.co
Total runs: 242.4K
24-hour runs: 0
7-day runs: 15.0K
30-day runs: 118.3K
Model's Last Updated: April 18 2024
text-classification

Introduction of glotlid

Model Details of glotlid

GlotLID

GlotLID

Description

GlotLID is a Fasttext language identification (LID) model that supports more than 2000 labels .

Latest: GlotLID is now updated to V3 . V3 supports 2102 labels (three-letter ISO codes with script). For more details on the supported languages and performance, as well as significant changes from previous versions, please refer to https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md .

How to use

Here is how to use this model to detect the language of a given text:

>>> import fasttext
>>> from huggingface_hub import hf_hub_download

# model.bin is the latest version always
>>> model_path = hf_hub_download(repo_id="cis-lmu/glotlid", filename="model.bin")
>>> model = fasttext.load_model(model_path)
>>> model.predict("Hello, world!")

If you are not a fan of huggingface_hub, then download the model directyly:

>>> ! wget https://huggingface.co/cis-lmu/glotlid/resolve/main/model.bin
>>> import fasttext

>>> model = fasttext.load_model("/path/to/model.bin")
>>> model.predict("Hello, world!")
License

The model is distributed under the Apache License, Version 2.0.

Version

We always maintain the previous version of GlotLID in our repository.

To access a specific version, simply append the version number to the filename .

  • For v1: model_v1.bin (introduced in the GlotLID paper and used in all experiments).
  • For v2: model_v2.bin (an edited version of v1, featuring more languages, and cleaned from noisy corpora based on the analysis of v1).
  • For v3: model_v3.bin (an edited version of v2, featuring more languages, excluding macro languages, further cleaned from noisy corpora and incorrect metadata labels based on the analysis of v2, supporting "zxx" and "und" series labels)

model.bin always refers to the latest version (v3).

References

If you use this model, please cite the following paper:

@inproceedings{
  kargaran2023glotlid,
  title={{GlotLID}: Language Identification for Low-Resource Languages},
  author={Kargaran, Amir Hossein and Imani, Ayyoob and Yvon, Fran{\c{c}}ois and Sch{\"u}tze, Hinrich},
  booktitle={The 2023 Conference on Empirical Methods in Natural Language Processing},
  year={2023},
  url={https://openreview.net/forum?id=dl4e3EBz5j}
}

Runs of cis-lmu glotlid on huggingface.co

242.4K
Total runs
0
24-hour runs
-1.2K
3-day runs
15.0K
7-day runs
118.3K
30-day runs

More Information About glotlid huggingface.co Model

glotlid huggingface.co

glotlid huggingface.co is an AI model on huggingface.co that provides glotlid's model effect (), which can be used instantly with this cis-lmu glotlid model. huggingface.co supports a free trial of the glotlid model, and also provides paid use of the glotlid. Support call glotlid model through api, including Node.js, Python, http.

cis-lmu glotlid online free

glotlid huggingface.co is an online trial and call api platform, which integrates glotlid's modeling effects, including api services, and provides a free online trial of glotlid, you can try glotlid online for free by clicking the link below.

cis-lmu glotlid online free url in huggingface.co:

https://huggingface.co/cis-lmu/glotlid

glotlid install

glotlid is an open source model from GitHub that offers a free installation service, and any user can find glotlid on GitHub to install. At the same time, huggingface.co provides the effect of glotlid install, users can directly use glotlid installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

glotlid install url in huggingface.co:

https://huggingface.co/cis-lmu/glotlid

Url of glotlid

glotlid huggingface.co Url

Provider of glotlid huggingface.co

cis-lmu
ORGANIZATIONS

Other API from cis-lmu

huggingface.co

Total runs: 1.2K
Run Growth: 568
Growth Rate: 48.80%
Updated:November 10 2023