Update app.py
Browse files
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 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
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:
|