Downloads · 30 days
4
25% of all-time downloads
24f3004104/BILSTM-Scratch
BILSTM-Scratch is a machine learning model from 24f3004104. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
--- license: mit tags: - pytorch - text-classification - multiple-choice - bilstm libraryname: pytorch ---
Downloads · 30 days
4
25% of all-time downloads
All-time downloads
16
Public
Repo size
11.1 MB
Likes
0
Public
Click a slice to open those files.
.bin11.1 MB · 99%
From the Hugging Face model README
license: mit tags:
A Bidirectional LSTM with additive attention trained from scratch (no pretrained embeddings).
import json, torch
from huggingface_hub import hf_hub_download
from model_defs import BiLSTMAttention, Vocabulary
model = BiLSTMAttention.from_pretrained("24f3004104/BILSTM-Scratch")
vocab_path = hf_hub_download("24f3004104/BILSTM-Scratch", "vocab.json")
vocab = Vocabulary.from_dict(json.load(open(vocab_path)))