duckling/exe
Ziyang Liu 5460d8df0e Support custom dimensions
Summary:
Support custom dimensions

Had to move the definition of `Dimension` from `Duckling.Dimensions.Types` to `Duckling.Types` to avoid cyclic imports between these two modules.

A sample custom dimension is in `exe/CustomDimensionExample.hs`.

Limitations of custom dimensions:

- All rules for a custom dimension must be in the same module with the definition of the custom dimension. Otherwise there will be cyclic imports, because the definition of the dimension and the rules refer to each other.
- The custom dimension must be specified when using `parse`, since there's no way to get all the existing custom dimensions.

Reviewed By: patapizza

Differential Revision: D7630360

fbshipit-source-id: 30e12dcb33611f5692c4f5949de377bf61b75e1e
2018-04-19 15:30:51 -07:00
..
Duckling Support Tamil numerals 2018-03-19 16:45:36 -07:00
CustomDimensionExample.hs Support custom dimensions 2018-04-19 15:30:51 -07:00
DucklingExpensive.hs Locales support 2017-10-13 08:34:21 -07:00
DucklingRequestSample.hs Locales support 2017-10-13 08:34:21 -07:00
ExampleMain.hs Return latent entities 2018-03-19 14:45:27 -07:00
RegenMain.hs Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00