RepositoryPythonCNTrung Quốc
jidasheng

jidasheng/bi-lstm-crf

A PyTorch implementation of the BI-LSTM-CRF model.

263sao
46fork
3issue
5lượt xem

🚀 BI-LSTM-CRF: Tối ưu hóa mô hình gán nhãn dãy ký tự với PyTorch

Phiên bản cải tiến của BI-LSTM-CRF với hỗ trợ batch và tính toán vector hóa, tăng tốc đáng kể so với tutorial gốc của PyTorch.

bi-lstm-crf là một thư viện PyTorch cài đặt mô hình BI-LSTM-CRF (Bidirectional LSTM - Conditional Random Field), được thiết kế chuyên cho các bài toán gán nhãn dãy ký tự trong NLP như NER (Named Entity Recognition). Dự án cải tiến từ PyTorch tutorial với nhiều tối ưu hiệu năng và cách sử dụng đơn giản.

✨ Điểm nổi bật

  • Hỗ trợ batch: Hỗ trợ đầy đủ tính toán theo mini-batch
  • Vector hóa hoàn toàn: Loại bỏ vòng lặp trong thuật toán tính điểm câu, cải thiện hiệu năng huấn luyện
  • Hỗ trợ CUDA: Tận dụng GPU để tăng tốc
  • API đơn giản cho CRF module: Tự động thêm START/STOP tags, tích hợp Linear Layer
  • Chuyên dùng cho NLP: Tối ưu cho gán nhãn dãy ký tự
  • Dễ huấn luyện: Cung cấp công cụ dòng lệnh để huấn luyện mô hình nhanh chóng

💡 Vì sao đáng chú ý

Khác với phiên bản tutorial gốc của PyTorch, dự án này áp dụng kỹ thuật vector hóa hoàn toàn, loại bỏ các vòng lặp trong thuật toán tính điểm câu. Điều này mang lại hiệu suất huấn luyện vượt trội khi xử lý lượng dữ liệu lớn. Ngoài ra, API đơn giản giúp người dùng dễ dàng tích hợp mô hình vào các dự án khác như BERT-CRF chỉ với vài dòng code.


#BI_LSTM_CRF #PyTorch #NLP #NER #SequenceLabeling #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
jiesutd/NCRFpp

NCRF++, a Neural Sequence Labeling Toolkit. Easy use to any sequence labeling tasks (e.g. NER, POS, Segmentation). It includes character LSTM/CNN, word LSTM/CNN and softmax/CRF components.

1.9k
Jun 30, 2022
RepositoryPython
heshenghuan/LSTM-CRF

A (CNN+)RNN(LSTM/BiLSTM)+CRF model for sequence labelling.:smirk:

139
Jan 9, 2018
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026
RepositoryPython
NandhaKishorM/laya

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

36.1k
Nov 30, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryPython
flairNLP/flair

A very simple framework for state-of-the-art Natural Language Processing (NLP)

14.4k
Oct 19, 2026
RepositoryPython
macanv/BERT-BiLSTM-CRF-NER

Tensorflow solution of NER task Using BiLSTM-CRF model with Google BERT Fine-tuning And private Server services

4.9k
Feb 24, 2021
RepositoryPython
BrikerMan/Kashgari

Kashgari is a production-level NLP Transfer learning framework built on top of tf.keras for text-labeling and text-classification, includes Word2Vec, BERT, and GPT2 Language Embedding.

2.4k
Sep 3, 2024
RepositoryPython
guillaumegenthial/sequence_tagging

Named Entity Recognition (LSTM + CRF) - Tensorflow

2.0k
Oct 16, 2020