m3hrdadfi / typo-detector-distilbert-is

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: -1
30-day runs: -5
Model's Last Updated: June 27 2021
token-classification

Introduction of typo-detector-distilbert-is

Model Details of typo-detector-distilbert-is

Typo Detector For Icelandic 🇮🇸

Dataset Information

Synthetic data for this specific task.

Evaluation

The following tables summarize the scores obtained by model overall and per each class.

# precision recall f1-score support
TYPO 0.98954 0.967603 0.978448 43800.0
micro avg 0.98954 0.967603 0.978448 43800.0
macro avg 0.98954 0.967603 0.978448 43800.0
weighted avg 0.98954 0.967603 0.978448 43800.0
How to use

You use this model with Transformers pipeline for NER (token-classification).

Installing requirements
pip install transformers
Prediction using pipeline
import torch
from transformers import AutoConfig, AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline


model_name_or_path = "m3hrdadfi/typo-detector-distilbert-is"
config = AutoConfig.from_pretrained(model_name_or_path)
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
model = AutoModelForTokenClassification.from_pretrained(model_name_or_path, config=config)
nlp = pipeline('token-classification', model=model, tokenizer=tokenizer, aggregation_strategy="average")
sentences = [
"Páli, vini mínum, langaði að horfa á sjónnvarpið.",
"Leggir þciðursins eru þaktir fjöðrum til bað edravn fuglnn gekgn kuldanué .",
"Þar hitta þeir konu Björns og segir ovs :",
"Ingvar Sæmundsson ekgk rú sveitinni árið 2015 og etnbeitii sér að hinni þungarokkssvedt svnni Momentum .",
"Þar hitta þeir konu Björns og segir ovs :",
"Var hann síðaún hkluti af leikhópnum sem ferðaðist um Bandaríkin til að sýan söngleikinn ."
]

for sentence in sentences:
    typos = [sentence[r["start"]: r["end"]] for r in nlp(sentence)]

    detected = sentence
    for typo in typos:
        detected = detected.replace(typo, f'<i>{typo}</i>')

    print("   [Input]: ", sentence)
    print("[Detected]: ", detected)
    print("-" * 130)
Output: ```text [Input]: Páli, vini mínum, langaði að horfa á sjónnvarpið. [Detected]: Páli, vini mínum, langaði að horfa á sjónnvarpið .
[Input]: Leggir þciðursins eru þaktir fjöðrum til bað edravn fuglnn gekgn kuldanué . [Detected]: Leggir þciðursins eru þaktir fjöðrum til bað edravn fuglnn gekgn kuldanué .
[Input]: Þar hitta þeir konu Björns og segir ovs : [Detected]: Þar hitta þeir konu Björns og segir ovs :
[Input]: Ingvar Sæmundsson ekgk rú sveitinni árið 2015 og etnbeitii sér að hinni þungarokkssvedt svnni Momentum . [Detected]: Ingvar Sæmundsson ekgk rú sveitinni árið 2015 og etnbeitii sér að hinni þungarokkssvedt svnni Momentum .
[Input]: Þar hitta þeir konu Björns og segir ovs : [Detected]: Þar hitta þeir konu Björns og segir ovs :
[Input]: Var hann síðaún hkluti af leikhópnum sem ferðaðist um Bandaríkin til að sýan söngleikinn . [Detected]: Var hann síðaún hkluti af leikhópnum sem ferðaðist um Bandaríkin til að sýan söngleikinn .

## Questions?
Post a Github issue on the [TypoDetector Issues](https://github.com/m3hrdadfi/typo-detector/issues) repo.

Runs of m3hrdadfi typo-detector-distilbert-is on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
-5
30-day runs

More Information About typo-detector-distilbert-is huggingface.co Model

typo-detector-distilbert-is huggingface.co

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

typo-detector-distilbert-is huggingface.co Url

https://huggingface.co/m3hrdadfi/typo-detector-distilbert-is

m3hrdadfi typo-detector-distilbert-is online free

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

m3hrdadfi typo-detector-distilbert-is online free url in huggingface.co:

https://huggingface.co/m3hrdadfi/typo-detector-distilbert-is

typo-detector-distilbert-is install

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

typo-detector-distilbert-is install url in huggingface.co:

https://huggingface.co/m3hrdadfi/typo-detector-distilbert-is

Url of typo-detector-distilbert-is

typo-detector-distilbert-is huggingface.co Url

Provider of typo-detector-distilbert-is huggingface.co

m3hrdadfi
ORGANIZATIONS

Other API from m3hrdadfi

huggingface.co

Total runs: 35
Run Growth: 16
Growth Rate: 48.48%
Updated:August 11 2021
huggingface.co

Total runs: 2
Run Growth: -8
Growth Rate: -400.00%
Updated:April 03 2024