#65 · Primary category: NLP Tools & Text Processing

Kashgari

bert bert-model gpt-2 machine-learning named-entity-recognition ner nlp nlp-framework seq2seq sequence-labeling text-classification text-labeling transfer-learning

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.

Project last updated:09/03/24

GitHub Stars

2.4K

Forks

431

Contributors

21

License

Apache-2.0

Why we included this project

Teams that want a supervised NLP model without hand-writing every training loop can get a long way with Kashgari. It sits on tf.keras and provides ready-made pipelines for named entity recognition, part-of-speech tagging, and text classification, and you can swap plain Word2Vec for pretrained BERT or GPT-2 embeddings without rewriting your data loading or evaluation code. That makes it a practical baseline for sequence labeling, whether you are doing research or running a production service, and the codebase is readable enough to modify when a default architecture does not fit your data. The 2.0 release moved the project to TensorFlow 2, so the current version uses modern TF rather than legacy APIs, and models export in SavedModel format for serving. If you mostly work with Chinese or English text and want a solid baseline model in an afternoon, this removes a lot of the boilerplate.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category