Downloads · 30 days
52
2% of all-time downloads
Trendyol/tyroberta
tyroberta is a feature extraction model from Trendyol. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
This repository provides a pretrained Roberta model for Turkish by Trendyol, named TyRoberta. The model is useful for various natural language understanding tasks, such as text classification, named entity recognition…
Downloads · 30 days
52
2% of all-time downloads
All-time downloads
2.4K
Public
Parameters
109M
436 MB on disk
Likes
10
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
This repository provides a pretrained Roberta model for Turkish by Trendyol, named TyRoberta. The model is useful for various natural language understanding tasks, such as text classification, named entity recognition, and more.
from transformers import AutoTokenizer, RobertaModel
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("Trendyol/tyroberta")
model = RobertaModel.from_pretrained("Trendyol/tyroberta")
# Define a sample text
text = "Filenin Sultanları ilk maçını 29 Temmuz'da Hollanda'ya karşı oynayacak."
# Tokenize and encode the input text
encoded_input = tokenizer(text, return_tensors='pt')
# Get the model's output
output = model(**encoded_input)
print(output)