Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -169,11 +169,12 @@ def visualize_cognitive_map(formatted_results):
|
|
169 |
|
170 |
return plt
|
171 |
|
|
|
|
|
172 |
extractor = NounExtractor(nlp=nlp)
|
173 |
|
174 |
-
|
175 |
-
|
176 |
-
causative_verb = ['affect', 'influence', 'increase', 'against']
|
177 |
|
178 |
# Define the callback function for the GUI
|
179 |
def CogMapAnalysis(text):
|
|
|
169 |
|
170 |
return plt
|
171 |
|
172 |
+
|
173 |
+
# Use the functions
|
174 |
extractor = NounExtractor(nlp=nlp)
|
175 |
|
176 |
+
words_list = ["so", "because", "increase", "contribute", "due to", "hence", "therefore", "as", "since"]
|
177 |
+
causative_verb = ['affect', 'influence', 'increase', 'against', "result", "lead", "drive", "cause", "make", "get", "let", "bring"]
|
|
|
178 |
|
179 |
# Define the callback function for the GUI
|
180 |
def CogMapAnalysis(text):
|