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.0.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.0-py3-none-any.whl (248.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparv-pipeline-4.1.0.tar.gz
  • Upload date:
  • Size: 204.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for sparv-pipeline-4.1.0.tar.gz
Algorithm Hash digest
SHA256 352096498eb1ee56544daa35ee86ca8ffc518c244d85fa8049a8c233216c0664
MD5 a82a7ef954f2f636b080f2613d92d19a
BLAKE2b-256 bb5ecd04eb4b3729236598ef9eb4dd9418a3589da407351468ffaf5555fc1e21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparv_pipeline-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 248.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for sparv_pipeline-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7acca3cab6be4c378f80545d811e9fa195ac6216efd81bbe761d81ddcd710197
MD5 47459d192277dccdd6945aa5a13234ff
BLAKE2b-256 917eae08fc81a7c6e8372ccfc232acc3e87d0c63eb72e4bca29dd0228c1f9cc5

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