Skip to main content

zb-common

The cloud version of Tovie Platform provides the zb-common system project. It contains a number of universal and frequently used script elements:

  • Named patterns.
  • Named entity dictionaries and converters.
  • JavaScript functions and libraries.
  • Ready-made script fragments.

Modules

The zb-common functionality is split into several isolated modules, so you can import only what you need for your projects.

NameTypeDescription
carDictionaryCar brands and models
cityDictionaryCities
colorDictionaryColors
languageDictionaryLanguages
musicDictionaryMusic genres
nameDictionaryGiven names
caution

If you import these modules, the following patterns will become available in the project:

The names of the NLU core entities must not match the names of these patterns. For example, if you imported the module with the $City pattern and there is a City entity in the project, it might cause errors during the script execution.

How to use

Use the require tag to import a file from a system project to your script:

require: city/cityEn.sc
module = sys.zb-common
  1. Specify the path to the file in the necessary module after the require tag.
  2. Set the module parameter to sys.zb-common.