{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/NLU_core/duckling/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"1b83c5a7-fb88-5643-b412-e64bf7e3b6d3","excerpt":"Duckling?> The platform extracts  system entities via the Duckling service. Versions The platform supports two versions of Duckling service integration:  and…","html":"<h1>Duckling</h1>\n<hr>\n<p class='warn'>The platform extracts <code class=\"language-text\">duckling.&lt;name></code> system entities via the <a href=https://github.com/facebook/duckling target=\"_blank\" rel=\"noopener noreferrer\">Duckling</a> service.</p>\n</br>\n<h3>Versions</h3>\n<p>The platform supports two versions of Duckling service integration: <code class=\"language-text\">1.0</code> and <code class=\"language-text\">2.0</code>. By default, version <code class=\"language-text\">2.0</code> is used in new projects.</p>\n<p>As compared to version <code class=\"language-text\">1.0</code>, Duckling <code class=\"language-text\">2.0</code> features enhanced capabilities and optimized entity recognition behavior.</p>\n</br>\n<h3>Date&#x26;Time</h3>\n<p>Let us have a look at the <code class=\"language-text\">@duckling.time</code>, <code class=\"language-text\">@duckling.date</code> and <code class=\"language-text\">@duckling.time-of-day</code> entities.</p>\n</br>\n<p>Expected behavior:</p>\n<ul>\n<li><code class=\"language-text\">@duckling.time</code> extracts the date and time together; only the date; only the time.</li>\n<li><code class=\"language-text\">@duckling.date</code> extracts the date and time together; only the date; only the time.</li>\n<li><code class=\"language-text\">@duckling.time-of-day</code> extracts the date and time together; only the time.</li>\n</ul>\n</br>\n<p>Suppose we talk to the bot on June 19, 2020, and the bot uses all the three entities in its script:</p>\n</br>\n<table>\n<thead>\n<tr>\n<th>Client phrase</th>\n<th>@duckling.time</th>\n<th>@duckling.date</th>\n<th>@duckling.time-of-day</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tomorrow at 15</td>\n<td><code class=\"language-text\">2020-06-20T15:00:00</code></td>\n<td><code class=\"language-text\">2020-06-20T15:00:00</code></td>\n<td><code class=\"language-text\">2020-06-20T15:00:00</code></td>\n</tr>\n<tr>\n<td>on Tuesday</td>\n<td><code class=\"language-text\">2020-06-23T00:00:00</code></td>\n<td><code class=\"language-text\">2020-06-23T00:00:00</code></td>\n<td>entity not found</td>\n</tr>\n<tr>\n<td>at noon</td>\n<td><code class=\"language-text\">2020-06-19T12:00:00</code></td>\n<td><code class=\"language-text\">2020-06-19T12:00:00</code></td>\n<td><code class=\"language-text\">020-06-19T12:00:00</code></td>\n</tr>\n</tbody>\n</table>\n</br>\n<p>Please note that the behavior of the entities is identical when you need to extract both date and time.</p>","frontmatter":{"title":"","description":null},"headings":[{"value":"Duckling"}]}},"pageContext":{"slug":"/docs/en/NLU_core/duckling/","previous":{"fields":{"slug":"/docs/en/NLU_core/entities/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/NLU_core/data/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}