updated .txt path
Browse files
bm25_retreive_question.py
CHANGED
@@ -14,12 +14,12 @@ nltk.download('punkt')
|
|
14 |
|
15 |
class QuestionRetriever:
|
16 |
def __init__(self):
|
17 |
-
self.depression_questions = self.load_questions_from_file("
|
18 |
-
self.adhd_questions = self.load_questions_from_file("
|
19 |
-
self.anxiety_questions = self.load_questions_from_file("
|
20 |
-
self.social_isolation_questions = self.load_questions_from_file("
|
21 |
-
self.cyberbullying_questions = self.load_questions_from_file("
|
22 |
-
self.social_media_addiction_questions = self.load_questions_from_file("
|
23 |
|
24 |
|
25 |
def load_questions_from_file(self, filename):
|
|
|
14 |
|
15 |
class QuestionRetriever:
|
16 |
def __init__(self):
|
17 |
+
self.depression_questions = self.load_questions_from_file("data/depression_questions.txt")
|
18 |
+
self.adhd_questions = self.load_questions_from_file("data/adhd_questions.txt")
|
19 |
+
self.anxiety_questions = self.load_questions_from_file("data/anxiety_questions.txt")
|
20 |
+
self.social_isolation_questions = self.load_questions_from_file("data/social_isolation.txt")
|
21 |
+
self.cyberbullying_questions = self.load_questions_from_file("data/cyberbullying.txt")
|
22 |
+
self.social_media_addiction_questions = self.load_questions_from_file("data/socialmediaaddiction.txt")
|
23 |
|
24 |
|
25 |
def load_questions_from_file(self, filename):
|