Token Classification
Transformers
langident
language-identification
multilingual
historical
impresso
custom_code
Run this model with HF Jobs
Run impresso-project/language-identifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/impresso-project/language-identifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/impresso-project/language-identifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use impresso-project/language-identifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impresso-project/language-identifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="impresso-project/language-identifier", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("impresso-project/language-identifier", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Simon Clematide commited on
Commit ·
f6eb553
1
Parent(s): d367806
Change names from lang-detect to langident for consistency.
Browse filesFiles changed (3)
123456781 unmodified line101112131415161718192021{"_name_or_path": "impresso-project/impresso-langident","architectures": ["LangDetectorModel"],"filename": "langident-v1.0.0.bin","attention_probs_dropout_prob": 0.1,"auto_map": {1 unmodified line"AutoModelForTokenClassification": "modeling_lang.LangDetectorModel"},"custom_pipelines": {"lang-detect": {"impl": "lang_detect.LangDetectionPipeline","pt": "AutoModelForTokenClassification"}},"model_type": "lang_detect","torch_dtype": "float32","transformers_version": "4.49.0"}1234561 unmodified line8910111213141516171819{"_name_or_path": "impresso-project/impresso-langident","architectures": ["LangDetectorModel"],"filename": "langident-v1.0.0.bin","attention_probs_dropout_prob": 0.1,"auto_map": {1 unmodified line"AutoModelForTokenClassification": "modeling_lang.LangDetectorModel"},"custom_pipelines": {"langident": {"impl": "langident.LangDetectionPipeline","pt": "AutoModelForTokenClassification"}},"model_type": "langident","torch_dtype": "float32","transformers_version": "4.49.0"}
2 unmodified lines34567892 unmodified linesclass ImpressoConfig(PretrainedConfig):model_type = "lang_detect"def __init__(self,2 unmodified lines34567892 unmodified linesclass ImpressoConfig(PretrainedConfig):model_type = "langident"def __init__(self,
config.json+4-6
configuration_lang.py+1-1
lang_detect.py → langident.pyRenamed