Skip to main content

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

MIT

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.

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)

Source distribution for rasa-paddlenlp 0.3.1
File Size Uploaded
rasa_paddlenlp-0.3.1.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rasa-paddlenlp 0.3.1
File Interpreter ABI Platform
rasa_paddlenlp-0.3.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page