# Cahan **Repository Path**: jsun999/Cahan ## Basic Information - **Project Name**: Cahan - **Description**: Implementation of a context aware hierarchical attention network. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Bidirectional Context Aware Hierarchical Attention Network for Document Understanding Code for the paper [Bidirectional Context-Aware Hierarchical Attention Network for Document Understanding](https://arxiv.org/abs/1908.06006)
HAN (left) vs CAHAN (right) on an example extracted from the Yelp dataset.
HAN (left) vs CAHAN (right) on a motivational example.
## Description : * `V1`: Weights and records of the experiments. > * `weights` - Initial weights > * `baseline` - Trained weights and results on the baseline > * `agg=sum_bidir=True_discount=1_cutgradient=False` - Trained weights and results for the experiment with summed attention, bidirectional contextual attention and discount factor = 1. * `code`: All the scripts needed to run the experiments. To run the experiments you can run the `main_*` scripts. ## Requirements: This repository was developped using `python 3.6` and `Cuda 9.0`. Requirements are contained in the `requirements.txt` file. ## Citing this work: If you use this code or build up on the idea proposed in the paper, please cite it as: ```` @article{remy2019bidirectional, title={Bidirectional Context-Aware Hierarchical Attention Network for Document Understanding}, author={Remy, Jean-Baptiste and Tixier, Antoine Jean-Pierre and Vazirgiannis, Michalis}, journal={arXiv preprint arXiv:1908.06006}, year={2019} } ```` ## Authors: If you liked this work you can follow the authors: * Jean-Baptiste Remy [