akdeniz27 commited on
Commit
0d3adb4
1 Parent(s): 7ae6e02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ if Run_Button == True:
96
  else:
97
  spacy_display["ents"].append({"start": entity["start"], "end": entity["end"], "label": entity["entity"]})
98
 
99
- entity_list = ["PER", "LOC", "ORG", "MISC", "person", "location", "geopolitical area", "organization", "event", "group", "date", "ordinal number", "cardinal", "ordinal", "product", "quantity", "time", "money", "percent", "language", "product"]
100
  # colors = {'PER': '#85DCDF', 'LOC': '#DF85DC', 'ORG': '#DCDF85', 'MISC': '#85ABDF',}
101
  html = spacy.displacy.render(spacy_display, style="ent", minify=True, manual=True, options={"ents": entity_list}) # , "colors": colors})
102
  style = "<style>mark.entity { display: inline-block }</style>"
 
96
  else:
97
  spacy_display["ents"].append({"start": entity["start"], "end": entity["end"], "label": entity["entity"]})
98
 
99
+ entity_list = ["PER", "LOC", "ORG", "MISC", "person", "location", "geopolitical area", "organization", "event", "group", "date", "ordinal number", "cardinal number", "product", "quantity", "time", "money", "percent", "language", "product"]
100
  # colors = {'PER': '#85DCDF', 'LOC': '#DF85DC', 'ORG': '#DCDF85', 'MISC': '#85ABDF',}
101
  html = spacy.displacy.render(spacy_display, style="ent", minify=True, manual=True, options={"ents": entity_list}) # , "colors": colors})
102
  style = "<style>mark.entity { display: inline-block }</style>"