ps = PorterStemmer()
i = 0
while i < 5174:
emails[i]=[[ps.stem(parola) for parola in sentence.split(" ")] for sentence in emails[i]]
i=i+1
print(emails[1])
i = 0
while i < 5174:
frequenzeparole[i]= Counter(elem[0] for elem in emails[i])
i=i+1
i = 0
while i < 5174:
all_features =[ (frequenzaparole[i], spam) for (frequenzaparole[i], spam) in emails[i]]
i=i+1