Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cnn-lstm-bilstm-deepcnn-clstm-in-pytorch

> 编程语言
Open source

In PyTorch Learing Neural Networks Likes CNN、BiLSTM

1.4K stars0 likes1 views
WebsiteGitHub

About

In PyTorch Learing Neural Networks Likes CNN、BiLSTM

Introduction

  • A classification task implement in pytorch, contains some neural networks in models.
  • Recenely, I've released the code.
    • old-version-17 release here
    • pytorch version == 0.3.1 release on here
  • This is a version of my own architecture --- pytorch-text-classification

  • BERT For Text Classification --- PyTorch_Bert_Text_Classification

Requirement

pyorch : 1.0.1
python : 3.6
torchtext: 0.2.1
cuda : 8.0 (support cuda speed up, can chose, default True)

Usage

modify the config file, see the Config directory(here) for detail.

1、python main.py
2、python main.py --config_file ./Config/config.cfg 
3、sh run.sh

Model

Contains some neural networks implement in pytorch, see the models for detail.

Data

SST-1 and SST-2.

Result

I haven't adjusted the hyper-parameters seriously, you can also see train log in here.

The following test set accuracy are based on the best dev set accuracy.

Data/Model % SST-1 % SST-2
CNN 46.1086 84.2943
Bi-LSTM 47.9186 86.3262
Bi-GRU 47.6923 86.7655

Reference

  • 基于pytorch的CNN-LSTM神经网络模型调参小结
  • Convolutional Neural Networks for Sentence Classification
  • Context-Sensitive Lexicon Features for Neural Sentiment Analysis

Issues· 2 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythoncnn-bilstmcnn-modelgruhighway-cnn

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言