title: Extracting utterance per line in python
body: <p>I have text data containing one utterance per line. I want to extract it so I have a list containing the all utterance with the same length of the line.</p>
  
  <p>Here is an example of my data <code>input.txt</code></p>
  
  <pre><code>I am very happy today.
  Are you angry with me...? No?
  Oh my dear, you look so beautiful.
  Let's take a rest, I am so tired. 
  Excuse me. This is my fault.
  </code></pre>
  
  <p>Currently, I use the following python code:</p>
  
  <pre><code>from nltk import tokenize
  
  utterances = []
  with open('input.txt', 'r') as myfile:
      for line in myfile.readlines():
          utterance = tokenize.sent_tokenize(line)
          utterances = np.append(utterances, utterance)
  utterances = list(utterances)
  len(utterances)
  </code></pre>
  
  <p>It gives the total of utterance: 7, it should be 5 same with input data.</p>
  
  <p>I am expecting the following output (list of 5 utterances), </p>
  
  <pre><code>['I am very happy today.', 'Are you angry to me...? No?', 'Oh my dear, you looks so beautiful.', "Let's take a rest, I am so tired.", 'Excuse me. This is my fault.']
  </code></pre>
  
  <p>While the present python code above resulting the following output (7 sentences).</p>
  
  <pre><code>['I am very happy today.', 'Are you angry to me...?', 'No?', 'Oh my dear, you look so beautiful.', "Let's take a rest, I am so tired.", 'Excuse me.', 'This is my fault.']
  </code></pre>
  
  <p>Is there anything better than <code>tokenize.sent_tokenize</code> from NLTK? I think this the reason I got the wrong result.</p>