Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def build_ing_dict(tag_sent_list):
  2. ing_dict = {}
  3. key = 0
  4. pattern = r'^.*(?:ing)$'
  5. for word in range(len(tag_sent_list)):
  6. if re.match(pattern,tag_sent_list[word]):
  7. ing_dict[key] = tag_sent_list[word]
  8. key+=1
  9. print ing_dict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement