Skip to content

Instantly share code, notes, and snippets.

View kyunghyuncho's full-sized avatar

Kyunghyun Cho kyunghyuncho

View GitHub Profile
@kyunghyuncho
kyunghyuncho / mini_sequence_labeler.py
Created August 22, 2017 00:32 — forked from hal3/mini_sequence_labeler.py
PyTorch implementation of a sequence labeler (POS taggger).
"""
PyTorch implementation of a sequence labeler (POS taggger).
Basic architecture:
- take words
- run though bidirectional GRU
- predict labels one word at a time (left to right), using a recurrent neural network "decoder"
The decoder updates hidden state based on:
- most recent word