Installation#
System requirements
To install Label Sleuth, your system should satisfy the following requirements:
Operating System: Windows, MacOS, or Linux
Hardware: At least 2 CPU cores and 4GB RAM (for improved performance, 8 CPU cores and 16GB RAM are recommended, especially when working with large datasets). Note that some models may have additional hardware requirements, as outlined in the models documentation.
Recommended procedure to install Label Sleuth:
Install Anaconda
Anaconda will allow you to create a separate Python environment for Label Sleuth. This is important as Label Sleuth currently only supports Python 3.8 (other versions may cause issues). Download and install Anaconda from its official web-site:
Activate Environment
Open a new terminal or restart it if it is already open.
In the new terminal, create a Python environment for Label Sleuth:
conda create --yes -n label-sleuth python=3.9
Then, activate the new environment:
conda activate label-sleuth
Install Label Sleuth
Install Label Sleuth by running the following command:
pip install label-sleuth
Fire it all up
Start Label Sleuth:
python -m label_sleuth.start_label_sleuth --load_sample_corpus wiki_animals_2000_pages
This command also pre-loads a collection of Wikipedia documents that will be used in the tutorial below.
Access Label Sleuth on your browser by navigating to the following page:
Change the configuration (Optional)
When starting up the system, you can change any of the system parameters detailed here to suit your needs.
As an example, if you would like to use the system with text data in Romanian, rather than the default setting of English, you can do so by entering the following command:
python -m label_sleuth.start_label_sleuth --language Romanian
Follow tutorial (Recommended)
Now that you have installed Label Sleuth, we strongly recommend following our step-by-step tutorial to get acquainted with the system.
Install Label Sleuth
If you wish to contribute code to the project, follow the installation instructions on GitHub.
Follow tutorial (Recommended)
Once you have installed Label Sleuth, we strongly recommend following our step-by-step tutorial to get acquainted with the system.
Note
Customizing Label Sleuth
When starting up Label Sleuth, the project directory and port can be customized by appending to the startup command python -m label_sleuth.start_label_sleuth
the following flags:
--output_path <your_path>
:Set location of project files to
<your_path>
(default is<home_directory>/label-sleuth
)
--port <port_number>
:Set port to
<port_number>
(default is 8000)
--host <ip_or_name>
:Set host to
<ip_or_name>
(default is localhost, use 0.0.0.0 to expose the service to external communication)
In addition, all of the configuration parameters can be modified when starting up the system, by passing the appropriate flag. For instance:
--language <LANGUAGE>
:Set the system to work with text data in one of the currently supported languages.
--model_policy <MODEL_POLICY>
:Set the system to work with one of the currently supported machine learning models.