Instructions to use monsoon-nlp/hindi-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use monsoon-nlp/hindi-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="monsoon-nlp/hindi-bert")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("monsoon-nlp/hindi-bert") model = AutoModel.from_pretrained("monsoon-nlp/hindi-bert") - Notebooks
- Google Colab
- Kaggle
Recommended language models (larger and higher-quality than Hindi-Bert)
#1
by monsoon-nlp - opened
Hindi-BERT is a smaller Electra model which I uploaded in summer 2020. Recommended alternatives as of May 2022:
For masked language models, I recommend Google's MuRIL model trained on English, Hindi, and other major Indian languages, both in their script and latinized script. Two available sizes:
For causal language models, I recommend SberBank / mGPT, though this is a large model