#966 · Primary category: Education & Research
attention-networks-for-classification
Hierarchical Attention Networks for Document Classification in PyTorch
Project last updated:03/04/20
GitHub Stars
606
Forks
130
Contributors
2
License
Other
Why we included this project
This is a PyTorch implementation of the Hierarchical Attention Network from the NAACL 2016 paper, built around the idea that documents have a natural structure: words combine into sentences, and sentences into documents. Instead of letting the model discover that structure on its own, the code feeds it in explicitly through word-level and sentence-level attention over a bidirectional GRU. The included notebook trains the model on a movie review dataset, so you get a complete, runnable example of the pipeline rather than isolated snippets. It's a good starting point for researchers or students who want to see how attention-based document classification actually works under the hood. Just keep in mind the repo hasn't seen updates since early 2020, so treat it as a teaching tool and a base for your own experiments, not something to wire into production.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI