OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Text Gcn

Text GCN is a Python research implementation of a graph convolutional network method for classifying text documents. It builds a graph from a corpus and trains on labeled-document datasets.

Independent OpenViST project profile, based on linked sources.

Text Gcn — Reproduce results on a documented dataset
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it for experiments where a graph-based text-classification workflow and the repository's documented Python and TensorFlow requirements fit the task.

Who it is for

  • Researchers reproducing the Text GCN paper's text-classification results.
  • Developers preparing labeled document collections for graph-based classification experiments.

Documented uses

  • Run the documented preprocessing, graph construction and training workflow on listed datasets.
  • Prepare custom text data using aligned document metadata and raw-text files.
Before you choose

Requirements & limits

The repository is public and identified as open source.

  • The README specifies Python 2.7 or 3.6 and TensorFlow 1.4.0 or later.
  • Custom data must align metadata entries with raw-text lines and remove newline characters from documents or sentences.
  • The linked fast_text_gcn version is described as inductive, with test documents excluded from training.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Reproduce results on a documented dataset

Run the documented preprocessing, graph-building and training sequence for 20ng or another listed dataset.

Before you start

  • Python 2.7 or 3.6
  • TensorFlow 1.4.0 or later

Steps

  1. Run the command below.

    Documented command
    python remove_words.py 20ng
  2. Run the command below.

    Documented command
    python build_graph.py 20ng
  3. Run the command below.

    Documented command
    python train.py 20ng
  4. For the other listed datasets, replace 20ng in all three commands with R8, R52, ohsumed or mr.

Expected outcome

The repository's documented sequence for training Text GCN on the selected dataset.

Guide limitations

  • The README describes commands for reproducing results but does not provide benchmark outcomes here.
Source-based practical guide

Prepare custom text-classification data

Format custom documents using the repository's example data-preparation guidance.

Before you start

  • Document names, training/test split and labels, with one document per line in the metadata file.
  • Raw document text in a corresponding corpus file, with each line aligned to the metadata entry.

Steps

  1. Create the metadata file with document names, split information and labels.

  2. Create the corpus file with the corresponding raw text, one document per line.

  3. Use prepare_data.py as the example for preparing the data, removing newline characters from documents or sentences.

Expected outcome

Custom text data arranged in the input structure described by the README.

Guide limitations

  • The README gives an example preparation script, not a complete custom-data training procedure.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
3 November 2026
Original website title
yao8839836/text_gcn · Official homepage title · retained in its source language

Related options

fast_text_gcn — The README identifies it as an inductive version of Text GCN in which test documents are not included in training.