Downloads · 30 days
0
rezka00/textcnn-essay-model
textcnn-essay-model is a machine learning model from rezka00. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Лёгкая CNN-модель для автоматической оценки эссе.
Downloads · 30 days
0
Access
Public
Updated May 28, 2026
Parameters
4.1M
16.5 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.5 MB · 100%
From the Hugging Face model README
Лёгкая CNN-модель для автоматической оценки эссе.
bert-base-uncasedimport json
import torch
from huggingface_hub import snapshot_download
from modeling_textcnn import TextCNNRegressor
# Скачиваем репо
path = snapshot_download(repo_id="rezka00/textcnn-essay-model")
# Читаем конфиг
with open(f"{path}/textcnn_config.json") as f:
cfg = json.load(f)
# Восстанавливаем модель
model = TextCNNRegressor(
vocab_size=cfg["vocab_size"],
embed_dim=cfg["embed_dim"],
num_filters=cfg["num_filters"],
filter_sizes=cfg["filter_sizes"],
dropout=cfg["dropout"],
)
# Загружаем веса
from safetensors.torch import load_file
state_dict = load_file(f"{path}/model.safetensors")
model.load_state_dict(state_dict)
model.eval()