Skip to content

Installation¤

Installing Python and Anaconda¤

We recommend installing using the Anaconda Python distribution, even if you already have a version of Python installed on your computer. The Lexos installation process has been tested using Anaconda, and we have run into some issues trying to do it without Anaconda in the past.

  1. Visit the Anaconda Distribution page to download the Anaconda installer for your operating system.
  2. Once it has finished downloading, run the Anaconda Installer and follow the instructions.
  3. To verify Python has been installed correctly, open the Anaconda prompt and enter `python -V`. The response should be a Python version number, e.g. "Python 3.9.12".

Installing the Lexos API¤

To install the Lexos API, run

pip install lexos

To update to the latest version, use

pip install -U lexos

This will install the Lexos API and all of its dependencies.

Downloading the Default Language Model (Required)¤

Before using Lexos, you will want to install its default language model:

python -m spacy download xx_sent_ud_sm

For information on how Lexos uses language models, see Tokenizing Texts.

Downloading Additional Language Models (Optional)¤

This is a minimal model that performs sentence and token segmentation for a variety of languages. If you want a model for a specific language, such as English, download it by providing the name of the model:

python -m spacy download en_core_web_sm

If you are working in another language or need a larger language model, you can download instructions for additional models from the spaCy models page.