GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MorvanZhou/NLP-Tutorials: Simple implementations of NLP models. Tutorials are written in Chinese on my website https://mofanpy.com

BranchesTags
Open more actions menu

Latest commit

 

History

321 Commits
321 Commits

Folders and files

NameName
Last commit message
Last commit date
pytorch
pytorch
 
 
simple_realize
simple_realize
 
 
.gitignore
.gitignore
 
 
BERT.py
BERT.py
 
 
BERT_window_mask.py
BERT_window_mask.py
 
 
BLEU.py
BLEU.py
 
 
CBOW.py
CBOW.py
 
 
ELMo.py
ELMo.py
 
 
GPT.py
GPT.py
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cnn-lm.py
cnn-lm.py
 
 
requirements.txt
requirements.txt
 
 
seq2seq.py
seq2seq.py
 
 
seq2seq_attention.py
seq2seq_attention.py
 
 
skip-gram.py
skip-gram.py
 
 
tf_idf.py
tf_idf.py
 
 
tf_idf_sklearn.py
tf_idf_sklearn.py
 
 
transformer.py
transformer.py
 
 
utils.py
utils.py
 
 
visual.py
visual.py
 
 

Repository files navigation

Natural Language Processing Tutorial

Tutorial in Chinese can be found in mofanpy.com.

This repo includes many simple implementations of models in Neural Language Processing (NLP).

All code implementations in this tutorial are organized as following:

  1. Search Engine
  • TF-IDF numpy / TF-IDF skearn
  1. Understand Word (W2V)
  • Continuous Bag of Words (CBOW)
  • Skip-Gram
  1. Understand Sentence (Seq2Seq)
  • seq2seq
  • CNN language model
  1. All about Attention
  • seq2seq with attention
  • Transformer
  1. Pretrained Models
  • ELMo
  • GPT
  • BERT

Thanks for the contribution made by @W1Fl with a simplified keras codes in simple_realize. And the a pytorch version of this NLP tutorial made by @ruifanxu.

Installation

$ git clone https://github.com/MorvanZhou/NLP-Tutorials
$ cd NLP-Tutorials/
$ sudo pip3 install -r requirements.txt

TF-IDF

TF-IDF numpy code

TF-IDF short sklearn code

image

Word2Vec

Efficient Estimation of Word Representations in Vector Space

Skip-Gram code

CBOW code

image image image

Seq2Seq

Sequence to Sequence Learning with Neural Networks

Seq2Seq code

image

CNNLanguageModel

Convolutional Neural Networks for Sentence Classification

CNN language model code

image

Seq2SeqAttention

Effective Approaches to Attention-based Neural Machine Translation

Seq2Seq Attention code

image image

Transformer

Attention Is All You Need

Transformer code

image image image

ELMO

Deep contextualized word representations

ELMO code

image image

GPT

Improving Language Understanding by Generative Pre-Training

GPT code

image image

BERT

BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding

BERT code

My new attempt Bert with window mask

image image

About

Simple implementations of NLP models. Tutorials are written in Chinese on my website https://mofanpy.com

mofanpy.com

Topics

attentionbertelmogptnlpseq2seqtransformertutorialw2v

Resources

Readme
MIT license
Activity

Stars

952 stars

Watchers

16 watching

Forks

316 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.