Skip to content

β˜€οΈ Entity Extraction Prompts

Abstract

This section covers the prompts for entity extraction task.

Entity Extraction is a natural language processing task which involves extracting entities from text and assigning the appropriate labels. Here entity can be a person, place, thing etc.

Assume that you want to extract medical entities from a tweet. For this, you have to write a prompt like this

Prompt

You are a medical expert and good at English. Extract all the medical entities from the given tweet and assign 
the appropriate medical entity labels.

Tweet: Feeling the chills? Don't let a #commoncold get you down. Plenty of rest, fluids, and #vitaminC 
can help boost your immune system and fight off those pesky symptoms. #health #wellness #immunity

Format: Present the extracted medical entities and their labels as a table.

Extracted Entities:

Output

Entity Label
common cold Disease
rest Treatment
fluids Treatment
vitamin C Medication
immune system System