title: segmenting elements in a list and find their statistics
body: <p>Can you please help me, how can i solve this problem.</p>
  <p>given the following list, i want to find the ENG segments. ENG segments are group ENG elements in the list. I also want to find the segment length,i.e. the number of words in a segment. For example:</p>
  <pre><code>list1 = ['ENG', 'ENG', 'ENG', 'ENG', 'ENG', 'TSO', 'ENG', 'ENG']
  </code></pre>
  <p>in the list we have two ENG segments, i.e.</p>
  <pre><code>ENG_segments = [['ENG', 'ENG', 'ENG', 'ENG', 'ENG'],['ENG', 'ENG']]
  </code></pre>
  <p>ENG segment of length 3: have 3 more or more words</p>
  <pre><code>length3 = 1
  </code></pre>
  <p>segment of length 2: have 2 words</p>
  <pre><code>length2 = 1
  </code></pre>
  <p>segment of length 1: have 1 word</p>
  <pre><code>length3 = 0
  </code></pre>