Support single word rule composition
未关闭
enhancement
- 主要语言
- Haskell
- 星标
- 4.3k
- 派生
- 740
- PR 合并指标
- 30 天内没有已合并 PR
描述
Today Duckling doesn't allow to create multiple patterns to match against a single word.
As a result, we can't compose rules/dimensions and have to duplicate the regexes.
This is the case for DE (e.g. [here](https://github.com/facebook/duckling/blob/master/Duckling/Numeral/DE/Rules.hs#L105) and [here](https://github.com/facebook/duckling/blob/master/Duckling/Numeral/DE/Rules.hs#L323)), NL (e.g. [here](https://github.com/facebook/duckling/blob/master/Duckling/Numeral/NL/Rules.hs#L104)), EL (e.g. [here](https://github.com/facebook/duckling/blob/master/Duckling/Duration/EL/Rules.hs#L121)), and RU (e.g. [here](https://github.com/facebook/duckling/blob/master/Duckling/Duration/RU/Rules.hs#L48)).
贡献指南
评估
这个 Issue 还没有评估数据。