Git Product home page Git Product logo

sparv-pipeline's Introduction

Språkbanken's Sparv Pipeline

The Sparv pipeline is a corpus annotation tool run from the command line. The documentation can be found here: https://spraakbanken.gu.se/sparv/docs.

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 [email protected].

Prerequisites

  • A Unix-like environment (e.g. Linux, OS X or Windows Subsystem for Linux) Note: Most things within Sparv should work in a Windows environment as well but we cannot guarantee anything since we do not test our software on Windows.
  • Python 3.6.1 or newer
  • Java (if you want to run Swedish dependency parsing, Swedish word sense disambiguation or the Stanford Parser)

Installation

The Sparv pipeline can be installed using pip. We even recommend using pipx so that you can install the sparv command globally:

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

Alternatively you can install Sparv from the latest release from GitHub:

pipx install https://github.com/spraakbanken/sparv-pipeline/archive/latest.tar.gz

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!

Roadmap

  • Export of corpus metadata to META-SHARE format
  • Support for Swedish historic texts
  • Support for parallel corpora
  • Preprocessing of indata with automatic chunking

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

sparv-pipeline's People

Contributors

anne17 avatar heatherleaf avatar malinahlberg avatar martinhammarstedt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.