yasen-yankov
1493d44465
Added BG distance
...
Summary: Closes https://github.com/facebook/duckling/pull/162
Reviewed By: chinmay87
Differential Revision: D7239243
Pulled By: patapizza
fbshipit-source-id: a5518219a67fa46bb06e97eee3dfd07ab683162f
2018-03-13 15:45:32 -07:00
bidhan-a
43079e7113
Setup Nepali (NE) and add Numeral dimension
...
Summary:
- Setup Nepali (NE) language
- Add basic Numeral dimension
Closes https://github.com/facebook/duckling/pull/156
Reviewed By: JonCoens
Differential Revision: D6965558
Pulled By: patapizza
fbshipit-source-id: f46c9b104d4345f20bd0cf53f8c9c8754855f314
2018-02-13 07:45:31 -08:00
Ashwini Reddy Challa
c8501d3e85
Added HI Ordinals
...
Summary: Added ordinal support for Hindi
Reviewed By: patapizza
Differential Revision: D6944156
fbshipit-source-id: eb5da698e5cccde9a1cc31adf7bc433b89e07454
2018-02-09 13:15:30 -08:00
Julien Odent
bef7a44fa8
Remove redundant brackets and language pragmas
...
Summary: .
Reviewed By: JonCoens
Differential Revision: D6838082
fbshipit-source-id: 94757bdb80c6d3c29a7a6554429940a1b7403108
2018-01-29 16:45:28 -08:00
Abdallatif Sulaiman
2d726d3837
Added Quantity Dimension to Arabic language
...
Summary: Closes https://github.com/facebook/duckling/pull/127
Reviewed By: panagosg7
Differential Revision: D6616298
Pulled By: patapizza
fbshipit-source-id: dc774ff1e870bbd083a9cca8ee6f75db852afce9
2017-12-20 18:00:43 -08:00
Abdallatif Sulaiman
c056a0b46a
Added Temperature Dimension to Arabic language
...
Summary: Closes https://github.com/facebook/duckling/pull/126
Reviewed By: panagosg7
Differential Revision: D6614995
Pulled By: patapizza
fbshipit-source-id: 35ff142a3fc8a498d9abbb80d28dc9be6cdcbc4d
2017-12-20 18:00:43 -08:00
Abdallatif Sulaiman
380457db8f
Added Volume Dimension to Arabic language
...
Summary: Closes https://github.com/facebook/duckling/pull/125
Reviewed By: panagosg7
Differential Revision: D6614574
Pulled By: patapizza
fbshipit-source-id: 054ed04e0cc1cf79be31340ebb8b7fea3bc67f57
2017-12-20 18:00:43 -08:00
Abdallatif Sulaiman
1393098bcc
Added Time Dimension to Arabic
...
Summary:
Hi, in this pr:
* Added time dimension to Arabic language, thanks to Hussein-Dahir & Yazeed-Obaid for writing time corpus.
* Fixed some bugs in numeral & ordinals and added more test cases for them.
Also, I don't really understand why do we use classifiers in time dimension?
Closes https://github.com/facebook/duckling/pull/123
Reviewed By: blandinw
Differential Revision: D6583313
Pulled By: patapizza
fbshipit-source-id: f7acdef0c032d7b7fd7d224832fdaf484d2df825
2017-12-19 14:30:42 -08:00
Newinfinite007
c133bad24a
Hindi Language Numeral Dimension(minimalistic model). Tests passed.
...
Summary: Closes https://github.com/facebook/duckling/pull/119
Reviewed By: JonCoens
Differential Revision: D6597628
Pulled By: patapizza
fbshipit-source-id: 8bac0f686d6cecc38d9998e37042fe48f73530dc
2017-12-19 13:15:30 -08:00
Julien Odent
6df3b26707
Numeral: common rule + supporting hindu-arabic numerals for Burmese
...
Summary:
* `ruleIntegerNumeric` was used in all languages but Burmese.
* it seems like the hindu-arabic numerals are slowly getting in Burmese (e.g. recent car plates)
* Moving the rule in `Duckling/Numeral/Common.hs`
Reviewed By: blandinw
Differential Revision: D6498349
fbshipit-source-id: e868dc9960f18f0781e4aa98a0dfcd14969537c9
2017-12-06 16:00:28 -08:00
Panagiotis Vekris
12a726aee7
Support for Greek times and dates
...
Summary:
This adds support for greek times.
There are still some issues with expressions of the form:
```
9:30 - 11:00 την πέμπτη
```
Where `11:00 την πέμπτη` is parsed first (as 11:30 on Thu), instead of prioritizing `9:30 - 11:00` as the training data suggests. These tests are for the moment excluded from the corpus.
Reviewed By: patapizza
Differential Revision: D6376271
fbshipit-source-id: 2f31e058fb88386429070e3b51cd33f93b9c5936
2017-12-04 16:45:40 -08:00
igor-drozdov
29d776dee5
Added TimeGrain and Duration Dimensions to Russian language
...
Summary:
- Added Duration dimension to Russian language
- Added TimeGrain dimension to Russian language
- Refactored isNatural and isNaturalWith out of Duration helpers into Numeral helpers
- Implemented <integer> and a half rule for Russian Numeral
- Changed the type of inSeconds to polymorphic one
Closes https://github.com/facebook/duckling/pull/105
Reviewed By: blandinw
Differential Revision: D6312604
Pulled By: patapizza
fbshipit-source-id: 9ae237b4beb6915ff8da013230457937d8e56733
2017-11-15 10:45:24 -08:00
Igor Drozdov
f6492b5da0
Added Quantity dimension to Russian language
...
Summary: Closes https://github.com/facebook/duckling/pull/106
Reviewed By: blandinw
Differential Revision: D6312605
Pulled By: patapizza
fbshipit-source-id: 69ec673f95ec8a2d86ec207a6d75cd8ebfcdb4f6
2017-11-14 21:00:28 -08:00
Panagiotis Vekris
536f2844e3
Support Greek ordinals
...
Summary: Adding support for Greek ordinals
Reviewed By: patapizza
Differential Revision: D6263781
fbshipit-source-id: ff339ee51e4e8ad6b0c8f3fa75f5652391dbe48e
2017-11-08 11:00:31 -08:00
Igor Drozdov
5d2c5c78ba
Added Distance and Volume Dimensions for Russian language
...
Summary:
- Added Distance Dimension for Russian language (RU)
- Added Volume Dimension for Russian language (RU)
- Extended `Duckling.Distance.Types.Unit` type definition by adding `Millimetre` representation
Closes https://github.com/facebook/duckling/pull/101
Reviewed By: JonCoens
Differential Revision: D6254070
Pulled By: patapizza
fbshipit-source-id: 579f7a259f76ff1c23ccfe2371afea385eb56aa1
2017-11-08 11:00:31 -08:00
Panagiotis Vekris
e8937e1cd6
Support for Greek durations
...
Summary: Adding support for Greek time grains and durations.
Reviewed By: patapizza
Differential Revision: D6249955
fbshipit-source-id: 1c69e26
2017-11-06 18:49:36 -08:00
Panagiotis Vekris
fda8c7c759
Support Greek numerals
...
Summary:
- Setup Greek language (EL)
- Added Greek Numerals
Reviewed By: patapizza
Differential Revision: D6217873
fbshipit-source-id: 379170f
2017-11-02 17:16:18 -07:00
Julien Odent
63073fb3b6
Remove Time from JA targets
...
Summary: Duckling doesn't know `Time` in Japanese yet.
Reviewed By: blandinw
Differential Revision: D6191243
fbshipit-source-id: d2c426a
2017-10-30 16:34:24 -07:00
Matthijs Mullender
1ade1935b2
Support Dutch dates and times
...
Summary: [Duckling][Time][NL] Support Dutch dates and times
Reviewed By: patapizza
Differential Revision: D6090294
fbshipit-source-id: 54b8729
2017-10-19 14:04:38 -07:00
Abdallatif Sulaiman
18cd2210ac
Add Duration Dimension to Arabic Language
...
Summary: Closes https://github.com/facebookincubator/duckling/pull/94
Reviewed By: blandinw
Differential Revision: D6078221
Pulled By: patapizza
fbshipit-source-id: b653b24
2017-10-17 16:04:28 -07:00
Matthijs Mullender
33a08bb76b
Support Dutch Durations
...
Summary:
This change adds support for durations in Dutch/Netherlands (NL)
Implemented: TimeGrain/NL, Durations/NL
Reviewed By: patapizza
Differential Revision: D6049404
fbshipit-source-id: 3621cdb
2017-10-13 12:49:30 -07:00
Stepan Parunashvili
6f774abe38
georgian numeral support
...
Summary: Introducing Georgian (KA), and the very beginnings of numeral support
Reviewed By: patapizza
Differential Revision: D5757952
fbshipit-source-id: 89d05f8
2017-09-05 12:19:29 -07:00
dubovinszky
60565c15aa
HU Time, TimeGrain
...
Summary: Closes https://github.com/facebookincubator/duckling/pull/83
Reviewed By: blandinw
Differential Revision: D5681515
Pulled By: patapizza
fbshipit-source-id: 918d0a4
2017-08-22 19:34:33 -07:00
Daniel Kantor
5cad4359e2
Added HU Ordinals
...
Summary: Closes https://github.com/facebookincubator/duckling/pull/82
Reviewed By: JonCoens
Differential Revision: D5631927
Pulled By: patapizza
fbshipit-source-id: d68b238
2017-08-16 11:19:24 -07:00
dubovinszky
24d3f19976
HU Setup + Numeral
...
Summary:
- Setup Hungarian (HU) language
- Added Numeral Dimension
Closes https://github.com/facebookincubator/duckling/pull/79
Reviewed By: blandinw
Differential Revision: D5595812
Pulled By: patapizza
fbshipit-source-id: 5959938
2017-08-09 17:49:56 -07:00
Veselin Stoyanov
5d03b45af9
Setup Bulgarian language and Numeral Dimension
...
Summary:
- Setup Bulgarian (BG) language
- Added Numeral Dimension
Closes https://github.com/facebookincubator/duckling/pull/78
Reviewed By: niteria
Differential Revision: D5575513
Pulled By: patapizza
fbshipit-source-id: e566155
2017-08-09 08:19:24 -07:00
Şeref R.Ayar
ba26ca7e91
Volume for TR
...
Summary: Closes https://github.com/facebookincubator/duckling/pull/34
Reviewed By: niteria
Differential Revision: D5168380
Pulled By: patapizza
fbshipit-source-id: 31d0a11
2017-06-02 12:49:20 -07:00
Şeref R.Ayar
b69874cd9f
Duration for TR
...
Summary: Closes https://github.com/facebookincubator/duckling/pull/32
Reviewed By: niteria
Differential Revision: D5150778
Pulled By: patapizza
fbshipit-source-id: d156b0a
2017-05-31 02:19:40 -07:00
serefayar
92a3e16886
Temperature for TR
...
Summary: Closes https://github.com/facebookincubator/duckling/pull/30
Reviewed By: niteria
Differential Revision: D5147114
Pulled By: patapizza
fbshipit-source-id: 804f623
2017-05-30 09:34:17 -07:00
Şeref R.Ayar
6de7c2142b
Distance for TR
...
Summary: Closes https://github.com/facebookincubator/duckling/pull/26
Reviewed By: niteria
Differential Revision: D5112142
Pulled By: patapizza
fbshipit-source-id: d71f654
2017-05-23 10:49:18 -07:00
rfranek@email.cz
325fa69304
added Distance for CZ language
...
Summary:
Added first Czech language file
Closes https://github.com/facebookincubator/duckling/pull/16
Reviewed By: niteria
Differential Revision: D5044499
Pulled By: patapizza
fbshipit-source-id: c736a35
2017-05-12 08:19:20 -07:00
Julien Odent
37829902b7
CS: Setup + basic Numeral
...
Summary:
* Setup for Czech
* Basic `Numeral` (0-10 integers + digits) from http://www.omniglot.com/language/numbers/czech.htm
Reviewed By: JonCoens
Differential Revision: D5044775
fbshipit-source-id: b5cd9d2
2017-05-11 09:49:27 -07:00
Matteo
e11014dc4b
Volume for IT lang
...
Summary:
I notice that there are several missing dimensions for the IT language: this patch is for the Volume dimension
Regards
Matteo
Closes https://github.com/facebookincubator/duckling/pull/4
Reviewed By: JonCoens
Differential Revision: D4986389
Pulled By: patapizza
fbshipit-source-id: 314d33e
2017-05-02 11:19:14 -07:00
Julien Odent
d3d3703015
HE: Time
...
Summary:
Time dimension for Hebrew.
Commented out the failing tests that actually also fail in Clojure.
Reviewed By: JonCoens
Differential Revision: D4970308
fbshipit-source-id: b455142
2017-04-28 10:04:35 -07:00
Julien Odent
ab2c89df4f
IT: Temperature
...
Summary: Temperature dimension for Italian.
Reviewed By: JonCoens
Differential Revision: D4970338
fbshipit-source-id: 024802e
2017-04-28 10:04:35 -07:00
Julien Odent
3f40625339
Temperature for Croatian
...
Summary: Temperature dimension for Croatian
Reviewed By: niteria
Differential Revision: D4958590
fbshipit-source-id: fe6c2e4
2017-04-28 08:04:22 -07:00
Julien Odent
3cc3266e28
Quantity for Croatian
...
Summary: Quantity dimension for Croatian.
Reviewed By: niteria
Differential Revision: D4958501
fbshipit-source-id: b90c8f6
2017-04-28 08:04:22 -07:00
Julien Odent
0372f4f3da
Volume for Croatian
...
Summary: Volume dimension for Croatian
Reviewed By: niteria
Differential Revision: D4957186
fbshipit-source-id: 63012ad
2017-04-28 08:04:22 -07:00
Julien Odent
0aa4aa56bb
Distance for Croatian
...
Summary: Distance dimension for Croatian.
Reviewed By: niteria
Differential Revision: D4957067
fbshipit-source-id: 232ce30
2017-04-28 08:04:21 -07:00
Julien Odent
35b9101c48
VI: Time
...
Summary:
* Time dimension for Vietnamese.
* Expose `debugContext`.
Reviewed By: niteria
Differential Revision: D4963594
fbshipit-source-id: 2373735
2017-04-28 08:04:21 -07:00
Julien Odent
e4d4531877
VI: Duration
...
Summary:
Duration dimension for Vietnamese.
This only uses the common rule.
Reviewed By: niteria
Differential Revision: D4962329
fbshipit-source-id: 9273245
2017-04-28 08:04:21 -07:00
Julien Odent
3314ddc7a4
VI: Ordinal
...
Summary: Ordinal for Vietnamese.
Reviewed By: niteria
Differential Revision: D4959285
fbshipit-source-id: 7212cc9
2017-04-28 08:04:21 -07:00
Julien Odent
0370c452f1
Time
...
Summary: Time dimension for Croatian.
Reviewed By: niteria
Differential Revision: D4954399
fbshipit-source-id: 906c4a6
2017-04-26 09:19:27 -07:00
Julien Odent
2d0594576f
Duration
...
Summary: Duration dimension for Croatian.
Reviewed By: niteria
Differential Revision: D4947983
fbshipit-source-id: 8e55a7e
2017-04-26 09:19:27 -07:00
Julien Odent
0f98a42b03
Ordinal
...
Summary: Ordinal dimension for Croatian.
Reviewed By: niteria
Differential Revision: D4947244
fbshipit-source-id: 54bda8f
2017-04-26 09:19:27 -07:00
Julien Odent
840deda7dd
Setup + Numeral
...
Summary: Setup + Numeral dimension for Croatian.
Reviewed By: niteria
Differential Revision: D4946964
fbshipit-source-id: 204429b
2017-04-26 09:19:26 -07:00
Julien Odent
dbe9e73541
Duration
...
Summary: Duration dimension for Hebrew.
Reviewed By: niteria
Differential Revision: D4930403
fbshipit-source-id: 690db8f
2017-04-24 06:49:40 -07:00
Julien Odent
f5f4889770
Ordinal
...
Summary: Ordinal dimension for Hebrew.
Reviewed By: niteria
Differential Revision: D4930162
fbshipit-source-id: 02545ae
2017-04-24 06:49:40 -07:00
Julien Odent
bd96d3dd95
Setup + Numeral
...
Summary: Setup for Hebrew + Numeral dimension
Reviewed By: niteria
Differential Revision: D4930041
fbshipit-source-id: 965132b
2017-04-24 06:49:40 -07:00
Bartosz Nitka
bd94622f64
Move tests to tests and exes to exe
...
Summary:
This works around https://github.com/haskell/cabal/issues/4350
If we don't do this files get compiled multiple times
and cabal is unhappy.
Reviewed By: patapizza
Differential Revision: D4782749
fbshipit-source-id: 5bbe425
2017-03-27 16:04:24 -07:00
Bartosz Nitka
09acefbcf5
Make Show Dimension "law-abiding"
...
Summary:
`Show` should print things close to source level representation.
I wanted to generate some tests from inputs that cause problems
and there was no way to get source level representation of
Dimension.
Reviewed By: patapizza
Differential Revision: D4723711
fbshipit-source-id: fff658d
2017-03-16 16:34:16 -07:00
Julien Odent
e76cee3a6d
Rename Finance to AmountOfMoney
...
Summary: Because it makes more sense.
Reviewed By: JonCoens
Differential Revision: D4721646
fbshipit-source-id: 449bfb4
2017-03-16 14:49:44 -07:00
Julien Odent
54c9448fba
Rename Number to Numeral
...
Summary: For consistency with the dimension name.
Reviewed By: JonCoens
Differential Revision: D4722216
fbshipit-source-id: 82c56d3
2017-03-16 13:49:16 -07:00
Jonathan Coens
41800a3171
Move onto dependent-sum instead of custom local data Some
...
Summary:
No need to reinvent the wheel when `dependent-sum` has what we need. I re-export `Some(..)` from `Duckling.Dimensions.Types` to cut down on import bloat.
Instead of a `Read` instance I created a `fromName` function.
Reviewed By: zilberstein
Differential Revision: D4710014
fbshipit-source-id: 1d4e86d
2017-03-15 10:34:17 -07:00
Jonathan Coens
1b91b70c58
codemod DNumber to Numeral
...
Summary: `DNumber` is a terrible name and was only there because legacy. `Numeral` makes more sense for this dimension, so let's use that instead.
Reviewed By: patapizza
Differential Revision: D4707167
fbshipit-source-id: cd78aa3
2017-03-14 13:34:11 -07:00
Julien Odent
ab06262291
Strip off TODO/FIXME
...
Summary: as the title says
Differential Revision: D4682120
fbshipit-source-id: 3f66286
2017-03-10 12:04:16 -08:00
FBShipIt
3f8e52e70a
Initial commit
...
fbshipit-source-id: 301a10f448e9623aa1c953544f42de562909e192
2017-03-08 10:33:56 -08:00