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.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
rasa_paddlenlp-0.3.0.tar.gz
(16.5 kB
view hashes)
Built Distribution
Close
Hashes for rasa_paddlenlp-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d894ec21b705496f5ab6283fe151c0da20f956f2824633f911db8712e5426c |
|
MD5 | db649f615af807adc2cbae13460197ba |
|
BLAKE2b-256 | 6a16507e984badfdaa8f0cfdc2e3afd1c0c81aef828dcff705093f4a1e73f0d1 |