OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Treelstm.pytorch

Treelstm.pytorch is a Python and PyTorch implementation of Tree-Structured Long Short-Term Memory networks, with scripts to prepare parsed sentence data and train and evaluate semantic similarity models on the SICK dataset.

Independent OpenViST project profile, based on linked sources.

Treelstm.pytorch — Experiments that need a documented preprocessing-to-training workflow
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it for a research or development workflow centered on Tree-LSTM sentence representations and the SICK semantic similarity dataset.

Who it is for

  • Researchers studying tree-structured neural sentence representations.
  • Developers reproducing or adapting a Tree-LSTM semantic similarity experiment.

Documented uses

  • Prepare SICK examples with dependency parses and GloVe word vectors.
  • Train and evaluate a Tree-LSTM for sentence semantic similarity.
  • Inspect experiment logs and model checkpoints.
Before you choose

Requirements & limits

The repository is public and lists an MIT license. The README documents local Python and Docker workflows.

  • Preprocessing downloads the SICK dataset, Stanford tools and Common Crawl GloVe vectors, with the GloVe download noted as approximately 2 GB.
  • The documented stack includes Python, Java 8 or later, requirements.txt dependencies and PyTorch 0.4.0; PyTorch 0.3.1 is covered by a separate branch.
  • The README identifies differences in gradient accumulation as a factor when comparing results with the original paper.

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 data and train locally

Run the documented local Python workflow for SICK dataset training and evaluation.

Before you start

  • A Python environment
  • Java 8 or later for Stanford CoreNLP utilities
  • Dependencies in requirements.txt
  • Approximately 2 GB for the Common Crawl GloVe vectors

Steps

  1. Run bash fetch_and_preprocess.sh to obtain and preprocess the dataset, parser resources and word vectors.

  2. Install the project dependencies with pip install -r requirements.txt.

  3. Run python main.py to train and test the model on SICK.

Expected outcome

The script trains and evaluates the Tree-LSTM; logs and model checkpoints are saved under checkpoints/.

Guide limitations

  • The README identifies PyTorch 0.4.0 for the current instructions and directs PyTorch 0.3.1 users to a separate branch.
  • The README reports differences in gradient accumulation compared with the paper.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
11 November 2026
Original website title
dasguptar/treelstm.pytorch · Official homepage title · retained in its source language