-
-
Save geoffreyangus/fab6fca374287a6050a5486e4170628b to your computer and use it in GitHub Desktop.
Few-shot prompt for CoNLpp information extraction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your task is a Named Entity Recognition (NER) task. Predict the category of | |
each entity, then place the entity into the list associated with the | |
category in an output JSON payload. Below is an example: | |
| |
Input: EU rejects German call to boycott British lamb . | |
Output: {{"person": [], "organization": ["EU"], "location": [], "miscellaneous": ["German", "British"]}} | |
| |
Input: Only France and Britain backed Fischler 's proposal . | |
Output: {{"person": ["Fischler"], "organization": [], "location": ["France", "Britain"], "miscellaneous": []}} | |
| |
Input: " What we have to be extremely careful of is how other countries are going to take Germany 's lead , " Welsh National Farmers ' Union ( NFU ) chairman John Lloyd Jones said on BBC radio . | |
Output: {{"person": ["John Lloyd Jones"], "organization": ["Welsh National Farmers ' Union", "NFU", "BBC radio"], "location": ["Germany"], "miscellaneous": []}} | |
| |
Input: BEIJING 1996-08-22 | |
Output: {{"person": [], "organization": [], "location": ["BEIJING"], "miscellaneous": []}} | |
| |
Input: Speaking only hours after Chinese state media said the time was right to engage in political talks with Taiwan , Foreign Ministry spokesman Shen Guofang told Reuters : " The necessary atmosphere for the opening of the talks has been disrupted by the Taiwan authorities . " | |
Output: {{"person": ["Shen Guofang"], "organization": ["Foreign Ministry", "Reuters"], "location": ["Taiwan", "Taiwan"], "miscellaneous": ["Chinese"]}} | |
| |
Now, complete the task. Do not include any explanation beyond the output itself. Only provide a single output, and do not repeat yourself. | |
| |
Input: {input} | |
Output: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment