cjber commited on
Commit
6337b65
1 Parent(s): c1fb75b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -12,4 +12,21 @@ widget:
12
  example_title: "Londoner"
13
  ---
14
 
15
- # Reddit NER for place names
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  example_title: "Londoner"
13
  ---
14
 
15
+ # Reddit NER for place names
16
+
17
+
18
+ ## Use in `transformers`
19
+
20
+ from transformers import pipeline
21
+
22
+ ```python
23
+ generator = pipeline(
24
+ task="ner",
25
+ model="cjber/reddit-ner-place_names",
26
+ tokenizer="cjber/reddit-ner-place_names",
27
+ )
28
+
29
+ generator(
30
+ "I live in Gothenburg, and long queues aside I definitely prefer the housing situation here compared to Edinburgh."
31
+ )
32
+ ```