This release is a pre-release and may not be stable for production use.
Kashgari
Overview | Performance | Installation | Documentation | Contributing
🎉🎉🎉 We released the 2.0.0-alpha2 version with Seq2Seq Support. 🎉🎉🎉
Overview
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.
- Human-friendly. Kashgari's code is straightforward, well documented and tested, which makes it very easy to understand and modify.
- Powerful and simple. Kashgari allows you to apply state-of-the-art natural language processing (NLP) models to your text, such as named entity recognition (NER), part-of-speech tagging (PoS) and classification.
- Built-in transfer learning. Kashgari built-in pre-trained BERT and Word2vec embedding models, which makes it very simple to transfer learning to train your model.
- Fully scalable. Kashgari provides a simple, fast, and scalable environment for fast experimentation, train your models and experiment with new approaches using different embeddings and model structure.
- Production Ready. Kashgari could export model with
SavedModelformat for tensorflow serving, you could directly deploy it on the cloud.
Our Goal
- Academic users Easier experimentation to prove their hypothesis without coding from scratch.
- NLP beginners Learn how to build an NLP project with production level code quality.
- NLP developers Build a production level classification/labeling model within minutes.
Supporting the project
You can support the project by checking out our sponsor page. It takes only one click:
This advert was placed by GitAds
Performance
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 |
| Neural machine translation | // TODO |
Installation
The project is based on Python 3.6+, because it is 2019 and type hinting is cool.
| Backend | pypi version | desc |
|---|---|---|
| TensorFlow 2.1+ | pip install 'kashgari>=2.0.0a0' |
TF2 tf.keras - alpha version |
| TensorFlow 1.14+ | pip install 'kashgari>=1.0.0,<2.0.0' |
TF1.14+ tf.keras version |
| Keras | pip install 'kashgari<1.0.0' |
keras version |
Tutorials
Here is a set of quick tutorials to get you started with the library:
- Tutorial 1: Text Classification
- Tutorial 2: Text Labeling
- Tutorial 3: Seq2Seq
- Tutorial 4: Language Embedding
There are also articles and posts that illustrate how to use Kashgari:
- 15 分钟搭建中文文本分类模型
- 基于 BERT 的中文命名实体识别(NER)
- BERT/ERNIE 文本分类和部署
- 五分钟搭建一个基于BERT的NER模型
- Multi-Class Text Classification with Kashgari in 15 minutes
Examples:
Contributors ✨
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.
Metadata
Release files for kashgari 2.0.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kashgari-2.0.0a2.tar.gz | 47.5 kB | Without provenance | Details for kashgari-2.0.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kashgari-2.0.0a2-py3-none-any.whl | Python 3 | none | any | Details for kashgari-2.0.0a2-py3-none-any.whl |
Total release size: 132.6 kB
Release files / kashgari-2.0.0a2.tar.gz
| Download URL | kashgari-2.0.0a2.tar.gz |
|---|---|
| Size | 47.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0cef423f02d87b27c2fe44ba0f84de61495fde1b10a9cbf54de75c9e4a48c57
|
|
BLAKE2b-256 checksum How to use checksums |
02b6bc98a08c19c2128a08969d5a8d78fa704e0285652078bd77f1db4b16d896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / kashgari-2.0.0a2-py3-none-any.whl
| Download URL | kashgari-2.0.0a2-py3-none-any.whl |
|---|---|
| Size | 85.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cb7a852605e94ad9ad937e6e205ae0edda01b8454907a7764523b61e1917295
|
|
BLAKE2b-256 checksum How to use checksums |
d4686818b6e772ba4d293c4c0308feae79a9dfd82cefd5efe59e664fbcd0e7d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for kashgari 2.0.0a2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.