Skip to main content

Språkbanken's text analysis tool

Project description

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.8 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.

Install the dependencies, including the dev dependencies. We recommend that you first set up a virtual environment:

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).

Project details


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.2.0.tar.gz (224.2 kB view details)

Uploaded Source

Built Distribution

sparv_pipeline-5.2.0-py3-none-any.whl (286.7 kB view details)

Uploaded Python 3

File details

Details for the file sparv_pipeline-5.2.0.tar.gz.

File metadata

  • Download URL: sparv_pipeline-5.2.0.tar.gz
  • Upload date:
  • Size: 224.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.2

File hashes

Hashes for sparv_pipeline-5.2.0.tar.gz
Algorithm Hash digest
SHA256 d8282fd97ebae048e40b1cd83e087fad455ab137e107ebf54e2685b3af2f13b7
MD5 6398adcd58ee331d64680a0bdd246a6a
BLAKE2b-256 f4170fb57a8413839a69fa4958a108062a69b6e9d95d4fb1d79a3a007d7c653a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sparv_pipeline-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1334808b7b7dd15463decec95871c4e8427dbedd9f6f9b64c16e9224e66507c6
MD5 26b395b4f40e0a482762649bd0016659
BLAKE2b-256 dab1e0ee90f9cee49b217f3dbf757b0fe8e18f6cf5a1c76d712521ec51ba3d17

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page