mirror of
https://github.com/facebook/duckling.git
synced 2024-12-01 08:19:36 +03:00
Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
28d53fce30
Summary: It is no longer necessary after D4676812 and D4698788. `"I have 9 am 12 pm 1 pm 2pm 4 pm 3 pm on Saturday"` now works in less than a second, it used to be 10s. The test suite also got 3s faster. Reviewed By: patapizza Differential Revision: D4701890 fbshipit-source-id: 107a55f |
||
---|---|---|
Duckling | ||
CONTRIBUTING.md | ||
duckling.cabal | ||
ExampleMain.hs | ||
LICENSE | ||
PATENTS | ||
README.md | ||
RegenMain.hs | ||
stack.yaml | ||
TestMain.hs |
Duckling
Duckling is a Haskell library that parses text into structured data.
Requirements
A Haskell environment is required. We recommend using stack.
Quickstart
To compile and run the binary:
$ stack build
$ stack exec duckling-example-exec
The first time you run it, it will download all required packages.
To run a source file directly (after compiling once):
$ stack ExampleMain.hs
See ExampleMain.hs
for an example on how to integrate Duckling in your
project.
To regenerate the classifiers and run the tests:
$ stack RegenMain.hs && stack TestMain.hs
License
Duckling is BSD-licensed. We also provide an additional patent grant.