← Open Source
MorvanZhou

NLP-Tutorials

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

TutorialsML/AI fundamentalsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
952
Stars
315
Forks
+0
This week
6
Contributors
Created 2018-11-30 · Updated 2026-09-01 · #12422 today
Top developers
MorvanZhouW1Flruifanxu

MorvanZhou/NLP-Tutorials is ranked 12,422 with 952 stars.

Same-category comparison

MorvanZhou/NLP-Tutorials is ranked 12,422 among these 8 peers; gabrieleangeletti/Deep-Learning-TensorFlow is ranked 12,411.

Same-category comparison
NameRankMetrics
movidius/ncappzoo12,378
Language:
Python
Stars:
960
Forks:
371
Description:
Contains examples for the Movidius Neural Compute Stick.
llSourcell/Machine_Learning_Journey12,394
Stars:
957
Forks:
245
Description:
This is the Curriculum for "Machine Learning Journey" By Siraj Raval on Youtube.
PanJinquan/tensorflow_models_learning12,405
Language:
Python
Stars:
954
Forks:
286
Description:
tensorflow GoogleNet inception V1 V2 V3 V4.
gabrieleangeletti/Deep-Learning-TensorFlow12,411
Language:
Python
Stars:
954
Forks:
364
Description:
Ready to use implementations of various Deep Learning algorithms using TensorFlow.
llSourcell/LearnML12,433
Stars:
951
Forks:
178
Description:
This is the Study Guide for Learn Machine Learning in 3 Months (PyTorch Curriculum) by Siraj Raval on Youtube.
weaviate/recipes12,442
Language:
Jupyter Notebook
Stars:
950
Forks:
199
Description:
This repository shares end-to-end notebooks on how to use various Weaviate features and integrations.
lansinuote/Huggingface_Toturials12,453
Language:
Jupyter Notebook
Stars:
948
Forks:
247
Description:
bert-base-chinese example.
tdpetrou/Machine-Learning-Books-With-Python12,475
Language:
Jupyter Notebook
Stars:
945
Forks:
569
Description:
Chapter by Chapter notes, exercises and code for a variety of machine learning books using Python.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryTutorials
SubcategoryML/AI fundamentals
Stars952
Forks315
Contributors6
Created date2018-11-30
Updated date2026-09-01
Stars in 1 day0
Stars in 7 days0
Rank12,422
Previous rank12,346
Rank change-76
7-day stars rank13,412
Previous 7-day stars rank13,427
7-day stars rank change15
Total stars rank11,581
Previous total stars rank11,559
Total stars rank change-22
CountryChina
README summary

Natural Language Processing Tutorial Tutorial in Chinese can be found in mofanpy. 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 2. Understand Word (W2V) Continuous Bag of Words (CBOW) Skip-Gram 3. Understand Sentence (Seq2Seq) seq2seq CNN language model 4. All about Attention seq2seq with attention Transformer 5. 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 TF-IDF TF-IDF numpy code TF-IDF short sklearn code Word2Vec Efficient Estimation of Word Representations in Vector Space Skip-Gram code CBOW code 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 Transformer Attention Is All You Need Transformer code 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

Frequently asked questions

How many stars and forks are recorded?

MorvanZhou/NLP-Tutorials has 952 stars and 315 forks.

What is the repository rank?

MorvanZhou/NLP-Tutorials is ranked 12,422.

What language and category are recorded?

MorvanZhou/NLP-Tutorials has 952 stars, uses Python and belongs to Tutorials.

Which repository is closest in rank?

MorvanZhou/NLP-Tutorials is compared with gabrieleangeletti/Deep-Learning-TensorFlow, ranked 12,411 with 954 stars.

README

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
  1. Understand Word (W2V)
  1. Understand Sentence (Seq2Seq)
  1. All about Attention
  1. Pretrained Models

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

Word2Vec

Efficient Estimation of Word Representations in Vector Space

Skip-Gram code

CBOW code

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

Transformer

Attention Is All You Need

Transformer code

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

Nearby in the ranking
Similar items