edichief commited on
Commit
3d22843
1 Parent(s): 6e6c59e

Adjust text

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -130,7 +130,7 @@ visualize_ner(
130
  colors={"CONDITION": "#FF4B76", "BENEFIT": "#629B68"},
131
  )
132
 
133
- st.info("""The first processing step is to identify Conditions or Benefits with Named Entity Recognition. Conditions are diseases, symptoms and general health problems (e.g. joint pain), while Benefits are positive desired health aspects (e.g. energy)""")
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 review is segmented into sub-clauses and then classified by a Text Classification model. We additionally blind the found entities to improve generalization and also to inform the model about our current target entity of which we want to get the prediction of.
152
- The Text Classification predicts four exclusive classes: 'Positive', 'Negative', 'Neutral', 'Anamnesis', they represent the health effect.""")
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 stated health effects that are mentioned in later sentences.""")
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