Skip to content

Instantly share code, notes, and snippets.

View yf225's full-sized avatar

Will Feng yf225

  • Meta
View GitHub Profile
@yf225
yf225 / mini_sequence_labeler.py
Created January 10, 2018 21:47 — 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