Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use a trained char-based RNN language model? #55

Closed
coodoo opened this issue Apr 3, 2016 · 1 comment
Closed

How to use a trained char-based RNN language model? #55

coodoo opened this issue Apr 3, 2016 · 1 comment

Comments

@coodoo
Copy link

coodoo commented Apr 3, 2016

A dumb question, after training a char-based RNN language model with large data set (say millions of words), how could one utilize the model for different tasks like sentiment analysis?

Most of the exampels I've seen so far combined model training and sentiment analysis in one go (normally a LookupTable as the first layer for word embeddings then two LSTM layers after it...etc), I was wondering wouldn't it be more efficient to reuse a pre-trained RNN model and repurpose it for classification tasks?

Is it possible and how? Thanks!

Here are some sentiment analysis examples:
https://github.com/Element-Research/rnn/blob/master/examples/sequence-to-one.lua
https://github.com/fchollet/keras/blob/master/examples/imdb_lstm.py

@coodoo
Copy link
Author

coodoo commented Apr 5, 2016

Solved

@coodoo coodoo closed this as completed Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant