facebook / facebook/duckling

Support single word rule composition

未关闭
#110 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。