Skip to main content

Causal Annotation Correction Tool

Project description

A tool support tool for inspection, validation and correction of behavioral annotations. For more information, visit the project website:

https://github.com/vac-mmis/CausalAnnotationCorrection

The tool requires Python 3.8 or higher.

How to use it?

Install the package using pip:

$ pip install acheck

After the installation, use:

$ acheck check $domain.pddl $problem.pddl $annotation.csv

By default, it will automatically start a local server on 127.0.0.1:9000.

Options:

  • -l $file_1 $file_2 $file_n : Enter one or multiple annotation files or the domain or problem file to lock them in editor

    $ acheck check domain.pddl problem.pddl anno_1.csv -l domain.pddl anno_1.csv
    
  • -o $directory: Enter a custom directory for all output files.

    $ acheck check domain.pddl problem.pddl anno_1.csv -o project/output
    
  • -p port: Specify the port on which the server is running.

    $ acheck check domain.pddl problem.pddl anno_1.csv -p 8000
    
  • -v: Enable verbose output.

  • -m directory: Enter a custom directory to load multiple annotations

  • --nogui: For command line only use.

  • --inplace: Work with the original files. For command line only use without backup.

Enchant

The tool uses pyenchant for spell checking. It is a spellchecking library for Python, based on the Enchant library. In order to work properly you will need to install the Enchant C library manually:

MacOS:

$ brew update
$ brew install enchant

To avoid problems, restart your system after installation.

Linux:
The quickest way is to install libenchant using the package manager of your current distribution.
To detect the libenchant binaries, PyEnchant uses ctypes.util.find_library(), which requires ldconfig, gcc, objdump or ld to be installed. This is the case on most major distributions, however statically linked distributions (like Alpine Linux) might not bring along binutils by default.
To avoid problems, restart your system after installation.

$ pacman -S enchant

$ sudo apt-get install enchant-2

If you experience any issues, you may want to have a look at:

https://pyenchant.github.io/pyenchant/install.html

It can happen that with the enchant installation, no providers are installed that enable the spell check. For this you can install the desired provider yourself:

$ pacman -S aspell

$ sudo apt-get install aspell

Also the desired languages can be installed in this way:

$ pacman -S aspell-en
$ pacman -S aspell-de

$ sudo apt-get install aspell-en
$ sudo apt-get install aspell-de

If you experience any issues, you may want to have look at:

https://pyenchant.github.io/pyenchant/install.html#installing-a-dictionary

The standard language for the spell checker is English (en_US). You need to configure the language with the following command:

$ acheck config -l $language

Supported languages (at the moment): en_US en_GB de_DE

Plan Validation

If you want to enable plan validation, you need to download the KCL Validator. Just follow the instructions on the GitHub page and download the binaries for you operating system. To get to the download, just click on the Azure Pipelines button at the beginning of the README.md. Save the binaries in a location that suits you. After downloading, you need to configure the path to the validator executable file. bin/Validate or bin/Validate.exe

In order to use the plan validator correctly, stop the tool and set the path like:

$ acheck config -v $path-to-validate-executable

Examples:

$ acheck config -v /Users/macos64/Val-20211204.1-Darwin/bin/Validate
$ acheck config -v /Users/linux/Val-20211204.1-Linux/bin/Validate
$ acheck config -v /Users/windows/Val-20211204.1-Windows/bin/Validate.exe

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acheck-0.0.15.tar.gz (266.0 kB view details)

Uploaded Source

Built Distribution

acheck-0.0.15-py3-none-any.whl (275.1 kB view details)

Uploaded Python 3

File details

Details for the file acheck-0.0.15.tar.gz.

File metadata

  • Download URL: acheck-0.0.15.tar.gz
  • Upload date:
  • Size: 266.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for acheck-0.0.15.tar.gz
Algorithm Hash digest
SHA256 16eeed0d6575eacac43e28197a069d3a0db3f7dd24096180a21eec0dd6ae398e
MD5 2dcacc4577816d10ee22e4be2f1e00b0
BLAKE2b-256 49c925f4fbdb8c6fa266f78f090b2112a88c319942b65f4fba9884b352bd9e0d

See more details on using hashes here.

File details

Details for the file acheck-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: acheck-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 275.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for acheck-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 b896feb101ec2e3c6881d0b5f30af730b99302d0c65fc431f2b8b739e07f9347
MD5 11b2c12d5fc8a6cf6a70d4376e6c9ede
BLAKE2b-256 472e89d6d298f288d474ae00b2d885753c5473982408b2ec661e0da2f20139f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page