# sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset architecture

> Architecture diagram of the GitHub repository sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset
- Repository: https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset

## Overview

This repository is a notebook-based ArXiv paper classification and topic-modeling project. Its documented workflow takes a parsed paper subset through text preprocessing and TF-IDF, then applies supervised classifiers and LDA; evaluation compares classifier performance, and pyLDAvis presents topic results. The tree includes cleaned train, validation, and test CSVs as well as the subset. No notebook source excerpts were provided, so the graph uses only relationships stated in the README and does not infer notebook cell-level calls or the role of index.html.

Main entry points: [`ArXiv Papers Classification.ipynb`](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb) (TF-IDF vectors), [`arxiv_subset.csv`](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/arxiv_subset.csv) (Paper subset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Paper data"]
  node_subset[("Paper subset<br/>[arxiv_subset.csv]")]
  node_train[("Training data")]
  node_validation[("Validation data<br/>[X_val_cleaned.csv]")]
  node_test[("Test data<br/>[X_test_cleaned.csv]")]
end

subgraph group_pipeline["Text pipeline"]
  node_preprocessing["Text preprocessing"]
  node_tfidf["TF-IDF vectors"]
end

subgraph group_analysis["Model analysis"]
  node_svm["Linear SVM"]
  node_random_forest["Random Forest"]
  node_knn["K-nearest neighbors"]
  node_lda["LDA topics"]
end

subgraph group_results["Results and visualization"]
  node_evaluation["Classifier evaluation"]
  node_visualization["Topic visualization"]
end

node_arxiv(("ArXiv source"))

node_arxiv -->|"parsed into"| node_subset
node_subset -->|"preprocessed"| node_preprocessing
node_preprocessing -->|"converted to"| node_tfidf
node_tfidf -->|"feeds"| node_svm
node_tfidf -->|"feeds"| node_random_forest
node_tfidf -->|"feeds"| node_knn
node_tfidf -->|"feeds"| node_lda
node_svm -->|"evaluated by"| node_evaluation
node_random_forest -->|"evaluated by"| node_evaluation
node_knn -->|"evaluated by"| node_evaluation
node_lda -->|"visualized by"| node_visualization

click node_subset "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/arxiv_subset.csv"
click node_train "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/X_train_cleaned.csv"
click node_validation "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/X_val_cleaned.csv"
click node_test "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/X_test_cleaned.csv"
click node_preprocessing "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb"
click node_tfidf "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb"
click node_svm "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb"
click node_random_forest "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb"
click node_knn "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb"
click node_lda "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb"
click node_evaluation "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb"
click node_visualization "https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.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_subset,node_train,node_validation,node_test toneBlue
class node_preprocessing,node_tfidf toneAmber
class node_svm,node_random_forest,node_knn,node_lda toneMint
class node_evaluation,node_visualization toneRose
class node_arxiv toneIndigo
```

## Components

### Paper data

- [Paper subset](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/arxiv_subset.csv): `arxiv_subset.csv`
- [Training data](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/X_train_cleaned.csv): `X_train_cleaned.csv`
- [Validation data](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/X_val_cleaned.csv): `X_val_cleaned.csv`
- [Test data](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/X_test_cleaned.csv): `X_test_cleaned.csv`

### Text pipeline

- [Text preprocessing](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`
- [TF-IDF vectors](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`

### Model analysis

- [Linear SVM](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`
- [Random Forest](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`
- [K-nearest neighbors](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`
- [LDA topics](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`

### Results and visualization

- [Classifier evaluation](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`
- [Topic visualization](https://github.com/sravyasree5/nlp-text-classifier-for-topic-modelling--arxiv-dataset/blob/main/ArXiv%20Papers%20Classification.ipynb): `ArXiv Papers Classification.ipynb`

### Other components

- **ArXiv source**

## Connections

- ArXiv source → Paper subset: parsed into (evidence: `README.md`)
- Paper subset → Text preprocessing: preprocessed (evidence: `README.md`)
- Text preprocessing → TF-IDF vectors: converted to (evidence: `README.md`)
- TF-IDF vectors → Linear SVM: feeds (evidence: `README.md`)
- TF-IDF vectors → Random Forest: feeds (evidence: `README.md`)
- TF-IDF vectors → K-nearest neighbors: feeds (evidence: `README.md`)
- TF-IDF vectors → LDA topics: feeds (evidence: `README.md`)
- Linear SVM → Classifier evaluation: evaluated by (evidence: `README.md`)
- Random Forest → Classifier evaluation: evaluated by (evidence: `README.md`)
- K-nearest neighbors → Classifier evaluation: evaluated by (evidence: `README.md`)
- LDA topics → Topic visualization: visualized by (evidence: `README.md`)
