Question: I'm running TensorFlow's RNN (LSTM) language model example [here](https://www.tensorflow.org/versions/r0.10/tutorials/recurrent/index.html).
It runs and reports the perplexities perfectly.

What I want though is three things:

1. Given a sequence (e.g. w1 w5 w2000 w750) give me the probability distribution for the next word over the vocabulary. I don't know how to do it with the model in the tutorial.
2. I want the model to return a ranking of the most probable sequences (e.g. n-grams), n can be given as input.

and

3. Given a sequence, I want it's probability.

I'm new to TensorFlow and RNNs so plz tell me if you need more information than I have provided.

The code for the language model is [here](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/models/rnn/ptb/ptb_word_lm.py).

Answer: 
No, `setData()` is to be used to change existing data, or more precisely to manipulate data for an index that exists. You cannot add rows using this method.
setData puts new data into your buffer, insertRows will add new rows into the indexed location of your buffer, increasing the total amount of data you now have. If you are trying to only overwrite data at certain locations I suggest using replace.