nlpblogs commited on
Commit
1275feb
·
verified ·
1 Parent(s): 30c464f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -177,11 +177,17 @@ if st.button("Results"):
177
  # --- Download Buttons ---
178
  dfa = pd.DataFrame(
179
  data={
180
- 'text': ['entity extracted from your text data'], 'score': ['accuracy score; how accurately a tag has been assigned to a given entity'], 'label': ['label (tag) assigned to a given extracted entity'],
181
- 'category': ['the high-level category for the label'],
182
- 'start': ['index of the start of the corresponding entity'],
183
- 'end': ['index of the end of the corresponding entity'],
184
- })
 
 
 
 
 
 
185
  buf = io.BytesIO()
186
  with zipfile.ZipFile(buf, "w") as myzip:
187
  myzip.writestr("Summary of the results.csv", df.to_csv(index=False))
 
177
  # --- Download Buttons ---
178
  dfa = pd.DataFrame(
179
  data={
180
+ 'Column Name': ['word', 'entity_group','score', 'start', 'end'],
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
+ ]
188
+ }
189
+ )
190
+
191
  buf = io.BytesIO()
192
  with zipfile.ZipFile(buf, "w") as myzip:
193
  myzip.writestr("Summary of the results.csv", df.to_csv(index=False))