File size: 1,398 Bytes
b72d77f
2092878
b72d77f
 
 
 
 
 
 
 
 
 
bc07c99
b72d77f
bc07c99
 
 
2092878
bc07c99
2092878
bc07c99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2092878
b72d77f
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
47
48
49
50
51
52
53
54
55
56
---
title: Markdown To CSV Converter (for Threadscope)
emoji: 🏢
colorFrom: green
colorTo: green
sdk: gradio
sdk_version: 6.3.0
app_file: app.py
pinned: false
license: mit
short_description: 'Turn .md / .txt into csv '
---
## What this tool does

This tool converts structured chat transcripts written in Markdown or plain text
into a canonical turn-level CSV format suitable for analysis with **Threadscope:
Drift & Hold**.

## Supported transcript format

This converter expects transcripts that use explicit speaker markers, for example:

- 'You said: Hello'
- 'ChatGPT said: Hi there'

Marker strings are configurable in the UI, but the transcript must follow a
consistent “marker → content” pattern.

## Not supported

- Arbitrarily formatted prose
- Chat logs without explicit speaker markers
- Exported HTML or JSON without preprocessing

## Output

The generated CSV includes the following columns:

- `turn`
- `speaker`
- `chars`
- `words`
- `tokens_est` (lightweight estimate)

## How this fits into the Threadbourne lab

This tool is intended as a preprocessing step for use with
**Threadscope: Drift & Hold**, which visualizes long-form interaction dynamics
such as drift, stability, and perturbation response.

## Privacy

Files are processed in-session only and are not stored.

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