leavoigt commited on
Commit
e15f4fc
1 Parent(s): cf14b0f

Update appStore/vulnerability_analysis.py

Browse files
Files changed (1) hide show
  1. appStore/vulnerability_analysis.py +8 -20
appStore/vulnerability_analysis.py CHANGED
@@ -41,7 +41,7 @@ def app():
41
 
42
  st.write(
43
  """
44
- The *SDG Analysis* app is an easy-to-use interface built \
45
  in Streamlit for analyzing policy documents with respect to SDG \
46
  Classification for the paragraphs/texts in the document and \
47
  extracting the keyphrase per SDG label - developed by GIZ Data \
@@ -55,30 +55,18 @@ def app():
55
  However, since we want to respect the sentence boundary the limit \
56
  can breach and hence this limit of 120 is tentative. \n
57
  """)
58
- st.write("""**SDG cLassification:** The application assigns paragraphs \
59
- to 16 of the 17 United Nations Sustainable Development Goals (SDGs).\
60
- SDG 17 “Partnerships for the Goals” is excluded from the analysis due \
61
- to its broad nature which could potentially inflate the results. \
62
- Each paragraph is assigned to one SDG only. Again, the results are \
63
- displayed in a summary table including the number of the SDG, a \
64
  relevancy score highlighted through a green color shading, and the \
65
  respective text of the analyzed paragraph. Additionally, a pie \
66
  chart with a blue color shading is displayed which illustrates the \
67
- three most prominent SDGs in the document. The SDG classification \
68
- uses open-source training [data](https://zenodo.org/record/5550238#.Y25ICHbMJPY) \
69
- from [OSDG.ai](https://osdg.ai/) which is a global \
70
- partnerships and growing community of researchers and institutions \
71
- interested in the classification of research according to the \
72
- Sustainable Development Goals. The summary table only displays \
73
  paragraphs with a calculated relevancy score above 85%. \n""")
74
 
75
- st.write("""**Keyphrase Extraction:** The application extracts 15 \
76
- keyphrases from the document, for each SDG label and displays the \
77
- results in a summary table. The keyphrases are extracted using \
78
- using [Textrank](https://github.com/summanlp/textrank)\
79
- which is an easy-to-use computational less expensive \
80
- model leveraging combination of TFIDF and Graph networks.
81
- """)
82
  st.write("")
83
  st.write("")
84
  st.markdown("Some runtime metrics tested with cpu: Intel(R) Xeon(R) CPU @ 2.20GHz, memory: 13GB")
 
41
 
42
  st.write(
43
  """
44
+ The *Vulnerability Indicator* app is an easy-to-use interface built \
45
  in Streamlit for analyzing policy documents with respect to SDG \
46
  Classification for the paragraphs/texts in the document and \
47
  extracting the keyphrase per SDG label - developed by GIZ Data \
 
55
  However, since we want to respect the sentence boundary the limit \
56
  can breach and hence this limit of 120 is tentative. \n
57
  """)
58
+ st.write("""**Vulnerability cLassification:** The application assigns paragraphs \
59
+ to 18 different vulnerable groups in the climate context.\
60
+ Each paragraph is assigned to one vulnerable group only. Again, the results are \
61
+ displayed in a summary table including the vulnerability label, a \
 
 
62
  relevancy score highlighted through a green color shading, and the \
63
  respective text of the analyzed paragraph. Additionally, a pie \
64
  chart with a blue color shading is displayed which illustrates the \
65
+ three most prominent groups mentioned in the document. Training data has been \
66
+ collected manually from different policy documents and been assigned to the groups. \
67
+ The summary table only displays \
 
 
 
68
  paragraphs with a calculated relevancy score above 85%. \n""")
69
 
 
 
 
 
 
 
 
70
  st.write("")
71
  st.write("")
72
  st.markdown("Some runtime metrics tested with cpu: Intel(R) Xeon(R) CPU @ 2.20GHz, memory: 13GB")