Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MaskedLMs is a repository that contains masked language models for Indian languages. These models are designed to predict missing words in a sentence. The models currently support English , Hinglish Languages

Notifications You must be signed in to change notification settings

SRDdev/MaskedLMs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

MaskedLM

MaskedLM is a pre-training technique used in Natural Language Processing (NLP) for deep-learning models like Transformers. It is a variant of language modeling where a portion of the input text is masked, and the model is trained to predict the masked tokens based on the context provided by the unmasked tokens.

Models

  1. EngMaskedLM

  2. HingMaskedLM

Inference

Load model

from transformers import AutoTokenizer, AutoModelForMaskedLM, 

tokenizer = AutoTokenizer.from_pretrained("SRDdev/HingMaskedLM")
model = AutoModelForMaskedLM.from_pretrained("SRDdev/HingMaskedLM")

Build pipeline

from transformers import pipeline

fill = pipeline('fill-mask', model=model, tokenizer=tokenizer)
fill(f'please {fill.tokenizer.mask_token} ko cancel kardo')

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Citations

@citation{ HingMaskedLM,
  author = {Shreyas Dixit},
  year = {2023},
  url = {https://huggingface.co/SRDdev/HingMaskedLM}
}

About

MaskedLMs is a repository that contains masked language models for Indian languages. These models are designed to predict missing words in a sentence. The models currently support English , Hinglish Languages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published