How yousefdg005/terms-web works
AI Legal Workspace is a Streamlit application for aligning Arabic–English legal text and extracting structured legal terminology. Users upload documents, prepare aligned bilingual units in the interactive studio, then provide the alignment to AI extraction and export terminology or translation-memory results. The implementation is concentrated in app.py; the README documents additional export and model capabilities. The excerpts show parts of the alignment and extraction flow, but not every parser, prompt, or export implementation.
Main entry points: app.py Streamlit workspace
Components 14
Document preparation
- Streamlit workspace
app.py - PDF text extraction
app.py - Text segmentation
app.py
Alignment studio
- Alignment editor
app.py - Aligned pairs
app.py - TMX generation
app.py
AI terminology
- TMX parsing
app.py - Legal prompt
app.py - Term extraction
app.py
Export and presentation
- Term results
app.py - Excel glossary
app.py - PDF term cards
app.py
Other components
- Workspace user
- OpenRouter models
Connections 21
- Workspace user → Streamlit workspace: uses
README.md - Streamlit workspace → PDF text extraction: accepts PDFs
app.py - PDF text extraction → Text segmentation: extracts text
app.py - Streamlit workspace → Text segmentation: prepares text
app.py - Streamlit workspace → Alignment editor: opens studio
app.py - Text segmentation → Alignment editor: provides segments
app.py - Alignment editor → Aligned pairs: updates pairs
app.py - Streamlit workspace → TMX generation: exports alignment
app.py - Aligned pairs → TMX generation: serializes pairs
README.md - Streamlit workspace → TMX parsing: accepts TMX
README.md - TMX generation → TMX parsing: supplies alignment
README.md - Streamlit workspace → Legal prompt: prepares instructions
README.md - Streamlit workspace → Term extraction: runs extraction
app.py - TMX parsing → Term extraction: provides bilingual pairs
README.md - Legal prompt → Term extraction: guides extraction
README.md - Term extraction → OpenRouter models: queries models
README.md - Term extraction → Term results: parses terms
app.py - Streamlit workspace → Excel glossary: exports glossary
README.md - Term results → Excel glossary: formats terms
README.md - Streamlit workspace → PDF term cards: exports cards
README.md - Term results → PDF term cards: renders terms
README.md