Text mining using python script

I want to find the word “good” in the “amazon_cells_labelled.txt” using a simple python script node in knime analytics platform. Can anyone help me with the code while appending the result in a new column.amazon_cells_labelled.txt (56.9 KB)

Searching for “good” can be done via regex. But what exactly do you want to extract? Also any particular reason why you want to use python? regex is also available in KNIME nodes.
bR

1 Like

I want to extract sentences with word ‘good’ in them…This was a assignment from my mentor, so I wanted some help in python coding…