Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def build_ing_dict(tag_sent_list):
- ingdict = {}
- for sent in tag_sent_list:
- for (x,y) in sent:
- if re.search("ing",x):
- if not (ingdict.has_key(x)):
- ingdict[x] = [y]
- else:
- ingdict[x].append
- return ingdict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement