Spaces:
Running
Running
Create semantic_process.py
Browse files
modules/semantic/semantic_process.py
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import streamlit as st
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
from ..text_analysis.semantic_analysis import (
|
| 6 |
+
perform_semantic_analysis,
|
| 7 |
+
fig_to_bytes,
|
| 8 |
+
fig_to_html
|
| 9 |
+
identify_key_concepts,
|
| 10 |
+
create_concept_graph,
|
| 11 |
+
visualize_concept_graph,
|
| 12 |
+
create_entity_graph,
|
| 13 |
+
visualize_entity_graph,
|
| 14 |
+
create_topic_grap,
|
| 15 |
+
visualize_topic_graph,
|
| 16 |
+
generate_summary,
|
| 17 |
+
extract_entities,
|
| 18 |
+
analyze_sentiment,
|
| 19 |
+
extract_topics
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
from ..database.morphosintax_mongo_db import store_student_morphosyntax_result
|
| 23 |
+
|
| 24 |
+
import logging
|
| 25 |
+
logger = logging.getLogger(__name__)
|
| 26 |
+
|
| 27 |
+
|