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.1.0.tar.gz (221.5 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.1.0-py3-none-any.whl (270.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sparv-pipeline-5.1.0.tar.gz
Algorithm Hash digest
SHA256 b65e155244fe643b86da870dc0157b37b15c96c28de50a699d90d9d0df55903f
MD5 ccbe64d92e83e024062ee0118aa1b6da
BLAKE2b-256 233c19aa499e209b07d0bf335a9d66a1dac023dfa19d0346e085a19ea8e80926

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sparv_pipeline-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20d6131c4a34d9ccd74cab04b83ec07ff368679e9d54bdf473093b6d84a77a1c
MD5 eb70e043a7ca11c0a132a7d7aae5bfae
BLAKE2b-256 54ce73fd6a7c9b135f998d45fcb8188af50680e467f9dc71800fec67051052e3

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 Pingdom Monitoring Sentry Error logging StatusPage Status page