alex.applications package

Subpackages

Submodules

alex.applications.ahub module

alex.applications.autopath module

self cloning, automatic path configuration

copy this into any subdirectory of pypy from which scripts need to be run, typically all of the test subdirs. The idea is that any such script simply issues

import autopath

and this will make sure that the parent directory containing “pypy” is in sys.path.

If you modify the master “autopath.py” version (in pypy/tool/autopath.py) you can directly run it which will copy itself on all autopath.py files it finds under the pypy root directory.

This module always provides these attributes:

pypydir pypy root directory path this_dir directory where this autopath.py resides

alex.applications.exceptions module

exception alex.applications.exceptions.HubException[source]

Bases: alex.AlexException

exception alex.applications.exceptions.SemHubException[source]

Bases: alex.applications.exceptions.HubException

exception alex.applications.exceptions.TextHubException[source]

Bases: alex.applications.exceptions.HubException

exception alex.applications.exceptions.VoipHubException[source]

Bases: alex.applications.exceptions.HubException

alex.applications.shub module

class alex.applications.shub.SemHub(cfg)[source]

Bases: alex.components.hub.hub.Hub

SemHub builds a text based testing environment for the dialogue manager components.

It reads dialogue acts from the standard input and passes it to the selected dialogue manager. The output is the form dialogue acts.

hub_type = u'SHub'
input_da_nblist()[source]

Reads an N-best list of dialogue acts from the input.

:rtype : confusion network

output_da(da)[source]

Prints the system dialogue act to the output.

parse_input_da(l)[source]

Converts a text including a dialogue act and its probability into a dialogue act instance and float probability.

The input text must have the following form:
[prob] the dialogue act
run()[source]

Controls the dialogue manager.

alex.applications.thub module

alex.applications.vhub module

alex.applications.webhub module

Module contents