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.1 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-4.1.1.tar.gz (204.9 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-4.1.1-py3-none-any.whl (248.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparv-pipeline-4.1.1.tar.gz
  • Upload date:
  • Size: 204.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for sparv-pipeline-4.1.1.tar.gz
Algorithm Hash digest
SHA256 bbd1d08a613b5c7df9ce1dbd3035ba9f6eec6726bd4c5bd63053d61e8875cc67
MD5 f02715d3f105bc50037226af84811ac7
BLAKE2b-256 1fe143baefc8fb8650d6f841e97afa16ef30106021fd794d16b87d57a97ab236

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparv_pipeline-4.1.1-py3-none-any.whl
  • Upload date:
  • Size: 248.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for sparv_pipeline-4.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b847badc3c0ad358fd56939ea5e4d7472efb08c0ec35ae9512031ad4b74a5ae0
MD5 a4c92d8e37329edd05d5a9f0c6b50827
BLAKE2b-256 f52ddb1c53a8344722abfdc01bc0c54609501e6377073aa26342d09a27ce92ef

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