Fill-Mask
Transformers
PyTorch
TensorFlow
JAX
Safetensors
sentence-transformers
Portuguese
bert
pretraining
feature-extraction
sentence-similarity
NSP
Next Sentence Prediction
Instructions to use ricardoz/BERTugues-base-portuguese-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ricardoz/BERTugues-base-portuguese-cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ricardoz/BERTugues-base-portuguese-cased")# Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("ricardoz/BERTugues-base-portuguese-cased") model = AutoModelForPreTraining.from_pretrained("ricardoz/BERTugues-base-portuguese-cased", device_map="auto") - sentence-transformers
How to use ricardoz/BERTugues-base-portuguese-cased with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ricardoz/BERTugues-base-portuguese-cased") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!