the automatic annotation and analysis of speech

SPPAS-5.0 is coming soon. Some pages of this website may still be incomplete. Questions? Contact the author.

Scripting

Why doing it?

There are several reasons to learn and use scripts for your research:

  1. Apply your work in several contexts, by automatizing a task
  2. Make your work reproducible
  3. Customize SPPAS solutions

Among the very long list of programming languages, Python is one of the most popular in the world, with strong peer support and helpful documentation. Python offers a wide range of libraries that can be used across various applications, including machine learning, statistics, data analysis, etc.

Python's simple syntax, combined with its large set of libraries, is helping us to do more with fewer efforts.

https://www.python.org

Scripting with Python

It is assumed that a version of Python is installed and configured. It is also assumed that the Python IDLE is ready-to-use. For more details about Python.

Introduction to programming

What are the basic concepts for programming scripts?

Read me →

Python programming

What are the basics of python programming?

Read me →

Scripting with SPPAS

Adding "sppas" to the Python path

SPPAS implementation is available into the "sppas" directory of the package. For any script using it, we've to tell Python where to find it! This can be done with the following lines:

     import os
     import sys
     # If there's a SPPAS environment variable
     SPPAS = os.getenv("SPPAS")
     if SPPAS is None:
         SPPAS = "path/to/your/SPPAS-package"
     sys.path.append(SPPAS)
     import sppas
     

Scripting for beginners

anndata

A library to deal with the annotated data.

import sppas.src.anndata
Read me →

API documentation

SPPAS configuration, and install of its dependencies

config

Library to configure SPPAS.

import sppas.config
Read me →

preinstall

Library for installing programs with the setup.

import sppas.preinstall
Read me →

Data management: annotated data, images and videos

anndata

Library to deal with the annotated data.

import sppas.src.anndata
Read me →

imgdata

A library to deal with the images.

import sppas.src.imgdata
Read me →

videodata

A library to deal with the videos.

import sppas.src.videodata
Read me →

Data structures and utilities

structs

A library for various data structures in SPPAS.

import sppas.src.structs
Read me →

utils

Utility library for SPPAS.

import sppas.src.utils
Read me →

Data files and linguistic resources

wkps

A library to manage files and references in workspaces.

import sppas.src.wkps
Read me →

resources

The library for working with the linguistic resources.

import sppas.src.resources
Read me →

Annotations & analysis

analysis

The library for the analysis of annotated data.

import sppas.src.analysis
Read me →

annotations

The library for the automatic annotations.

import sppas.src.annotations
Read me →

Licenses and Credits

SPPAS is distributed under the GNU Affero General Public License v3 or later.

Source code: SourceForge (full code and history) · GitHub mirror (last release only)

Related components