This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smaclient | |
from TwitterAPI import TwitterAPI | |
import matplotlib.pyplot as plt | |
# Go to http://dev.twitter.com and create an app. | |
# The consumer key and secret will be generated for you after | |
consumer_key = <consumer-key> | |
consumer_secret = <consumer-secret> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install_submodule_git <- function(x, ...) { | |
install_dir <- tempfile() | |
system(paste("git clone --recursive", shQuote(x), shQuote(install_dir))) | |
devtools::install(install_dir, ...) | |
} | |
install_submodule_git("https://github.com/jonkeane/mocapGrip") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
DyNet implementation of a sequence labeler (POS taggger). | |
This is a translation of this tagger in PyTorch: https://gist.github.com/hal3/8c170c4400576eb8d0a8bd94ab231232 | |
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 |
OlderNewer