Method 2: SRL First

Learn about using SRL first when performing NER tasks with transformers.

Let’s try to do better with person entity questions by applying an SRL-first method.

The transformer could not find who was driving to go to Las Vegas and thought it was Nat King Cole instead of Jo and Maria.

What went wrong? Can we see what the transformers think and obtain an explanation? To find out, let’s go back to semantic role modeling.

Let’s run the same sequence on AllenNLP in the semantic role labeling section, to obtain a visual representation of the verb drove in our sequence by running the SRL BERT model:

Get hands-on with 1200+ tech skills courses.