Update modules/discourse_analysis.py
Browse files
modules/discourse_analysis.py
CHANGED
|
@@ -3,7 +3,7 @@ import spacy
|
|
| 3 |
import networkx as nx
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
from collections import defaultdict
|
| 6 |
-
from .semantic_analysis import visualize_semantic_relations
|
| 7 |
|
| 8 |
def compare_semantic_analysis(text1, text2, nlp, lang):
|
| 9 |
doc1 = nlp(text1)
|
|
|
|
| 3 |
import networkx as nx
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
from collections import defaultdict
|
| 6 |
+
from .semantic_analysis import visualize_semantic_relations, create_semantic_graph, POS_COLORS, POS_TRANSLATIONS
|
| 7 |
|
| 8 |
def compare_semantic_analysis(text1, text2, nlp, lang):
|
| 9 |
doc1 = nlp(text1)
|