Skip to main content

Språkbanken's Sparv Pipeline

The Sparv Pipeline is a text analysis tool run from the command line. The documentation can be found here: https://spraakbanken.gu.se/sparv.

Check the changelog to see what's new!

Sparv is developed by Språkbanken. The source code is available under the MIT license.

If you have any questions, problems or suggestions please contact sb-sparv@svenska.gu.se.

Prerequisites

  • A Unix-like environment (e.g. Linux, OS X or Windows Subsystem for Linux) Note: Most of Sparv's features should work in a Windows environment as well, but since we don't do any testing on Windows we cannot guarantee anything.
  • Python 3.6.2 or newer

Installation

Sparv is available on PyPI and can be installed using pip or pipx. We recommend using pipx, which will install Sparv in an isolated environment while still making it available to be run from anywhere.

python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install sparv-pipeline

Now you should be ready to run the Sparv command! Try it by typing sparv --help.

The Sparv Pipeline can be used together with several plugins and third-party software. Please check the Sparv user manual for more details!

Running tests

If you want to run the tests you will need to clone this project from GitHub since the test data is not distributed with pip.

Before cloning the repository with git make sure you have Git Large File Storage installed (apt install git-lfs). Some files will not be downloaded correctly otherwise.

We recommend that you set up a virtual environment and install the dependencies (including the dev dependencies) listed in setup.py:

python3 -m venv venv
source venv/bin/activate
pip install -e .[dev]

Now with the virtual environment activated you can run pytest from the sparv-pipeline directory. You can run particular tests using the provided markers (e.g. pytest -m swe to run the Swedish tests only) or via substring matching (e.g. pytest -k "not slow" to skip the slow tests).

Download files

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

Source Distribution

sparv-pipeline-5.0.0.tar.gz (214.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sparv_pipeline-5.0.0-py3-none-any.whl (263.8 kB view details)

Uploaded Python 3

File details

Details for the file sparv-pipeline-5.0.0.tar.gz.

File metadata

  • Download URL: sparv-pipeline-5.0.0.tar.gz
  • Upload date:
  • Size: 214.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for sparv-pipeline-5.0.0.tar.gz
Algorithm Hash digest
SHA256 c493fc874c6dee8ba03f9cf296ba78264b52d7d8d27c6efa03eb7084f1109cba
MD5 f552d0830ff8d6a3e7a2b38221a74a5c
BLAKE2b-256 115062547d6d777a1ac958a3a44ed98ffc554d8922c019f4963d0c733fa101ab

See more details on using hashes here.

File details

Details for the file sparv_pipeline-5.0.0-py3-none-any.whl.

File metadata

  • Download URL: sparv_pipeline-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 263.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for sparv_pipeline-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc04f4031e010e986b4b295220b4f283cd571afa60ac5382c99c153494caca39
MD5 a77635fc8f46be884f3b5e6d68d2ab8c
BLAKE2b-256 129257aab6e91f57c9fb3272c524a7010afbb5aa63f9e70cdb8b515f5433d105

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page