Hi,
I'm working on a code where I need to find a
string from a set of sentences, match if the string is in another keywords list and from there get the appropriate value from map and replace in original list.
Here is my code
When I run this code the output that I get is as below.
Original strings: [bread gingerbread vegan, iced tea lmn gngr grn 32, iced tea lmn]
New strings: [breadd gingerbreadd vegetarian, iced tea lemon ginger green 32, iced tea lemon]
but my expected output is as below
Original strings: [bread gingerbread vegan, iced tea lmn gngr grn 32, iced tea lmn]
New strings: [bread gingerbread vegetarian, iced tea lemon ginger green 32, iced tea lemon]
Here I want to find entire match in
rawTitleList from
dictKeys and replace the value using the value from
dictMap.
please let me know where am I going wrong and how can I fix this.
Thanks,
Sunny