title: RNN for binary classification of sequence
body: <p>I wondering if someone can suggest a good library or reference (tutorial or article) to implement a Recurrent Neural Network (RNN).</p>
  
  <p>I tried to use the <a href="https://sourceforge.net/p/rnnl/wiki/Home/" rel="noreferrer">rnnlib</a> by Alex Graves, but I had some troubles in changing the architecture to adapt the network to my needs. </p>
  
  <p>In particular, I'm trying to recognize strings coming from a regular language, using positive and negative samples. </p>
  
  <p>This is an example of my training set:</p>
  
  <p>str1: w1 w2 ... wn --> label 1 (it is a valid string for the language)</p>
  
  <p>str2: w1 w2 ... wi --> label 0 (it does not belong to the language)</p>
  
  <p>where wi are drawn from the alphabet of the unknown language.</p>
  
  <p>Thanks in advance.</p>