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

Safe HaskellNone
LanguageHaskell2010

Duckling.Api

Synopsis

Documentation

analyze :: Text -> Context -> Options -> 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 -> Options -> [Some Dimension] -> [Entity] Source #

Parses input and returns a curated list of entities found.