Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = []
- for line in f:
- if '\t' in char:
- words, pos = line.split('\t')
- len_w = len(words)
- for idx, w in enumerate(words, 1):
- data.append((w, '{0}0{1}'.format(len_w, idx), pos))
Advertisement
Add Comment
Please, Sign In to add comment