Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by registered user rdc ( 9 years ago )
for r in nltk.sent_tokenize(lines):
relashionship.append(r)
for i in range(0,len(relashionship)):
for ii in nltk.word_tokenize(str(relashionship[i])):
rela2.append(ii)
print(rela2)
for z in range(0, len(rela2)):
for j in range(0,len(go)):
if (go[j] == rela2[z][0]):
count = count + 1
print(count)
if(count == 2):
count = 0
for r in range(0 ,len(rela2)):
if(rela2[r][1] =='VB' or rela2[r][1] =='VBD' or rela2[r][1] =='VBG' or rela2[r][1] =='VBN' or rela2[r][1] =='VBP' or rela2[r][1] =='VBZ'):
print(rela2[r][0])
Revise this Paste