Skip to main content

[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.17186.svg)](http://dx.doi.org/10.5281/zenodo.17186)

  1. LAAS-CNRS 2010-2013, EPFL 2013-2015

This module, licensed under the permissive BSD 3-clause, reads on stdin user input in natural language, parse it, call resolution routines when ambiguous concepts are used, and finally generate RDF statements that are an interpretation of the input.

It includes as well a verbalization module that conversely turns RDF statements into a sentence in natural language.

![Overview of the Dialogs pipeline](doc/dialogs_module_simple_small.png)

While not strictly required, it is strongly recommanded to use dialogs with a knowledge base that follows the ‘’KB API’’ like [minimalKB](https://github.com/severin-lemaignan/minimalkb/) or [oro-server](http://oro.openrobots.org).

You are welcome to reuse this software for your research. Please refer to the CITATION file for proper attribution in scientific works.

Installation

Simply run:

` > pip install dialogs `

You can also grab the source code of the latest release [here](https://github.com/severin-lemaignan/dialogs/releases/latest).

Usage

You can start to use dialogs immediately. For instance, try:

` > dialogs -d -p"What are you doing?" > dialogs -d -p"I'm playing with you" `

The -d flags activates the debug mode, and gives you a complete picture of the different steps: pre-processing, parsing, semantic resolution of the atoms of the sentence, interpretation and verbalization ([read the paper](http://academia.skadge.org/publis/lemaignan2011grounding.pdf) to know more about these steps).

Lines displayed in cyan log the interactions of the dialogue module with the knowledge base (queries and knowledge revisions). If no knowledge base is running, most of the semantic resolution attempts will fail, so when asked “what are you doing?”, the system answers “I don’t know”.

If you start dialogs with no options, it will simply read on stdin.

Check dialogs --help for other options.

Common invokation is:

` > dialogs -d NAME_OF_THE_SPEAKER `

The main test-suite can be started with:

` > dialogs_test `

Demo

A live demo of the parser alone (not the semantic grounding part) is [available online](https://chili-research.epfl.ch/dialogs/).

Release files for Dialogs 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Dialogs 1.0
File Size Uploaded
Dialogs-1.0.tar.gz 439.2 kB Details

Release files / Dialogs-1.0.tar.gz

Download URL Dialogs-1.0.tar.gz
Size 439.2 kB
Tags Source
SHA-256 checksum
How to use checksums
580119e7cd02eaf15b976f724b6a1daeef6fbf6ac9398e36f7c1478a52f1ed76
BLAKE2b-256 checksum
How to use checksums
c6b3f39ac8419eb70ec5da48dc829f9b15e75c67f020533b6e40a872ebc447cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

0.14

1 release file

0.13

1 release file

0.12

1 release file

0.11

1 release file

0.10

1 release file

0.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page