|
--- |
|
language: en |
|
datasets: |
|
- wnut_17 |
|
license: mit |
|
metrics: |
|
- f1 |
|
widget: |
|
- text: "My name is Sylvain and I live in Paris" |
|
example_title: "Parisian" |
|
- text: "My name is Sarah and I live in London" |
|
example_title: "Londoner" |
|
--- |
|
|
|
# Reddit NER for place names |
|
|
|
|
|
## Use in `transformers` |
|
|
|
```python |
|
from transformers import pipeline |
|
|
|
generator = pipeline( |
|
task="ner", |
|
model="cjber/reddit-ner-place_names", |
|
tokenizer="cjber/reddit-ner-place_names", |
|
) |
|
|
|
generator( |
|
"I live in Gothenburg, and long queues aside I definitely prefer the housing situation here compared to Edinburgh." |
|
) |
|
``` |