...
Parameter Name | Description | |||
---|---|---|---|---|
name | Internal identifier for the custom type. Must be unique across all standard types and custom types.
| |||
prettyName | Display name for the custom type. | |||
category | The category to assign to the type. The current categories are displayed within the data type drop-down for each column. | |||
defaultProbability | Assign a default probability for the custom type. See below. | |||
testCase | This block contains the regular expression specification to be applied to the column values. | |||
stripWhitespace | When set to true , whitespace is removed from any value prior for purposes of validation. The original value is untouched. | |||
regexes | This array contains a set of regular expressions that are used to validate the column values. For a regex type, the column value must match with at least one value among the set of expressions.
| |||
probability | (optional) Assign an incremental change to the probability when a match is found between a value and one of the regular expressions. See Defining probabilities 156891761 below. |
Tip | |
---|---|
Tip: In the
|
...
To the $CUSTOM_TYPE_DIR/manifest.json
file, you must add the filenames of any custom types that you have created and stored in the types
directory:
Code Block |
---|
{ "types": ["bodies-of-water.json", "dayofweek.json"], "dictionaries": ["oceans", "seas"] } |
Enable custom types
Steps:
D s config Locate the following property:
Code Block "feature.enableCustomTypes": true,
To enable use of your custom data types in the
, locate and editD s platform enabledSemanticTypes
property.Info NOTE: Add your entries to the items that are already present in
enabledSemanticTypes
. Do not delete and replace entries.Info NOTE: Do not use this parameter to attempt to remove specific data types. Removal of the default types is not supported.
Code Block "webapp.enabledSemanticTypes": [ "<CustomTypeName1>", "<CustomTypeName2>", "<CustomTypeNameN>" ]
where:
<CustomTypeName1>
corresponds to the internalname
value for your custom data type.
- Save your changes and restart the platform.
Enable custom types
To enable use of your custom data types in the
D s platform |
---|
enabledSemanticTypes
property....