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.
See the code🎉🎉🎉 We released the 2.0.0 version with TF2 Support. 🎉🎉🎉
If you use this project for your research, please cite:
@misc{Kashgari
author = {Eliyar Eziz},
title = {Kashgari},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/BrikerMan/Kashgari}}
}
Kashgari is a simple and powerful NLP Transfer learning framework, build a state-of-art model in 5 minutes for named entity recognition (NER), part-of-speech tagging (PoS), and text classification tasks.
SavedModel format for tensorflow serving, you could directly deploy it on the cloud.Welcome to add performance report.
| Task | Language | Dataset | Score |
|---|---|---|---|
| Named Entity Recognition | Chinese | People's Daily Ner Corpus | 95.57 |
| Text Classification | Chinese | SMP2018ECDTCorpus | 94.57 |
The project is based on Python 3.6+, because it is 2019 and type hinting is cool.
| Backend | kashgari version | desc |
|---|---|---|
| TensorFlow 2.2+ | pip install 'kashgari>=2.0.2' | TF2.10+ with tf.keras |
| TensorFlow 1.14+ | pip install 'kashgari>=1.0.0,<2.0.0' | TF1.14+ with tf.keras |
| Keras | pip install 'kashgari<1.0.0' | keras version |
You also need to install tensorflow_addons with TensorFlow.
| TensorFlow Version | tensorflow_addons version |
|---|---|
| TensorFlow 2.1 | pip install tensorflow_addons==0.9.1 |
| TensorFlow 2.2 | pip install tensorflow_addons==0.11.2 |
| TensorFlow 2.3, 2.4, 2.5 | pip install tensorflow_addons==0.13.0 |
Here is a set of quick tutorials to get you started with the library:
There are also articles and posts that illustrate how to use Kashgari:
Examples:
Thanks goes to these wonderful people. And there are many ways to get involved. Start with the contributor guidelines and then check these open issues for specific tasks.
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
37 followers · starred May 2020
126 followers · starred Sep 2021
27 followers · starred Dec 2019
314 followers · starred Aug 2023
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.
See the code🎉🎉🎉 We released the 2.0.0 version with TF2 Support. 🎉🎉🎉
If you use this project for your research, please cite:
@misc{Kashgari
author = {Eliyar Eziz},
title = {Kashgari},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/BrikerMan/Kashgari}}
}
Kashgari is a simple and powerful NLP Transfer learning framework, build a state-of-art model in 5 minutes for named entity recognition (NER), part-of-speech tagging (PoS), and text classification tasks.
SavedModel format for tensorflow serving, you could directly deploy it on the cloud.Welcome to add performance report.
| Task | Language | Dataset | Score |
|---|---|---|---|
| Named Entity Recognition | Chinese | People's Daily Ner Corpus | 95.57 |
| Text Classification | Chinese | SMP2018ECDTCorpus | 94.57 |
The project is based on Python 3.6+, because it is 2019 and type hinting is cool.
| Backend | kashgari version | desc |
|---|---|---|
| TensorFlow 2.2+ | pip install 'kashgari>=2.0.2' | TF2.10+ with tf.keras |
| TensorFlow 1.14+ | pip install 'kashgari>=1.0.0,<2.0.0' | TF1.14+ with tf.keras |
| Keras | pip install 'kashgari<1.0.0' | keras version |
You also need to install tensorflow_addons with TensorFlow.
| TensorFlow Version | tensorflow_addons version |
|---|---|
| TensorFlow 2.1 | pip install tensorflow_addons==0.9.1 |
| TensorFlow 2.2 | pip install tensorflow_addons==0.11.2 |
| TensorFlow 2.3, 2.4, 2.5 | pip install tensorflow_addons==0.13.0 |
Here is a set of quick tutorials to get you started with the library:
There are also articles and posts that illustrate how to use Kashgari:
Examples:
Thanks goes to these wonderful people. And there are many ways to get involved. Start with the contributor guidelines and then check these open issues for specific tasks.
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
37 followers · starred May 2020
126 followers · starred Sep 2021
27 followers · starred Dec 2019
314 followers · starred Aug 2023