> >Can anyone explain to me the purpose of "pattern" in the line below:
> >
> >documents.append((w, pattern['class']))
> >
> >documents is declared as a list as follows:
> >documents.append((w, pattern['class']))
> 
> Not without a lot more context. Where did you find this code?
> 
> Cheers,

I am sorry that partial info was not sufficient.
I am actually trying to implement my first text classification code and I am 
referring to the below URL for that:

https://machinelearnings.co/text-classification-using-neural-networks-f5cd7b8765c6

I hope this helps.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to