I have a dataset that contains data and headlines of articles. I am trying to apply dictionary search looping through all the headlines.
dict = pd.read_csv("suspectdict.csv")
news_df = pd.read_csv("news.csv")
words in suspectdict.csv contains verbs that describes the actions
charged, murdered, murder, caught, arrested..
and my news.csv consists of criminal articles. So in this case when it loops through the sentences and if for example:
"a local man charged for theft"
since charged is in the dictionary, it will return 1 else 0