Downloads · 30 days
0
Lily-Trinh/PersonalityTraitsFromText
PersonalityTraitsFromText is a text classification model from Lily-Trinh. Use it when you need a label for a piece of text. It is set up for pytorch.
This repository contains a PyTorch deployment bundle trained in AFLPS-ML-Psycholinguistics to predict Big Five personality dimensions from essay text.
Downloads · 30 days
0
Access
Public
Updated Jun 17, 2026
Repo size
667 KB
Likes
0
Public
Click a slice to open those files.
.bin635 KB · 93%
From the Hugging Face model README
This repository contains a PyTorch deployment bundle trained in
AFLPS-ML-Psycholinguistics to predict Big Five personality dimensions from
essay text.
pytorch_model.bin: PyTorch bundle containing model weights, TF-IDF
vocabulary, IDF weights, threshold, and metrics.vectorizers/essays_tfidf.npz: portable TF-IDF artifact exported from the
preprocessing environment.deployment.py: model architecture and preprocessing helpers.predict.py: command-line batch and single-text inference script.requirements.txt: minimal inference dependencies.pip install -r requirements.txt
python predict.py pytorch_model.bin --text "Paste a new essay here."
For a CSV with a text column:
python predict.py pytorch_model.bin --input essays.csv --output predictions.csv
The model returns probabilities and binary predictions for:
O: OpennessC: ConscientiousnessE: ExtraversionA: AgreeablenessN: NeuroticismOriginal local source repo upload target: Lily-Trinh/PersonalityTraitsFromText.