# yangbin1729/nlp_notes architecture

> Architecture diagram of the GitHub repository yangbin1729/nlp_notes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yangbin1729/nlp_notes
- Repository: https://github.com/yangbin1729/nlp_notes

## Overview

This repository is a set of Chinese-language machine-learning and NLP learning notes, not a single executable application. Its main user journey is a learner moving from foundational models and neural-network concepts through framework examples, NLP methods and tasks, then model deployment. The README also documents parallel branches for classical search, machine learning, computer vision, generative models, and pretrained language models. The graph represents documented learning progression and capabilities, not runtime calls between notebooks; internal BERT components are grouped by their source directories.

Main entry points: [`06-自然语言处理/30-Transformer模型及源代码(PyTorch).ipynb`](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/30-Transformer%E6%A8%A1%E5%9E%8B%E5%8F%8A%E6%BA%90%E4%BB%A3%E7%A0%81(PyTorch).ipynb) (Attention and Transformers), [`07-模型部署`](https://github.com/yangbin1729/nlp_notes/tree/master/07-%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2) (Model Deployment Notes), [`06-自然语言处理/42-BERT模型详解及代码实现(Tensorflow).py`](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/42-BERT%E6%A8%A1%E5%9E%8B%E8%AF%A6%E8%A7%A3%E5%8F%8A%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0(Tensorflow).py) (BERT Reference Model), [`06-自然语言处理/00-文本处理的基本流程.ipynb`](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/00-%E6%96%87%E6%9C%AC%E5%A4%84%E7%90%86%E7%9A%84%E5%9F%BA%E6%9C%AC%E6%B5%81%E7%A8%8B.ipynb) (Text Processing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Foundations"]
  node_traditional["Rules and Search"]
  node_ml["Machine Learning"]
  node_nn["Neural Nets from Scratch"]
end

subgraph group_frameworks["Frameworks"]
  node_tf_notes["TensorFlow Notes"]
  node_torch_notes["PyTorch Notes"]
end

subgraph group_deep_learning["Deep Learning"]
  node_vision["Vision and Deep Learning"]
end

subgraph group_nlp["NLP"]
  node_text_basics["Text Processing<br/>[00-文本处理的基本流程.ipynb]"]
  node_representations["Text Representations<br/>[04-文档向量.py]"]
  node_classical_nlp["Classical NLP<br/>[09-LDA主题模型.ipynb]"]
  node_sequence_tasks["Sequence Tasks"]
  node_attention_transformers["Attention and Transformers"]
  node_bert_layers["BERT Layers"]
  node_bert_encoder["BERT Encoders"]
  node_bert_reference["BERT Reference Model"]
  node_bert_tasks["Pretrained NLP Tasks"]
  node_gpt["GPT Text Generation"]
end

subgraph group_deployment["Deployment"]
  node_deployment_notes["Model Deployment Notes"]
  node_tensorflow_serving["TensorFlow Serving"]
  node_pytorch_deployment["PyTorch Deployment<br/>[部署PyTorch模型.ipynb]"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_traditional
node_learner -->|"studies"| node_ml
node_learner -->|"studies"| node_nn
node_learner -->|"studies"| node_tf_notes
node_learner -->|"studies"| node_torch_notes
node_learner -->|"studies"| node_vision
node_learner -->|"studies"| node_text_basics
node_text_basics -->|"continues to"| node_representations
node_representations -->|"continues to"| node_classical_nlp
node_classical_nlp -->|"continues to"| node_sequence_tasks
node_sequence_tasks -->|"continues to"| node_attention_transformers
node_attention_transformers -->|"continues to"| node_bert_reference
node_bert_reference -->|"supports study of"| node_bert_tasks
node_bert_layers -.->|"builds"| node_bert_encoder
node_bert_encoder -.->|"implements encoder for"| node_bert_reference
node_attention_transformers -->|"continues to"| node_gpt
node_learner -->|"studies"| node_deployment_notes
node_deployment_notes -->|"covers"| node_tensorflow_serving
node_deployment_notes -->|"covers"| node_pytorch_deployment

click node_traditional "https://github.com/yangbin1729/nlp_notes/tree/master/01-%E4%BC%A0%E7%BB%9F%E6%A8%A1%E5%9E%8B"
click node_ml "https://github.com/yangbin1729/nlp_notes/tree/master/02-%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0"
click node_nn "https://github.com/yangbin1729/nlp_notes/tree/master/03-%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9CPython%E5%AE%9E%E7%8E%B0"
click node_tf_notes "https://github.com/yangbin1729/nlp_notes/tree/master/04-%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/TensorFlow"
click node_torch_notes "https://github.com/yangbin1729/nlp_notes/tree/master/04-%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/Torch"
click node_vision "https://github.com/yangbin1729/nlp_notes/tree/master/05-%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0"
click node_text_basics "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/00-%E6%96%87%E6%9C%AC%E5%A4%84%E7%90%86%E7%9A%84%E5%9F%BA%E6%9C%AC%E6%B5%81%E7%A8%8B.ipynb"
click node_representations "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/04-%E6%96%87%E6%A1%A3%E5%90%91%E9%87%8F.py"
click node_classical_nlp "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/09-LDA%E4%B8%BB%E9%A2%98%E6%A8%A1%E5%9E%8B.ipynb"
click node_sequence_tasks "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/13-%E5%9F%BA%E4%BA%8EBiLSTM%E5%92%8CCRF%E7%AE%97%E6%B3%95%E7%9A%84%E5%91%BD%E5%90%8D%E5%AE%9E%E4%BD%93%E8%AF%86%E5%88%AB(PyTorch).ipynb"
click node_attention_transformers "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/30-Transformer%E6%A8%A1%E5%9E%8B%E5%8F%8A%E6%BA%90%E4%BB%A3%E7%A0%81(PyTorch).ipynb"
click node_bert_layers "https://github.com/yangbin1729/nlp_notes/tree/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/40-bert-modeling(TensorFlow)/layers"
click node_bert_encoder "https://github.com/yangbin1729/nlp_notes/tree/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/40-bert-modeling(TensorFlow)/networks"
click node_bert_reference "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/42-BERT%E6%A8%A1%E5%9E%8B%E8%AF%A6%E8%A7%A3%E5%8F%8A%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0(Tensorflow).py"
click node_bert_tasks "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/45-%E5%9F%BA%E4%BA%8EBERT%E7%9A%84%E6%96%87%E6%9C%AC%E5%88%86%E7%B1%BB.ipynb"
click node_gpt "https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/66-miniGPT(TensorFlow).py"
click node_deployment_notes "https://github.com/yangbin1729/nlp_notes/tree/master/07-%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2"
click node_tensorflow_serving "https://github.com/yangbin1729/nlp_notes/blob/master/07-%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2/tensorflow-serving.ipynb"
click node_pytorch_deployment "https://github.com/yangbin1729/nlp_notes/blob/master/07-%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2/%E9%83%A8%E7%BD%B2PyTorch%E6%A8%A1%E5%9E%8B.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_traditional,node_ml,node_nn toneBlue
class node_tf_notes,node_torch_notes toneAmber
class node_vision toneMint
class node_text_basics,node_representations,node_classical_nlp,node_sequence_tasks,node_attention_transformers,node_bert_layers,node_bert_encoder,node_bert_reference,node_bert_tasks,node_gpt toneRose
class node_deployment_notes,node_tensorflow_serving,node_pytorch_deployment,node_learner toneIndigo
```

## Components

### Foundations

- [Rules and Search](https://github.com/yangbin1729/nlp_notes/tree/master/01-%E4%BC%A0%E7%BB%9F%E6%A8%A1%E5%9E%8B): `01-传统模型`
- [Machine Learning](https://github.com/yangbin1729/nlp_notes/tree/master/02-%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0): `02-机器学习`
- [Neural Nets from Scratch](https://github.com/yangbin1729/nlp_notes/tree/master/03-%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9CPython%E5%AE%9E%E7%8E%B0): `03-神经网络Python实现`

### Frameworks

- [TensorFlow Notes](https://github.com/yangbin1729/nlp_notes/tree/master/04-%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/TensorFlow): `04-深度学习框架/TensorFlow`
- [PyTorch Notes](https://github.com/yangbin1729/nlp_notes/tree/master/04-%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%A1%86%E6%9E%B6/Torch): `04-深度学习框架/Torch`

### Deep Learning

- [Vision and Deep Learning](https://github.com/yangbin1729/nlp_notes/tree/master/05-%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0): `05-深度学习`

### NLP

- [Text Processing](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/00-%E6%96%87%E6%9C%AC%E5%A4%84%E7%90%86%E7%9A%84%E5%9F%BA%E6%9C%AC%E6%B5%81%E7%A8%8B.ipynb): `06-自然语言处理/00-文本处理的基本流程.ipynb`
- [Text Representations](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/04-%E6%96%87%E6%A1%A3%E5%90%91%E9%87%8F.py): `06-自然语言处理/04-文档向量.py`
- [Classical NLP](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/09-LDA%E4%B8%BB%E9%A2%98%E6%A8%A1%E5%9E%8B.ipynb): `06-自然语言处理/09-LDA主题模型.ipynb`
- [Sequence Tasks](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/13-%E5%9F%BA%E4%BA%8EBiLSTM%E5%92%8CCRF%E7%AE%97%E6%B3%95%E7%9A%84%E5%91%BD%E5%90%8D%E5%AE%9E%E4%BD%93%E8%AF%86%E5%88%AB(PyTorch).ipynb): `06-自然语言处理/13-基于BiLSTM和CRF算法的命名实体识别(PyTorch).ipynb`
- [Attention and Transformers](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/30-Transformer%E6%A8%A1%E5%9E%8B%E5%8F%8A%E6%BA%90%E4%BB%A3%E7%A0%81(PyTorch).ipynb): `06-自然语言处理/30-Transformer模型及源代码(PyTorch).ipynb`
- [BERT Layers](https://github.com/yangbin1729/nlp_notes/tree/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/40-bert-modeling(TensorFlow)/layers): `06-自然语言处理/40-bert-modeling(TensorFlow)/layers`
- [BERT Encoders](https://github.com/yangbin1729/nlp_notes/tree/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/40-bert-modeling(TensorFlow)/networks): `06-自然语言处理/40-bert-modeling(TensorFlow)/networks`
- [BERT Reference Model](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/42-BERT%E6%A8%A1%E5%9E%8B%E8%AF%A6%E8%A7%A3%E5%8F%8A%E4%BB%A3%E7%A0%81%E5%AE%9E%E7%8E%B0(Tensorflow).py): `06-自然语言处理/42-BERT模型详解及代码实现(Tensorflow).py`
- [Pretrained NLP Tasks](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/45-%E5%9F%BA%E4%BA%8EBERT%E7%9A%84%E6%96%87%E6%9C%AC%E5%88%86%E7%B1%BB.ipynb): `06-自然语言处理/45-基于BERT的文本分类.ipynb`
- [GPT Text Generation](https://github.com/yangbin1729/nlp_notes/blob/master/06-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/66-miniGPT(TensorFlow).py): `06-自然语言处理/66-miniGPT(TensorFlow).py`

### Deployment

- [Model Deployment Notes](https://github.com/yangbin1729/nlp_notes/tree/master/07-%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2): `07-模型部署`
- [TensorFlow Serving](https://github.com/yangbin1729/nlp_notes/blob/master/07-%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2/tensorflow-serving.ipynb): `07-模型部署/tensorflow-serving.ipynb`
- [PyTorch Deployment](https://github.com/yangbin1729/nlp_notes/blob/master/07-%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2/%E9%83%A8%E7%BD%B2PyTorch%E6%A8%A1%E5%9E%8B.ipynb): `07-模型部署/部署PyTorch模型.ipynb`

### Other components

- **Learner**

## Connections

- Learner → Rules and Search: studies (evidence: `README.md`)
- Learner → Machine Learning: studies (evidence: `README.md`)
- Learner → Neural Nets from Scratch: studies (evidence: `README.md`)
- Learner → TensorFlow Notes: studies (evidence: `README.md`)
- Learner → PyTorch Notes: studies (evidence: `README.md`)
- Learner → Vision and Deep Learning: studies (evidence: `README.md`)
- Learner → Text Processing: studies (evidence: `README.md`)
- Text Processing → Text Representations: continues to (evidence: `README.md`)
- Text Representations → Classical NLP: continues to (evidence: `README.md`)
- Classical NLP → Sequence Tasks: continues to (evidence: `README.md`)
- Sequence Tasks → Attention and Transformers: continues to (evidence: `README.md`)
- Attention and Transformers → BERT Reference Model: continues to (evidence: `README.md`)
- BERT Reference Model → Pretrained NLP Tasks: supports study of (evidence: `README.md`)
- BERT Layers → BERT Encoders: builds
- BERT Encoders → BERT Reference Model: implements encoder for
- Attention and Transformers → GPT Text Generation: continues to (evidence: `README.md`)
- Learner → Model Deployment Notes: studies (evidence: `README.md`)
- Model Deployment Notes → TensorFlow Serving: covers (evidence: `README.md`)
- Model Deployment Notes → PyTorch Deployment: covers (evidence: `README.md`)
