facebook / facebook/duckling

Support single word rule composition

Đang mở
#110 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Haskell
Star
4.3k
Fork
740
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.