Giter Site home page Giter Site logo

API Documentation about duckling HOT 10 CLOSED

facebook avatar facebook commented on April 20, 2024
API Documentation

from duckling.

Comments (10)

creswick avatar creswick commented on April 20, 2024 2

@ducdetronquito the API docs on Hackage are a reasonable place to start. I'm also new to duckling, but I've used haskell for some time. You'll find the hackage docs to be a great source of information for most libraries (it adds searchability, indexes, and better navigation through the haddock comments for each library).

Duckling's hackage page is here: https://hackage.haskell.org/package/duckling

And specifically, the API module (which appears to be the main programatic entry point) is at:
https://hackage.haskell.org/package/duckling-0.1.2.0/docs/Duckling-Api.html

from duckling.

ducdetronquito avatar ducdetronquito commented on April 20, 2024 2

@blandinw + @creswick : Thank you both for your answers :) I didn't know about the Hackage page, which is helpful !

I wanted to start a python binding of duckling, but I have to admit that I need to learn Haskell and improve my C skills first 😞

from duckling.

patapizza avatar patapizza commented on April 20, 2024 1

Hi @ducdetronquito,

We are planning on updating duckling.wit.ai.
What exactly are you looking for?

from duckling.

ducdetronquito avatar ducdetronquito commented on April 20, 2024 1

Thanks @patapizza, it's a great news :)

General question here, I wasn't looking for something in particular. As I am very new to Haskell, just reading at duckling's code is not enough to understand how things work.

from duckling.

blandinw avatar blandinw commented on April 20, 2024 1

@ducdetronquito https://github.com/facebookincubator/duckling/blob/master/README.md shows the kind of output you get for each dimension, as well as an explanation on how to extend Duckling if you're looking to contribute.

We'll update duckling.wit.ai, but I'm not sure it will have more content than what's in the README + an interactive demo. Feel free to comment on this issue if you have ideas of content we could add!

from duckling.

pranjaltale16 avatar pranjaltale16 commented on April 20, 2024 1

Yeah, Thanks!!

from duckling.

pranjaltale16 avatar pranjaltale16 commented on April 20, 2024

Hey,
I need a little help, I was going through the code and came to know that for every <dimension>/<language> there exist two files Rules and Corpus one consisting of Rules and other for test cases which help us in structuring the query (please correct me if I'm wrong).

I would like to know how a sentence get parsed or How a structured data is generated, is NLP involved behind, if yes, How?
I'm new to Deep learning, so I'm unable to connect much how Rules and Corpus are used in structuring a query. Could you please help me with this part?

Also, how exe/Duckling/Ranking/Generate.hs and exe/Duckling/Ranking/Train.hs works and plays a role in parsing the text?

This would be of great help.
Thanks!

from duckling.

patapizza avatar patapizza commented on April 20, 2024

Hi @pranjaltale16,

At a high-level, Duckling is a rule engine. As such, it takes a bunch a rules and applies them on an input text; the core logic for this is in Duckling/Engine.hs. There is no deep learning involved.

In some cases, multiple valid parses are possible (e.g. "(between 8 and 10) tomorrow" and "between 8 and (10 tomorrow)"). To disambiguate these, we build classifiers based on the Corpus examples; this is done in the files you mentioned.

Hope this help.

from duckling.

gembin avatar gembin commented on April 20, 2024

I'm also cannot find useful API doc or user guide, especially for non Haskell users, how duckling can be used.

  1. Used as a library? may be need some programming language bindings?
  2. Used as a server provides RESTful APIs ? I just tried duckling-example-exe, but there is no doc about what's the API response JSON format, and what's the meaning of each filed ?

from duckling.

mohit-sentieo avatar mohit-sentieo commented on April 20, 2024

Hi Guys

I am planning to put together a document to properly understand Duckling with things like what does a Token, Match etc mean. How does the rule engine work ? How does classifiers work? I have been learning haskell just because I need to add extra domain specific dimensions to Duckling. Is there anyone else who would like to contribute ?

from duckling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.