Spaces:
Runtime error
Runtime error
Adjust text
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ visualize_ner(
|
|
130 |
colors={"CONDITION": "#FF4B76", "BENEFIT": "#629B68"},
|
131 |
)
|
132 |
|
133 |
-
st.info("""The
|
134 |
|
135 |
st.markdown("""---""")
|
136 |
|
@@ -148,10 +148,10 @@ for doc_clause, clause in zip(clauses, doc._.clauses):
|
|
148 |
)
|
149 |
st.markdown("\n")
|
150 |
|
151 |
-
st.info("""The
|
152 |
-
The Text Classification predicts four exclusive classes: 'Positive', 'Negative', 'Neutral', 'Anamnesis'
|
153 |
|
154 |
-
st.info("""The 'Anamnesis' class is defined as the current state of health of a reviewer (e.g. 'I am diagnosed with joint pain'). It is used to link
|
155 |
|
156 |
st.markdown("""---""")
|
157 |
|
|
|
130 |
colors={"CONDITION": "#FF4B76", "BENEFIT": "#629B68"},
|
131 |
)
|
132 |
|
133 |
+
st.info("""The NER identifies two labels: 'Condition' and 'Benefit'. 'Condition' entities are generally diseases, symptoms, or general health problems (e.g. joint pain), while 'Benefit' entities are positive desired health aspects (e.g. energy)""")
|
134 |
|
135 |
st.markdown("""---""")
|
136 |
|
|
|
148 |
)
|
149 |
st.markdown("\n")
|
150 |
|
151 |
+
st.info("""The text is segmented into clauses and classified by a Text Classification model. We additionally blind found entities to improve generalization and to inform the model about our current target entity.
|
152 |
+
The Text Classification predicts four exclusive classes that represent the health effect: 'Positive', 'Negative', 'Neutral', 'Anamnesis'.""")
|
153 |
|
154 |
+
st.info("""The 'Anamnesis' class is defined as the current state of health of a reviewer (e.g. 'I am diagnosed with joint pain'). It is used to link health aspects to health effects that are mentioned later in a review.""")
|
155 |
|
156 |
st.markdown("""---""")
|
157 |
|