프로젝트
GitHub에서 보기
ematvey/hierarchical-attention-networks
소개
TensorFlow의 계층적 어텐션 네트워크를 사용한 문서 분류입니다. 경고: 현재 프로젝트가 유지 관리되지 않아 이슈가 처리되지 않을 가능성이 높습니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDeep Text Classifier
Implementation of document classification model described in Hierarchical Attention Networks for Document Classification (Yang et al., 2016).
How to run
- Create a virtual environment, activate it, and install requirements:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
- Download the English model for spaCy:
python -m spacy download en
- Get Yelp review dataset and extract it in this directory.
python3 yelp_prepare.py dataset/review.json
python3 worker.py --mode=train --device=/gpu:0 --batch-size=30
Results
I am getting 65% accuracy on a dev set (16% of data) after 3 epochs. Results reported in the paper are 71% on Yelp'15. No systemic hyperparameter optimization was performed.
관련 프로젝트 살펴보기
불러오는 중…