Update app.py
Browse files
app.py
CHANGED
|
@@ -14,10 +14,19 @@ from sklearn.feature_extraction.text import TfidfVectorizer
|
|
| 14 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 15 |
|
| 16 |
|
| 17 |
-
lpi_df = pd.read_csv('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
lpi_df['combined_features'] = lpi_df['Course_Learning_Material']+' '+lpi_df['Source']+' '+lpi_df['Course_Level']+' '+lpi_df['Type']+' '+lpi_df['Module']+' '+lpi_df['Difficulty_Level']+' '+lpi_df['Keywords']
|
| 20 |
|
|
|
|
|
|
|
| 21 |
combined_features = lpi_df['combined_features']
|
| 22 |
|
| 23 |
porter_stemmer = PorterStemmer()
|
|
|
|
| 14 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 15 |
|
| 16 |
|
| 17 |
+
lpi_df = pd.read_csv('Learning Pathway Index.csv')
|
| 18 |
+
|
| 19 |
+
lpi_df.rename(columns={"Course / Learning material": "Course_Learning_Material",
|
| 20 |
+
"Course Level": "Course_Level",
|
| 21 |
+
"Type (Free or Paid)":"Type",
|
| 22 |
+
"Module / Sub-module \nDifficulty level": "Difficulty_Level",
|
| 23 |
+
"Keywords / Tags / Skills / Interests / Categories":"Keywords"
|
| 24 |
+
}, inplace=True)
|
| 25 |
|
| 26 |
lpi_df['combined_features'] = lpi_df['Course_Learning_Material']+' '+lpi_df['Source']+' '+lpi_df['Course_Level']+' '+lpi_df['Type']+' '+lpi_df['Module']+' '+lpi_df['Difficulty_Level']+' '+lpi_df['Keywords']
|
| 27 |
|
| 28 |
+
|
| 29 |
+
|
| 30 |
combined_features = lpi_df['combined_features']
|
| 31 |
|
| 32 |
porter_stemmer = PorterStemmer()
|