• Stars
    star
    1,203
  • Rank 38,647 (Top 0.8 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

Awesome-ChatGPT

ChatGPT资料汇总学习,持续更新......
4,043
star
2

Awesome-Law-NLP-Research-Work

Awesome Law NLP Research Work, Paper, Competition, Onlline System
407
star
3

cw2vec

cw2vec: Learning Chinese Word Embeddings with Stroke n-gram Information
C++
275
star
4

corpus_process_script

chinese and english corpus process script, python, c++, java
Python
193
star
5

pytorch_word2vec

Use pytorch to implement word2vec
Python
147
star
6

Word_Similarity_and_Word_Analogy

Word Similarity and Word Analogy Task scripts
Python
72
star
7

pytorch_Highway_Networks

Highway Networks implement in pytorch
Python
71
star
8

pytorch_SRU

SRU implement in pytorch(Training RNNs as Fast as CNNs)
Python
42
star
9

pytorch_Joint-Word-Segmentation-and-POS-Tagging

Paper: A Simple and Effective Neural Model for Joint Word Segmentation and POS Tagging
Python
36
star
10

PyTorch_Bert_Text_Classification

PyTorch Bert Text Classification
Python
31
star
11

Legal_Judgment_Prediction_BiLSTM_ATT

Legal Juegment Prediction (LJP) with BiLSTM and Attention
Python
14
star
12

PyTorch-Bert-BiLSTM-ATT-LJP

PyTorch-Bert-BiLSTM-ATT-LJP
Python
14
star
13

PyTorch_Chinese_word_segmentation

Chinese word segmentation with the neural seq2seq model implement in pytorch
Python
9
star
14

pytorch_text_classification

text classification with my own architecture
Python
8
star
15

pytorch_Sequence_Label

Sequence Label(NER: Named Entity Recognition) implement in pytorch
Python
4
star
16

pytorch_CNN_LSTM

CNN LSTM implement in pytorch
Python
4
star
17

pytorch_Embedding_Packed

package the function of nn.Embedding, nn.Dropout() in pytorch for use
Python
3
star
18

SVM_TFIDF_LJP

legal juegement prediction with SVM_TFIDF
Python
2
star
19

pytorch_Joint-Word-Segmentation-And-POS-Tagging-old

pytorch_seq2seq_wordseg_and_postag
Python
2
star
20

pytorch_POS_NER_Chunking

Part-of-Speech Tagging(POS), Named Entity Recognition(NER) and Chunking implement in pytorch
Python
2
star
21

pytorch_document_classification

Text classification on document level implement in pytorch
Python
1
star
22

Python

Python
1
star
23

Cpp_extract_giga_word_pair

extract_giga_word_pair implement in c++
C++
1
star
24

pytorch_sentence_classification

Text classification for sentence level that implement in pytorch
Python
1
star
25

pytorch_seq2seq_wordseg_and_postag_version2

pytorch_seq2seq_wordseg_and_postag_version2
Python
1
star
26

word2vec

word2vec implement in c++ and in pytorch
C++
1
star