facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.05k stars 720 forks source link

[Time.TR] Forgot to add to test suite? #660

Closed emlautarom1 closed 2 years ago

emlautarom1 commented 2 years ago

Turkish corpus is not used at all, resulting in an empty classifier:

https://github.com/facebook/duckling/blob/84175d61d6f44d0db2abb42d67c6c4213762b64f/Duckling/Ranking/Classifiers/TR_XX.hs#L22

The cause is that the test suite ("corpus") is never used (the module Duckling.Time.TR.Tests is not even imported):

https://github.com/facebook/duckling/blob/84175d61d6f44d0db2abb42d67c6c4213762b64f/tests/Duckling/Time/Tests.hs#L53-L83

Said module is also not declared in the duckling.cabal file:

https://github.com/facebook/duckling/blob/84175d61d6f44d0db2abb42d67c6c4213762b64f/duckling.cabal#L1136-L1163

This is a trivial fix. There are some failing test cases though!

chessai commented 2 years ago

Would you like to prepare a PR for this?