OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

R Net

R Net is a Python and TensorFlow implementation of a self-matching-network model for machine reading comprehension and passage-based question answering, using SQuAD data and pretrained GloVe word and character embeddings.

Independent OpenViST project profile, based on linked sources.

R Net — SQuAD-based machine-reading-comprehension experiments
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use R Net when you want to inspect or experiment with a documented TensorFlow implementation of passage-based question answering, or follow its training and local-demo workflow.

Who it is for

  • Developers exploring or adapting a TensorFlow question-answering implementation.
  • Researchers experimenting with SQuAD-based training, testing and debugging.
  • Users who want to try the model on custom passages and questions through its documented local HTML demo.

Documented uses

  • Prepare SQuAD data and GloVe embeddings for the model.
  • Train the question-answering model and adjust its hyperparameters.
  • Select test or debug mode for a trained model.
  • Try custom paragraphs and questions in the locally launched HTML demo.
Before you choose

Requirements & limits

  • The repository specifies Python 2.7 and TensorFlow 1.2 alongside NumPy, tqdm and spaCy.
  • Preprocessing uses SQuAD and pretrained GloVe embeddings for both words and characters.
  • The demo's documented batch size is 1.
  • The README reports overfitting and says reproducing the original paper's results remained work in progress.
  • The repository metadata lists an MIT license.

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

Prepare SQuAD data for R Net

Install the documented dependencies and preprocess the dataset and embeddings for the model workflow.

Before you start

  • Python 2.7
  • NumPy, tqdm, spaCy and TensorFlow 1.2
  • A cloned copy of the R Net repository

Steps

  1. Run pipenv install from the repository.

  2. Run the command below.

    Documented command
    bash setup.sh
  3. Enter the environment with pipenv shell.

  4. Run the command below to process SQuAD.

    Documented command
    python process.py --reduce_glove True --process True

Expected outcome

The README's one-time dataset processing stage is completed, ready for the separately documented model workflow.

Guide limitations

  • This guide covers data preparation only; it does not verify installation or model execution.
  • The repository documents an older Python and TensorFlow environment.
Source-based practical guide

Train, then select testing or debugging mode

Use the repository's documented commands and configuration to train the model and choose a subsequent test or debug run.

Before you start

  • The repository and processed data
  • The documented Python 2.7, NumPy, tqdm, spaCy and TensorFlow 1.2 environment

Steps

  1. Adjust hyperparameters in params.py as needed for the available GPU.

  2. Run the command below to train.

    Documented command
    python model.py
  3. For a later test or debug run, change mode="train" to debug or test in params.py, then run the model.

Expected outcome

The documented training workflow is followed, with test or debug mode selected through the configuration file.

Guide limitations

  • The README describes training as prone to overfitting and notes that reproducing the original paper's results was still in progress.
  • No hardware compatibility or successful execution is implied.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
localminimum/R-net · Official homepage title · retained in its source language