feat: add NER testing interface and evaluation statistics handling

This commit is contained in:
2025-08-17 15:33:16 +02:00
parent 6faf9f355e
commit f70b4be6e0
6 changed files with 207 additions and 22 deletions
+19
View File
@@ -0,0 +1,19 @@
import sys
from pathlib import Path
import streamlit as st
# Add parent directory to Python path to access core modules
parent_dir = Path(__file__).parent.parent.parent
sys.path.insert(0, str(parent_dir))
from web.interfaces.ner_testing import NERTesting
st.set_page_config(page_title="NER Testing", page_icon="🏷️", layout="wide")
if "config" in st.session_state:
ner_testing = NERTesting(st.session_state.config)
ner_testing.index()
else:
st.error("Please run the main app first to initialize the configuration.")
st.markdown("Go back to the [main page](/) to start the application.")