Closed charlescatta closed 2 years ago
Hi!
This bug is now fixed. Just try the following command:
curl -XPOST https://duckling.botpress.io/parse --data 'locale=en_GB&text=Call me on (034)-234-2019 on Sunday'
it will output:
[
{
"body": "(034)-234-2019",
"start": 11,
"value": { "value": "0342342019", "type": "value" },
"end": 25,
"dim": "phone-number",
"latent": false
},
{
"body": "on Sunday",
"start": 26,
"value": {
"values": [
{
"value": "2021-12-19T00:00:00.000-08:00",
"grain": "day",
"type": "value"
},
{
"value": "2021-12-26T00:00:00.000-08:00",
"grain": "day",
"type": "value"
},
{
"value": "2022-01-02T00:00:00.000-08:00",
"grain": "day",
"type": "value"
}
],
"value": "2021-12-19T00:00:00.000-08:00",
"grain": "day",
"type": "value"
},
"end": 35,
"dim": "time",
"latent": false
}
]
The default botpress-hosted version of duckling has a different extraction behaviour than the version in botpress/server's official docker image, example:
When extracting phone number + time:
Utterance:
Call me on (034)-234-2019 on Sunday
On the docker version:
On the botpress-hosted duckling.botpress.io: