File size: 1,345 Bytes
3f62666
 
 
 
 
 
 
 
 
 
9c2de1e
3f62666
9c2de1e
3f62666
9c2de1e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: SEMA
emoji: πŸ“ˆ
colorFrom: indigo
colorTo: gray
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
license: mit
short_description: 'SEMA: Analyze sentence similarity, sentiment, and more'
---
# πŸ§ͺ SEMA: Semantic Evaluation & Matching Analyzer

SEMA is an interactive Gradio-powered NLP tool for analyzing semantic similarity, paraphrasing, sentiment, and linguistic features between two sentences.

## πŸš€ Features

- βœ… Sentence similarity scoring (BERT/SBERT models)
- πŸ“Š Visual similarity charts (Bar, Gauge, Heatmap)
- πŸ”„ Paraphrase detection and generation
- πŸ’¬ Sentiment analysis (transformers-based)
- 🧠 Named Entity Recognition (NER)
- 🧾 POS tagging with visual distribution (Pie chart)
- πŸ“š Text statistics: word counts, overlap, character counts

## πŸ”§ Models Used

- Sentence Transformers:
  - `all-MiniLM-L6-v2`
  - `paraphrase-MiniLM-L3-v2`
  - `paraphrase-multilingual-MiniLM-L12-v2`
  - `distilbert-base-nli-mean-tokens`
- Paraphraser: `ramsrigouthamg/t5_paraphraser`
- Sentiment: Hugging Face sentiment-analysis pipeline
- NER/POS: spaCy (`en_core_web_trf`)

## πŸ› οΈ Setup

```bash
git clone https://github.com/adityasync/SEMA.git
cd SEMA
pip install -r requirements.txt
python app.py

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference