Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ for i in range(1, 51): # Looping for 2 applicants
|
|
81 |
data = pd.Series(text_data, name='Text')
|
82 |
result = pd.concat([job, data])
|
83 |
|
84 |
-
vectorizer = TfidfVectorizer()
|
85 |
tfidf_matrix = vectorizer.fit_transform(result)
|
86 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|
87 |
|
@@ -133,7 +133,7 @@ if st.session_state['upload_count'] < max_attempts:
|
|
133 |
values='score', color='label')
|
134 |
fig.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
135 |
st.plotly_chart(fig, key="figure 1")
|
136 |
-
vectorizer = TfidfVectorizer()
|
137 |
tfidf_matrix = vectorizer.fit_transform(result)
|
138 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|
139 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|
|
|
81 |
data = pd.Series(text_data, name='Text')
|
82 |
result = pd.concat([job, data])
|
83 |
|
84 |
+
vectorizer = TfidfVectorizer(stop_words = 'english')
|
85 |
tfidf_matrix = vectorizer.fit_transform(result)
|
86 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|
87 |
|
|
|
133 |
values='score', color='label')
|
134 |
fig.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
135 |
st.plotly_chart(fig, key="figure 1")
|
136 |
+
vectorizer = TfidfVectorizer(stop_words = 'english')
|
137 |
tfidf_matrix = vectorizer.fit_transform(result)
|
138 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|
139 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|