Introduction to programming
What are the basic concepts for programming scripts?
There are several reasons to learn and use scripts for your research:
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
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.
What are the basic concepts for programming scripts?
What are the basics of python programming?
SPPAS implementation is available in 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
A library to deal with the annotated data.
import sppas.src.anndata
Library to configure SPPAS.
import sppas.config
Library for installing programs with the setup.
import sppas.preinstall
Library to deal with the annotated data.
import sppas.src.anndata
A library to deal with the images.
import sppas.src.imgdata
A library to deal with the videos.
import sppas.src.videodata
A library for various data structures in SPPAS.
import sppas.src.structs
Utility library for SPPAS.
import sppas.src.utils
A library to manage files and references in workspaces.
import sppas.src.wkps
The library for working with the linguistic resources.
import sppas.src.resources
The library for the analysis of annotated data.
import sppas.src.analysis
The library for the automatic annotations.
import sppas.src.annotations