We have news URLS, which we want to classify into crimes or non-crimes and further identify criminals by using NERs. For creating a model that identifies criminals, we tried SPacy which gave all the names like lawyers name , president ,criminal etc.. can Anyone help on how to get only Criminal name, Not all these irrelevant names. I am just a beginner trying things, any help is appreciated Thanks in Advance
As mentioned by @Edmund you can use public library but where is fun in that. My suggestion: Try to create a set of words which are negative in sentiment. Words like guilty, murdered, snatch etc... Now from NER you are already getting the names. Find the word distance of of these names with the negative words and the name with least distance will be the culprit.
To build a set of negative words, get all crime news and from that pick the frequently occurring words. Some manual cleaning right be required.
You may use
FindTextualAnswer["Person Jane Doe found guilty in case, Judge John Dude to give final verdict on it tomorrow.", "Who was found guilty?", TargetDevice -> "GPU"]
FindTextualAnswer["Person Jane Doe found guilty in case, Judge John Dude to give final verdict on it tomorrow.", "Who was the judge?", TargetDevice -> "GPU"]
Hope this helps.