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 - W1Fl/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

291 Commits
291 Commits

Folders and files

NameName
Last commit message
Last commit date
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

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

tf idf

Word2Vec

Efficient Estimation of Word Representations in Vector Space

Skip-Gram code

CBOW code

w2v

Seq2Seq

Sequence to Sequence Learning with Neural Networks

Seq2Seq code

CNNLanguageModel

Convolutional Neural Networks for Sentence Classification

CNN language model code

Seq2SeqAttention

Effective Approaches to Attention-based Neural Machine Translation

Seq2Seq Attention code

seq2seq attention

Transformer

Attention Is All You Need

Transformer code

transformer attention transformer attention line

ELMO

Deep contextualized word representations

ELMO code

GPT

Improving Language Understanding by Generative Pre-Training

GPT code

BERT

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

BERT code

My new attempt Bert with window mask

bert

About

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

mofanpy.com

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

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.