Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- biglist = [['The', 'family'.....]['In', 'the']....]
- clusters = [['the','in'...],['blood','gene'...]...].
- test = biglist[0]
- doc = []
- for wo in test:
- for i, w in enumerate(clusters):
- for word in w:
- if wo in word:
- doc.append(i)
- else:
- doc.append('NAN')
- print doc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement