MuntasirHossain commited on
Commit
775e85f
·
1 Parent(s): e2835eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -13,16 +13,17 @@ def ner(text):
13
  a = ""
14
  results = model(text)
15
  for result in results:
16
- a += result['word'] + " : " + result['entity_group'] + ", "
17
- a = a[0:len(a)-3] # removes the ', ' at the end of text
18
  return a
19
 
20
 
21
- description = "This AI model is trained to identify and classify named entities in unstructured text."
 
22
  title = "Named Entity Recognition"
23
  theme = "grass"
24
- examples=["Mount Everest is Earth's highest mountain, located in the Mahalangur Himal sub-range of the Himalayas. Edmund Hillary and Tenzing Norgay were the first climbers confirmed\
25
- to have reached the summit of Mount Everest on May 29, 1953."]
26
 
27
  gr.Interface(fn=ner,
28
  inputs="textbox",
 
13
  a = ""
14
  results = model(text)
15
  for result in results:
16
+ a += result['word'] + " : " + result['entity_group'] + ", "
17
+ a = a[0:len(a)-4] # removes the ', ' at the end of text
18
  return a
19
 
20
 
21
+ description = "This AI model is trained to identify and classify named entities such as persons (PER), locations (LOC), organizations (ORG) and miscellaneous (MISC)\
22
+ in unstructured text."
23
  title = "Named Entity Recognition"
24
  theme = "grass"
25
+ examples=["Mount Everest is Earth's highest mountain, located in the Mahalangur Himal sub-range of the Himalayas. Edmund Hillary and Tenzing Norgay were the\
26
+ first climbers confirmed to have reached the summit of Mount Everest on May 29, 1953."]
27
 
28
  gr.Interface(fn=ner,
29
  inputs="textbox",