Views
No views yet
bert-base-uncased for named entity recognition, trained using wnut_17 with 498 additional comments from Reddit. This model is intended solely for place name extraction from social media text, other entities have therefore been removed.Manchester played Liverpool last night in Liverpool.1[
2 {
3 "entity_group": "location",
4 "score": 0.9975672,
5 "word": "liverpool",
6 "start": 42,
7 "end": 51,
8 }
9]transformers1from transformers import pipeline
2
3generator = pipeline(
4 task="ner",
5 model="cjber/reddit-ner-place_names",
6 tokenizer="cjber/reddit-ner-place_names",
7 aggregation_strategy="first",
8)
9
10out = generator("I like reading books. I live in Reading.")out gives:1[
2 {
3 "entity_group": "location",
4 "score": 0.94123614,
5 "word": "reading",
6 "start": 32,
7 "end": 39,
8 }
9]
10