Computer scienceData scienceNLPLibrariesHugging Face

Implementation of transformers in Hugging Face

Transformers for NER

Report a typo

Use the BERT model for NER tasks. Your program should input the text and print only the entities and their tags. Words and tags should be delimited by commas without spaces. Print each word and tag on a new line. Here is an example of output:

Geoffrey,B-PER
Chaucer,I-PER
English,B-MISC
The,B-MISC
Canterbury,I-MISC
Tales,I-MISC
Write code in your IDE to process the text file and display the results below
___

Create a free account to access the full topic