karpathy / char-rnn

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch
11.53k stars 2.58k forks source link

Is it possible to grade style similarity? #176

Open gigix opened 7 years ago

gigix commented 7 years ago

Hi there,

I wonder if it possible to use a trained model in another way - rather than generating new sample text, I'd like to input some new text and ask the model if the new text looks similar to the training input. The interface might look like this...

$ th grade.lua -checkpoint cv/some_checkpoint.t7 -input new_text.txt Similarity: 85%