Stefan Dumitrescu commited on
Commit
af1d567
·
1 Parent(s): 6862fa0
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -21,13 +21,16 @@ model_list = ['dumitrescustefan/bert-base-romanian-ner']
21
  st.sidebar.header("Select NER Model")
22
  model_checkpoint = st.sidebar.radio("", model_list)
23
 
24
- st.sidebar.write("This demo is based on RoNER: 'https://github.com/dumitrescustefan/roner'")
25
- st.sidebar.write("")
26
 
27
 
28
  st.sidebar.header("Select type of PERSON detection")
29
  named_persons_only_radio = st.sidebar.radio("", ('Proper nouns only', 'All nouns'))
30
 
 
 
 
 
31
  st.sidebar.write("Types of entities detected: 'PERSON', 'ORG', 'GPE', 'LOC', 'NAT_REL_POL', 'EVENT', 'LANGUAGE', 'WORK_OF_ART', 'DATETIME', 'PERIOD', 'MONEY', 'QUANTITY', 'NUMERIC', 'ORDINAL', 'FACILITY'")
32
 
33
  st.subheader("Select Text Input Method")
@@ -108,8 +111,8 @@ if Run_Button == True:
108
  colors = {
109
  'PERSON': '#E08989',
110
  'ORG': '#54478C',
111
- 'GPE': '#2C699A',
112
- 'LOC': '#048BA8',
113
  'NAT_REL_POL': '#FADAD9',
114
  'EVENT': '#98654C',
115
  'LANGUAGE': '#F29E4C',
 
21
  st.sidebar.header("Select NER Model")
22
  model_checkpoint = st.sidebar.radio("", model_list)
23
 
24
+
 
25
 
26
 
27
  st.sidebar.header("Select type of PERSON detection")
28
  named_persons_only_radio = st.sidebar.radio("", ('Proper nouns only', 'All nouns'))
29
 
30
+
31
+ st.sidebar.write("This demo is based on RoNER: 'https://github.com/dumitrescustefan/roner'")
32
+ st.sidebar.write("")
33
+ st.sidebar.write("The NER corpus used is: 'https://github.com/dumitrescustefan/ronec'")
34
  st.sidebar.write("Types of entities detected: 'PERSON', 'ORG', 'GPE', 'LOC', 'NAT_REL_POL', 'EVENT', 'LANGUAGE', 'WORK_OF_ART', 'DATETIME', 'PERIOD', 'MONEY', 'QUANTITY', 'NUMERIC', 'ORDINAL', 'FACILITY'")
35
 
36
  st.subheader("Select Text Input Method")
 
111
  colors = {
112
  'PERSON': '#E08989',
113
  'ORG': '#54478C',
114
+ 'GPE': '#4C89AA',
115
+ 'LOC': '#34ABF8',
116
  'NAT_REL_POL': '#FADAD9',
117
  'EVENT': '#98654C',
118
  'LANGUAGE': '#F29E4C',