Skip to content

solitude-alive/nlp-demo

Repository files navigation

NLP Demo

  • Script and Dataset:

    data/CharacterLevel.py
    model/rnn.py
    CharacterLevelDemo.py
    dataset/character

  • Output

    Output/CharacterLevelDemo_xxx.png

  • Reference: PyTorch Tutorials
  • Script and Dataset:

    data/agnews.py
    model/rnn.py
    model/lstm.py
    AGnewsDemo.py

  • Reference: AI for Beginners
  • Script and Dataset:

    data/CharacterTranslation.py
    model/rnn.py
    model/attentionrnn.py
    CharacterTranslationDemo.py
    dataset/data

  • Output

    Output/CharacterTranslationDemo_xxx.png

  • Reference: PyTorch Tutorials

Quick Start

1. Install environment

conda env create -f environment.yml

2. Download the dataset

See the Dataset Download, the data will be saved in dataset directory.

3. Run the xxxdemo.py script

Releases

No releases published

Packages

No packages published

Languages