import streamlit as st
# Custom CSS with modern design and animations
st.markdown("""
""", unsafe_allow_html=True)
# Sidebar with navigation
with st.sidebar:
st.header("🔍 Navigation")
page_section = st.radio("Jump to:", [
"Basic Terms",
"Tokenization",
"Vectorization",
"Advanced Concepts"
])
# Main content
st.markdown("""
📚 NLP Terminology Explorer
""", unsafe_allow_html=True)
# Basic Terms Section
if page_section == "Basic Terms":
st.markdown("### 🔍 Foundational Concepts")
terms = [
("📚 Corpus", "A collection of documents"),
("📄 Document", "Collection of sentences, paragraphs, or text elements"),
("📝 Paragraph", "Multiple sentences forming a coherent block"),
("💬 Sentence", "Complete grammatical unit of words"),
("🔤 Word", "Basic unit of language with meaning"),
("🔠 Character", "Individual letters, numbers, or symbols")
]
for term, definition in terms:
with st.expander(term):
st.markdown(f"""