how can I retrieve words back from word mapping using numpy array? [Tensorflow RNN] Text classification
<p>Here's what I have:</p>

<pre><code>vocab_processor = skflow.preprocessing.VocabularyProcessor(MAX_DOCUMENT_LENGTH)
X_train = np.array(list(vocab_processor.fit_transform(X_train)))
X_test = np.array(list(vocab_processor.transform(X_test)))
</code></pre>

<p>Now,It creates a numpy array of ids of words in word dictionary.
What should I do if I want to retrieve those words back from the dictionary?</p>

<p>There is a function called <code>reverese(document)</code> but it doesn't work in this case. It is returning list containing  marker.</p>

<pre><code>['What is most beautiful in &lt;UNK&gt; men is something feminine'
"The camera makes everyone a tourist in other people's reality"
'&lt;UNK&gt; in reality is the worst of all evils because' ...,
'&lt;UNK&gt; aware that no bank would do this as they'
'&lt;UNK&gt; keep sending you many details through the post like'
'&lt;UNK&gt; banking transactions should be conducted in a secure place']
</code></pre>