Downloads · 30 days
20
9% of all-time downloads
MUR55/bert_turkish_personality_analysis
bert_turkish_personality_analysis is a text classification model from MUR55. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This repository hosts a Turkish BERT model fine-tuned for multi-label personality trait classification. Built on top of dbmdz/bert-base-turkish-cased, this model predicts psychological and professional personality tra…
Downloads · 30 days
20
9% of all-time downloads
All-time downloads
217
Public
Repo size
885 MB
Likes
0
Public
Click a slice to open those files.
.bin443 MB · 100%
From the Hugging Face model README
This repository hosts a Turkish BERT model fine-tuned for multi-label personality trait classification.
Built on top of dbmdz/bert-base-turkish-cased, this model predicts psychological and professional personality traits from Turkish text input.
Given a CV, personal statement, or written expression, the model assigns zero or more traits from the following set:
özgüvenli – confidentiçe kapanık – introvertedlider – leadertakım oyuncusu – team playerkararsız – indecisiveabartılı – exaggeratedprofesyonel – professionaldeneyimli – experiencedThe model supports multi-label classification using a sigmoid activation and thresholding logic.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load tokenizer and model
model_name = "MUR55/bert_turkish_personality_analysis"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Sample text
text = "5 yıllık yöneticilik tecrübemle liderlik becerilerimi geliştirdim, aynı zamanda ekip çalışmalarına önem veririm."
# Tokenize and predict
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
outputs = model(**inputs)
probs = torch.sigmoid(outputs.logits)
# Threshold to determine label presence
threshold = 0.5
labels = ["özgüvenli", "içe kapanık", "lider", "takım oyuncusu", "kararsız", "abartılı", "profesyonel", "deneyimli"]
predicted = [label for label, prob in zip(labels, probs[0]) if prob >= threshold]
print("Predicted traits:", predicted)
Model was evaluated on a held-out portion of the dataset. Replace below with your real metrics:
| Metric | Value |
|---|---|
| Accuracy | 0.92 |
| F1-Score | 0.94 |
| Precision | 0.91 |
| Recall | 0.96 |
pytorch_model.bin – fine-tuned model weightsconfig.json – model configurationtokenizer_config.json, vocab.txt – tokenizer filesThis project builds upon dbmdz/bert-base-turkish-cased. Thanks to the Turkish NLP community for contributions and datasets.
If you have questions or suggestions, feel free to open an issue on the model page or contact the author.