File size: 885 Bytes
90d92da
0d74196
 
 
 
 
2468461
0d74196
b4d17b5
90d92da
 
 
 
e954f40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2468461
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
---
title: DiMa_DeMo
emoji: 
colorFrom: pink
colorTo: indigo
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
python_version: "3.10"
pinned: false
---

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

# DiMa_new — Demo Space

**What it does:**  
1) Takes an **English** sentence  
2) Translates to **Russian**  
3) Detects **candidate** discourse markers using the gazetteer shipped with `MariaOls/DiMa_new`  
4) Marks `<cand> … </cand>`, classifies `dm` vs `not_dm`  
5) Returns **only** the candidates considered `dm` (otherwise prints “no DMs found”)

**Model:** [`MariaOls/DiMa_new`](https://huggingface.co/MariaOls/DiMa_new)

> Note: Translation quality affects detection. This is a tiny, poster-friendly demo — not a production system.

## Run locally (optional)

```bash
pip install -r requirements.txt
python app.py