Skip to content

amedat04/rasam

 
 

Repository files navigation

rasam

Rasa Improved

License License Version Version
Travis CI Travis CI Coverage CodeCov
Supported versions Python Versions Wheel Wheel
Status Status Downloads Downloads

Support

If you like rasam or if it is useful to you, show your support by buying me a coffee.

Buy Me A Coffee

Usage

Installation

pip install rasam

Rasa config.yml

importers:
  - name: rasam.PlaceholderImporter
    fake_data_count: 10  # default value is 1

pipeline:
  - name: rasam.RegexEntityExtractor
  - name: rasam.URLEntityExtractor

Rasa nlu.md

PlaceholderImporter

The PlaceholderImporter removes the need to write unnecessary information (eg. name, address, numbers, etc.) and helps focus on writing test data.

Using {} placeholder

## intent:tell_name
- My name is {name}
- I am {name} and he is {name}

Using @ placeholder

## intent:tell_address
- I live in @address
- I stay at @address and @address

Mixing {} and @ placeholders

It is possible to mix both {} and @ placeholders but it is recommended to use only one style for consistency.

Available placeholders

  • any (if you need just any data)
  • integer
  • decimal
  • number
  • name
  • first_name
  • last_name
  • text
  • word
  • paragraph
  • uri
  • url
  • local_uri
  • email
  • date
  • time
  • month
  • day
  • timezone
  • company
  • license_plate
  • address
  • city
  • country
  • user_agent
  • password
  • user_name
  • file_path

Author

Ronie Martinez

Packages

No packages published

Languages

  • Python 98.2%
  • Makefile 1.8%