nlpblogs commited on
Commit
1a2c39c
·
verified ·
1 Parent(s): b50938c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -18
app.py CHANGED
@@ -175,24 +175,19 @@ if st.button("Results"):
175
  st.info("No entities found in the provided text.")
176
 
177
  # --- Download Buttons ---
178
- dfa = pd.DataFrame(
179
- data={
180
- 'Column Name': ['word', 'entity_group','score', 'start', 'end'],
181
- 'Description': [
182
- 'text': ['entity extracted from your text data'],
183
-
184
- 'score': ['accuracy score; how accurately a tag has been assigned to a given entity'],
185
-
186
- 'label': ['label (tag) assigned to a given extracted entity'],
187
-
188
- 'category': ['the high-level category for the label'],
189
-
190
- 'start': ['index of the start of the corresponding entity'],
191
-
192
- 'end': ['index of the end of the corresponding entity']
193
- ]
194
- }
195
- )
196
 
197
  buf = io.BytesIO()
198
  with zipfile.ZipFile(buf, "w") as myzip:
 
175
  st.info("No entities found in the provided text.")
176
 
177
  # --- Download Buttons ---
178
+ dfa = pd.DataFrame(
179
+ data={
180
+ 'Column Name': ['text', 'label', 'score', 'start', 'end', 'category'],
181
+ 'Description': [
182
+ 'entity extracted from your text data',
183
+ 'label (tag) assigned to a given extracted entity',
184
+ 'accuracy score; how accurately a tag has been assigned to a given entity',
185
+ 'index of the start of the corresponding entity',
186
+ 'index of the end of the corresponding entity',
187
+ 'the broader category the entity belongs to',
188
+ ]
189
+ }
190
+ )
 
 
 
 
 
191
 
192
  buf = io.BytesIO()
193
  with zipfile.ZipFile(buf, "w") as myzip: