Spaces:
Sleeping
Sleeping
Update modules/text_analysis/semantic_analysis.py
Browse files
modules/text_analysis/semantic_analysis.py
CHANGED
@@ -373,13 +373,13 @@ def visualize_concept_graph(G, lang_code, semantic_t):
|
|
373 |
)
|
374 |
#################################################################
|
375 |
# Usar semantic_t para obtener las traducciones
|
376 |
-
plt.title(semantic_t.get('concept_network', '
|
377 |
|
378 |
# Leyenda de centralidad (traducida)
|
379 |
sm = plt.cm.ScalarMappable(cmap=plt.cm.viridis, norm=plt.Normalize(vmin=0, vmax=1))
|
380 |
sm.set_array([])
|
381 |
cbar = plt.colorbar(sm, ax=ax)
|
382 |
-
cbar.set_label(semantic_t.get('concept_centrality', '
|
383 |
|
384 |
ax.set_axis_off()
|
385 |
plt.tight_layout()
|
|
|
373 |
)
|
374 |
#################################################################
|
375 |
# Usar semantic_t para obtener las traducciones
|
376 |
+
plt.title(semantic_t.get('concept_network', 'Relationships between key concepts'), pad=20, fontsize=14)
|
377 |
|
378 |
# Leyenda de centralidad (traducida)
|
379 |
sm = plt.cm.ScalarMappable(cmap=plt.cm.viridis, norm=plt.Normalize(vmin=0, vmax=1))
|
380 |
sm.set_array([])
|
381 |
cbar = plt.colorbar(sm, ax=ax)
|
382 |
+
cbar.set_label(semantic_t.get('concept_centrality', 'Centrality of key concepts'))
|
383 |
|
384 |
ax.set_axis_off()
|
385 |
plt.tight_layout()
|