Guest User

Untitled

a guest
Mar 20th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. data = []
  2. for line in f:
  3.   if '\t' in char:
  4.     words, pos = line.split('\t')
  5.     len_w = len(words)
  6.     for idx, w in enumerate(words, 1):
  7.       data.append((w, '{0}0{1}'.format(len_w, idx), pos))
Advertisement
Add Comment
Please, Sign In to add comment