Skip to content

Instantly share code, notes, and snippets.

@wrathagom
Created June 2, 2017 02:57
Show Gist options
  • Save wrathagom/2edb2b8a2c3873133273129930a46a9c to your computer and use it in GitHub Desktop.
Save wrathagom/2edb2b8a2c3873133273129930a46a9c to your computer and use it in GitHub Desktop.
Duckling Output for `3 days` input
[
{
"dim": "number",
"body": "3",
"value": {
"type": "value",
"value": 3
},
"start": 0,
"end": 1
},
{
"dim": "time",
"body": "3",
"value": {
"type": "value",
"value": "2017-06-02T03:00:00.000Z",
"grain": "hour",
"values": [
{
"type": "value",
"value": "2017-06-02T03:00:00.000Z",
"grain": "hour"
},
{
"type": "value",
"value": "2017-06-02T15:00:00.000Z",
"grain": "hour"
},
{
"type": "value",
"value": "2017-06-03T03:00:00.000Z",
"grain": "hour"
}
]
},
"start": 0,
"end": 1,
"latent": true
},
{
"dim": "distance",
"body": "3",
"value": {
"type": "value",
"value": 3
},
"start": 0,
"end": 1,
"latent": true
},
{
"dim": "volume",
"body": "3",
"value": {
"type": "value",
"value": 3
},
"start": 0,
"end": 1,
"latent": true
},
{
"dim": "duration",
"body": "3 days",
"value": {
"day": 3,
"value": 3,
"unit": "day",
"normalized": {
"value": 259200,
"unit": "second"
}
},
"start": 0,
"end": 6
},
{
"dim": "temperature",
"body": "3",
"value": {
"type": "value",
"value": 3
},
"start": 0,
"end": 1,
"latent": true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment