Rasa NLU Components using PaddleNLP
Features
- Tokenizer and Dense featurizer using pre-trained models supported by PaddleNLP.
Usage
pip install rasa-paddlenlp
In your config.yml, use the following configuration:
language: zh
pipeline:
- name: "rasa_paddlenlp.nlu.paddlenlp_tokenizer.PaddleNLPTokenizer"
model_name: bert
model_weights: bert-wwm-ext-chinese
# Flag to check whether to split intents
intent_tokenization_flag: false
# Symbol on which intent should be split
intent_split_symbol: "_"
- name: "rasa_paddlenlp.nlu.paddlenlp_featurizer.PaddleNLPFeaturizer"
model_name: bert
model_weights: bert-wwm-ext-chinese
# rest of your configurations
Currently there is code to support BERT pre-trained models, we just need to add the model definitions and default weights in order for other PaddleNLP-supported models.
Credits
This package took inspiration from the following projects:
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
License
History
0.3.1 (2022-02-10)
- Made PaddleNLPTokenizer match V3 specification.
0.3.0 (2022-02-10)
- From now on the library supports Rasa V3
- Added XLNet and Roberta support (ERNIE will come soon)
0.2.0 (2022-01-13)
- First release on PyPI.
Metadata
Release files for rasa-paddlenlp 0.3.1
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 |
|---|---|---|---|---|
| rasa_paddlenlp-0.3.1.tar.gz | 17.0 kB | Without provenance | Details for rasa_paddlenlp-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rasa_paddlenlp-0.3.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for rasa_paddlenlp-0.3.1-py2.py3-none-any.whl |
Total release size: 30.1 kB
Release files / rasa_paddlenlp-0.3.1.tar.gz
| Download URL | rasa_paddlenlp-0.3.1.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96f03f658c8139b8f67b34e9265103d2d2de615d378ed6b970f124de486a1bee
|
|
BLAKE2b-256 checksum How to use checksums |
4a5c320eadc414cfec541ccc17e89bb33c728c8c709881b4b51bc915ec8a7fd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/60.6.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
|
Release files / rasa_paddlenlp-0.3.1-py2.py3-none-any.whl
| Download URL | rasa_paddlenlp-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5d7f4ed009f330ad8787580f5858601cebd19efa35c0dcc683cd6a4244ae6d4c
|
|
BLAKE2b-256 checksum How to use checksums |
93bd473503231575f8d46c1aec774336f91b6bea3402f52d05789b13641671e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/60.6.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
|
Security for rasa-paddlenlp 0.3.1
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.