duckling-0.1.4.0: A Haskell library for parsing text into structured data.

Safe HaskellNone
LanguageHaskell2010

Duckling.Api

Synopsis

Documentation

analyze :: Text -> Context -> HashSet (Some Dimension) -> [ResolvedToken] Source #

Returns a curated list of resolved tokens found When targets is non-empty, returns only tokens of such dimensions.

formatToken :: Text -> ResolvedToken -> Entity Source #

Converts the resolved token to the API format

parse :: Text -> Context -> [Some Dimension] -> [Entity] Source #

Parses input and returns a curated list of entities found.