|
Download README.md from MalekOthman/mbti_bilstm_personality_prediction: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/MalekOthman/mbti_bilstm_personality_prediction/resolve/main/README.md
- Command line
-
hf download hf://MalekOthman/mbti_bilstm_personality_prediction/README.md
-
curl -L -o README.md https://huggingface.co/MalekOthman/mbti_bilstm_personality_prediction/resolve/main/README.md
702 Bytes
metadata
tags:
- mbti
- personality-classification
- bilstm
- pytorch
MBTI Personality Classifier
BiLSTM with Character-level CNN for Myers-Briggs Type Indicator prediction
Usage
from huggingface_hub import hf_hub_download
import pickle
import torch
# Load components
model_path = hf_hub_download(repo_id="MalekOthman/mbti_bilstm", filename="pytorch_model.bin")
config = pickle.load(open(hf_hub_download(repo_id="MalekOthman/mbti_bilstm", filename="config.pkl"), "rb"))
# Initialize model (requires AdvancedBiLSTM class definition)
model = AdvancedBiLSTM(config['word_vocab_size'], config['char_vocab_size'])
model.load_state_dict(torch.load(model_path))