zb-common
The cloud version of JAICP 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.
Name | Type | Description |
---|---|---|
car | Dictionary | Car brands and models |
city | Dictionary | Cities |
color | Dictionary | Colors |
language | Dictionary | Languages |
music | Dictionary | Music genres |
name | Dictionary | Given 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
- Specify the path to the file in the necessary module after the
require
tag. - Set the
module
parameter tosys.zb-common
.