@hackage / luis-client

An unofficial client for the LUIS NLP service.

Latest0.0.2

About

Metadata

  • Last updated , by MicxjoFunkcio
  • License BSD-3-Clause
  • Categories Web Development, Natural Language Processing
  • Maintained by: Micxjo Funkcio <micxjo@fastmail.com>

  • Lottery factor: 0

Links

Installation

Readme

hs-luis-client

Hackage

An unofficial Haskell client for Microsoft's LUIS natural language processing API.

Examples

import Control.Lens
import NLP.LUIS

main = do
   let creds = Credentials "Your-App-Id" "Your-Subscription-Key"
   resp <- queryExc creds "show me news about greenland"

   resp ^? responseIntents . ix 0 . intentType   -- Just "FindNews"
   resp ^? responseEntities . ix 0 . entityText  -- Just "greenland"