Update appStore/sdg_analysis.py
Browse files- appStore/sdg_analysis.py +4 -4
appStore/sdg_analysis.py
CHANGED
@@ -97,10 +97,10 @@ def app():
|
|
97 |
|
98 |
keywords = kw_model.extract_keywords(
|
99 |
all_text,
|
100 |
-
keyphrase_ngram_range=(1,
|
101 |
use_mmr=True,
|
102 |
stop_words="english",
|
103 |
-
top_n=
|
104 |
diversity=0.7,
|
105 |
)
|
106 |
|
@@ -144,7 +144,7 @@ def app():
|
|
144 |
# load from disc (github repo) for performance boost
|
145 |
@st.cache(allow_output_mutation=True)
|
146 |
def load_sdgClassifier():
|
147 |
-
classifier = pipeline("text-classification", model= "jonas/
|
148 |
|
149 |
return classifier
|
150 |
|
@@ -198,7 +198,7 @@ def app():
|
|
198 |
|
199 |
with c4:
|
200 |
st.pyplot(fig)
|
201 |
-
with
|
202 |
st.table(df)
|
203 |
|
204 |
|
|
|
97 |
|
98 |
keywords = kw_model.extract_keywords(
|
99 |
all_text,
|
100 |
+
keyphrase_ngram_range=(1, 3),
|
101 |
use_mmr=True,
|
102 |
stop_words="english",
|
103 |
+
top_n=10,
|
104 |
diversity=0.7,
|
105 |
)
|
106 |
|
|
|
144 |
# load from disc (github repo) for performance boost
|
145 |
@st.cache(allow_output_mutation=True)
|
146 |
def load_sdgClassifier():
|
147 |
+
classifier = pipeline("text-classification", model= "jonas/roberta-base-finetuned-sdg")
|
148 |
|
149 |
return classifier
|
150 |
|
|
|
198 |
|
199 |
with c4:
|
200 |
st.pyplot(fig)
|
201 |
+
with c6:
|
202 |
st.table(df)
|
203 |
|
204 |
|