2. Installing Linguistic Diagnostics Toolkit

You need Python 3.5 or above. The latest stable version of LDT is now available in PyPi:

>>> pip install ldt

The latest development version can be installed with:

>>> pip install git+https://github.com/annargrs/ldt.git

Package requirements (will be installed automatically by pip):

To run LDT will expect to find an .ldt-config.yaml configuration file in the user home folder, as described in the section Configuration file.

2.1. Spellchecker

For spellchecker engines, LDT currently relies on the pyenchant library, which provides an interface to the system spellcheckers such aspell, hunspell etc. Aspell worked the best in our tests, although any other engine can also be used. Enchant needs to be installed for this to work.

  • Mac: install enchant with brew (http://macappstore.org/enchant/)
  • Linux: enchant should be available from your distribution repository. E.g. on Ubuntu you should be able to just sudo apt-get install enchant.
  • Windows: we did not test this, but a binary package should be available from PyPi upon installation of pyenchant, and it should be possible to copy any required OpenOffice spellchecker dictionaries into pyenchant folder (advice from here).

Next you will need to configure LDT and download some additional resources. See sections Configuration file, Corpus-specific resources and Language-specific resources.