Rasa NLU Components with PaddleNLP
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rasa_paddlenlp-0.3.1.tar.gz.
File metadata
- Download URL: rasa_paddlenlp-0.3.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96f03f658c8139b8f67b34e9265103d2d2de615d378ed6b970f124de486a1bee
|
|
| MD5 |
9a842b70465825af7cea0336a3a1db4a
|
|
| BLAKE2b-256 |
4a5c320eadc414cfec541ccc17e89bb33c728c8c709881b4b51bc915ec8a7fd2
|
File details
Details for the file rasa_paddlenlp-0.3.1-py2.py3-none-any.whl.
File metadata
- Download URL: rasa_paddlenlp-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d7f4ed009f330ad8787580f5858601cebd19efa35c0dcc683cd6a4244ae6d4c
|
|
| MD5 |
f1c01f5c4c1f2c2cb86a428e2fbf0634
|
|
| BLAKE2b-256 |
93bd473503231575f8d46c1aec774336f91b6bea3402f52d05789b13641671e4
|