I should apologize first if this question was already answered. I cant find it here. My problem is as follows. I have a pre curated list of words and I also have some unstructured text like this.
2 1/2 cups all-purpose flour
1 cup rolled oats
1/2 teaspoon ground ginger
1 cup chopped walnuts
1 teaspoon vanilla extract
1 teaspoon pumpkin pie spice
1 teaspoon celery oil
My list contains following matching keywords [flour,oat,ginger,walnut,celery,celery_oil,....].I want to convert the unstructured text in to my matching keyword list.Like in the following.
flour
oat
ginger
walnut
vanilla
pumpkin
celery_oil
Can anyone suggest me a method to convert those items using python. Currently I have some experience about pandas. Thank You very much!