Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -173,8 +173,11 @@ def visualize_cognitive_map(formatted_results):
|
|
173 |
# Use the functions
|
174 |
extractor = NounExtractor(nlp=nlp)
|
175 |
|
176 |
-
|
177 |
-
|
|
|
|
|
|
|
178 |
|
179 |
# Define the callback function for the GUI
|
180 |
def CogMapAnalysis(text):
|
|
|
173 |
# Use the functions
|
174 |
extractor = NounExtractor(nlp=nlp)
|
175 |
|
176 |
+
extractor = NounExtractor(nlp=nlp)
|
177 |
+
|
178 |
+
# Example of how to use this function
|
179 |
+
words_list = ["so", "because", "increase", "contribute", "due to"]
|
180 |
+
action_verb = ['affect', 'influence', 'increase', 'against']
|
181 |
|
182 |
# Define the callback function for the GUI
|
183 |
def CogMapAnalysis(text):
|