This repository contains models which classify speeches in the Swedish parliament by party using neural networks. Developed as part of my Bachelor thesis in Computer Science.
2
stars
34
commits
Jupyter Notebook
primary language
Aug 6, 2023
updated
This repository contains models which classify speeches in the Swedish parliament by party affiliation using neural networks. They were developed for my Bachelor thesis in Computer Science. The Hierarchical Attention Network is based on the network in this repository: [https://github.com/JoungheeKim/Pytorch-Hierarchical-Attention-Network/tree/master]
The models can be found in src and can be run using tfidf.py for the tfidf model, main_HAN.py for the HAN model or main.py for all the other models.
The notebook visualize_attention.ipynb provides a visualization of the attention weights in the HAN model.
34 commits
Jupyter Notebook
82.0%
Python
18.0%
This repository contains models which classify speeches in the Swedish parliament by party using neural networks. Developed as part of my Bachelor thesis in Computer Science.
2
stars
34
commits
Jupyter Notebook
primary language
Aug 6, 2023
updated
This repository contains models which classify speeches in the Swedish parliament by party affiliation using neural networks. They were developed for my Bachelor thesis in Computer Science. The Hierarchical Attention Network is based on the network in this repository: [https://github.com/JoungheeKim/Pytorch-Hierarchical-Attention-Network/tree/master]
The models can be found in src and can be run using tfidf.py for the tfidf model, main_HAN.py for the HAN model or main.py for all the other models.
The notebook visualize_attention.ipynb provides a visualization of the attention weights in the HAN model.
34 commits
Jupyter Notebook
82.0%
Python
18.0%