Update app.py
Browse files
app.py
CHANGED
@@ -2,13 +2,11 @@ import gradio as gr
|
|
2 |
from tner import TransformersNER
|
3 |
from spacy import displacy
|
4 |
|
5 |
-
|
6 |
-
model = TransformersNER("tner/bertweet-large-tweetner7-all")
|
7 |
|
8 |
examples = [
|
9 |
"Jacob Collier is a Grammy awarded artist from England.",
|
10 |
-
'Get the all-analog Classic Vinyl Edition of "Takin\' Off" Album from {@herbiehancock@} via {@bluenoterecords@} link below: {{URL}}',
|
11 |
-
"I’m so happy that the {@The New York Times@} sees in {@Mondaire Jones@} and {@Jamaal Bowman@} what the progressive grassroots in Westchester, Rockland and the Bronx sees ! They will both be extraordinary Congresspersons ! #cvhpower #nycd17 # nycd16",
|
12 |
"When Sebastian Thrun started working on self-driving cars at Google in 2007 , few people outside of the company took him seriously.",
|
13 |
"But Google is starting from behind. The company made a late push into hardware, and Apple’s Siri, available on iPhones, and Amazon’s Alexa software, which runs on its Echo and Dot devices, have clear leads in consumer adoption."
|
14 |
]
|
|
|
2 |
from tner import TransformersNER
|
3 |
from spacy import displacy
|
4 |
|
5 |
+
model = TransformersNER("tner/roberta-large-ontonotes5")
|
6 |
+
#model = TransformersNER("tner/bertweet-large-tweetner7-all")
|
7 |
|
8 |
examples = [
|
9 |
"Jacob Collier is a Grammy awarded artist from England.",
|
|
|
|
|
10 |
"When Sebastian Thrun started working on self-driving cars at Google in 2007 , few people outside of the company took him seriously.",
|
11 |
"But Google is starting from behind. The company made a late push into hardware, and Apple’s Siri, available on iPhones, and Amazon’s Alexa software, which runs on its Echo and Dot devices, have clear leads in consumer adoption."
|
12 |
]
|