# erfan226/sharif-mgtd architecture

> Architecture diagram of the GitHub repository erfan226/sharif-mgtd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/erfan226/sharif-mgtd
- Repository: https://github.com/erfan226/sharif-mgtd

## Overview

This is a notebook-based research demo for detecting machine-generated text with RoBERTa. The documented workflow is to run the notebook in Jupyter: provide text, use RoBERTa for detection, and obtain a result. The README does not describe the notebook’s internal stages or data handling, so the graph keeps the workflow at that level.

Main entry points: [`notebook.ipynb`](https://github.com/erfan226/sharif-mgtd/blob/main/notebook.ipynb) (Detection notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Notebook user"))
node_notebook["Detection notebook<br/>[notebook.ipynb]"]
node_roberta["RoBERTa model"]
node_result["Detection result"]

node_user -->|"runs with text"| node_notebook
node_notebook -->|"uses for detection"| node_roberta
node_notebook -->|"produces"| node_result

click node_notebook "https://github.com/erfan226/sharif-mgtd/blob/main/notebook.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_notebook toneTeal
class node_roberta,node_result toneIndigo
```

## Components

### Other components

- **Notebook user**
- [Detection notebook](https://github.com/erfan226/sharif-mgtd/blob/main/notebook.ipynb): `notebook.ipynb`
- **RoBERTa model**
- **Detection result**

## Connections

- Notebook user → Detection notebook: runs with text
- Detection notebook → RoBERTa model: uses for detection
- Detection notebook → Detection result: produces
