A Streamlit-based NLP pipeline supporting English and Tigrinya. Features stopword elimination, lemmatization, frequency analysis, and compound relevance scoring.
# π NLP Graphic Tool
A modern NLP processing tool for **Tigrinya (α΅ααα)** and **English** text.
**π Live Demo:**
weldegebriel-tesfayhagos-nlβ¦
---
## π How to Use
1. **Access the App:** Open the Live Demo or run locally.
2. **Input Text:**
- Paste your text directly into the **Text Area**.
- Or **Upload** a `.txt` or `.md` file.
- You can also load built-in **Tigrinya/English samples** from the sidebar.
3. **Configure Pipeline:** (Optional) Use the sidebar to toggle:
- Language Auto-detection
- Stopword Elimination (Requirement 2.1)
- Lemmatization (Requirement 2.2)
4. **Analyze:** Click **π Analyze Document** to process the text.
5. **Explore Results:** Navigate through the interactive tabs:
- **Frequencies:** View term counts (Requirement 2.3).
- **Distances:** Analyze term positions relative to document boundaries (Requirement 2.4).
- **Compound Relevance:** See weighted importance scores (Requirement 2.5).
- **Visualizations:** Interactive charts and pie plots.
6. **Export:** Download your results as **CSV** or **JSON**.
---
## πΌοΈ User Interface
### Analysis Overview
### Interactive Insights
---
## π οΈ Local Setup
If you wish to run the tool locally:
```bash
# Clone the repository
git clone
cd nlp_graphic_tool
# Install dependencies
pip install -r requirements.txt
# Run the app
streamlit run app.py
```
---
## π Features & Requirements
- β
**Stopword Removal (2.1):** Support for English and Tigrinya.
- β
**Lemmatization (2.2):** Standard English lemmatizer.
- β
**Frequencies (2.3):** Full term count calculations.
- β
**Distance Metrics (2.4):** Early/Late position analysis.
- β
**Compound Relevance (2.5):** 50% Frequency + 50% Earliness.
- π **Dual Language:** Smart detection of Tigrinya and English.
- π **Visualizations:** Powered by Plotly.
---
*Developed for NLP Research Assignment Option 2.*