duckling-0.2.0.0: A Haskell library for parsing text into structured data.
Safe HaskellNone
LanguageHaskell2010

Duckling.Api

Synopsis

Documentation

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

Parses input and returns a curated list of entities found.