Update modules/text_analysis/discourse_analysis.py
Browse files
modules/text_analysis/discourse_analysis.py
CHANGED
@@ -8,6 +8,7 @@ from .semantic_analysis import (
|
|
8 |
create_concept_graph,
|
9 |
visualize_concept_graph,
|
10 |
identify_key_concepts,
|
|
|
11 |
POS_COLORS,
|
12 |
POS_TRANSLATIONS,
|
13 |
ENTITY_LABELS
|
@@ -56,8 +57,8 @@ def perform_discourse_analysis(text1, text2, nlp, lang):
|
|
56 |
doc2 = nlp(text2)
|
57 |
|
58 |
# Identificar conceptos clave
|
59 |
-
key_concepts1 = identify_key_concepts(doc1)
|
60 |
-
key_concepts2 = identify_key_concepts(doc2)
|
61 |
|
62 |
# Crear grafos de conceptos
|
63 |
G1 = create_concept_graph(doc1, key_concepts1)
|
|
|
8 |
create_concept_graph,
|
9 |
visualize_concept_graph,
|
10 |
identify_key_concepts,
|
11 |
+
get_stopwords,
|
12 |
POS_COLORS,
|
13 |
POS_TRANSLATIONS,
|
14 |
ENTITY_LABELS
|
|
|
57 |
doc2 = nlp(text2)
|
58 |
|
59 |
# Identificar conceptos clave
|
60 |
+
key_concepts1 = identify_key_concepts(doc1, min_freq=2, min_length=3)
|
61 |
+
key_concepts2 = identify_key_concepts(doc2, min_freq=2, min_length=3)
|
62 |
|
63 |
# Crear grafos de conceptos
|
64 |
G1 = create_concept_graph(doc1, key_concepts1)
|