Esempio n. 1
0
    ~~~~~~~~~~~~~~~~~~~~~~~~

    :author:       Brigitte Bigi
    :organization: Laboratoire Parole et Langage, Aix-en-Provence, France
    :contact:      [email protected]
    :license:      GPL, v3
    :copyright:    Copyright (C) 2011-2017  Brigitte Bigi

    calculus is a free and open source Python library to perform some math
    on data. Basically, calculus package was created to estimates descriptive
    statistics on annotated data.

"""
from sppas.src.utils.maketext import translate

t = translate("calculus")

from .descriptivesstats import sppasDescriptiveStatistics
from .kappa import sppasKappa
from .geometry.distances import squared_euclidian, euclidian, manathan, minkowski, chi_squared
from .stats.central import fsum, fmult, fmin, fmax, fmean, fgeometricmean, fharmonicmean
from .stats.frequency import freq, percent, percentile, quantile
from .stats.linregress import tga_linear_regression, tansey_linear_regression
from .stats.linregress import gradient_descent, gradient_descent_linear_regression, compute_error_for_line_given_points
from .stats.moment import lmoment, lvariation, lskew, lkurtosis
from .stats.variability import lvariance, lstdev, lz, rPVI, nPVI
from .scoring.ubpa import ubpa

# ---------------------------------

__all__ = [
Esempio n. 2
0
    This API then supports to merge data and annotation from a wide range of
    heterogeneous data sources for further analysis. To get the list of
    file extensions currently supported for reading and writing:

        >>> ext = anndata.aio.extensions

    Some details can be found in the following publication:

        | Brigitte Bigi, Tatsuya Watanabe, Laurent Prévot (2014).
        | Representing Multimodal Linguistics Annotated data,
        | Proceedings of the 9th edition of the Language Resources and
        | Evaluation Conference, 26-31 May 2014, Reykjavik, Iceland.

"""
from sppas.src.utils.maketext import translate
t = translate("anndata")

from .metadata import sppasMetaData
from .aio.readwrite import sppasRW
from .transcription import sppasTranscription
from .tier import sppasTier
from .annotation import sppasAnnotation
from .ctrlvocab import sppasCtrlVocab
from .media import sppasMedia
from .hierarchy import sppasHierarchy
from .annlabel.label import sppasLabel
from .annlabel.tag import sppasTag
from .annlocation import sppasLocation
from .annlocation import sppasDuration
from .annlocation import sppasInterval
from .annlocation import sppasPoint
Esempio n. 3
0
        ---------------------------------------------------------------------

    src.annotations.__init__.py
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    :author:       Brigitte Bigi
    :organization: Laboratoire Parole et Langage, Aix-en-Provence, France
    :contact:      [email protected]
    :license:      GPL, v3
    :copyright:    Copyright (C) 2011-2017  Brigitte Bigi
    :summary:      SPPAS Automatic annotations global variables.

"""
from sppas.src.utils.maketext import translate
t = translate("annotations")

# ---------------------------------------------------------------------------
# Default output extension:

DEFAULT_OUTPUT_EXTENSION = ".xra"

# ---------------------------------------------------------------------------
# Annotation status, mainly used for log:

ERROR_ID = -1
INFO_ID = 3
IGNORE_ID = 2
WARNING_ID = 1
OK_ID = 0
Esempio n. 4
0
    src.structs.__init__.py
    ~~~~~~~~~~~~~~~~~~~~~~~

    :author:       Brigitte Bigi
    :organization: Laboratoire Parole et Langage, Aix-en-Provence, France
    :contact:      [email protected]
    :license:      GPL, v3
    :copyright:    Copyright (C) 2011-2017  Brigitte Bigi

    structs is a free and open source Python library to access and manage
    data structures used into SPPAS.

"""
from sppas.src.utils.maketext import translate
t = translate("structs")

from .baseoption import sppasBaseOption
from .baseoption import sppasOption
from .lang import sppasLangResource
from .metainfo import sppasMetaInfo
from .tips import sppasTips

__all__ = [
    'sppasBaseOption',
    'sppasOption',
    'sppasLangResource',
    'sppasMetaInfo',
    'sppasTips'
]
Esempio n. 5
0
        ---------------------------------------------------------------------

    src.annotations.__init__.py
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    :author:       Brigitte Bigi
    :organization: Laboratoire Parole et Langage, Aix-en-Provence, France
    :contact:      [email protected]
    :license:      GPL, v3
    :copyright:    Copyright (C) 2011-2017  Brigitte Bigi
    :summary:      SPPAS Automatic annotations global variables.

"""
from sppas.src.utils.maketext import translate
t = translate("annotations")

# ---------------------------------------------------------------------------
# Default output extension:

DEFAULT_OUTPUT_EXTENSION = ".xra"

# ---------------------------------------------------------------------------
# Annotation status, mainly used for log:

ERROR_ID = -1
INFO_ID = 3
IGNORE_ID = 2
WARNING_ID = 1
OK_ID = 0
Esempio n. 6
0
    src.calculus.__init__.py
    ~~~~~~~~~~~~~~~~~~~~~~~~

    :author:       Brigitte Bigi
    :organization: Laboratoire Parole et Langage, Aix-en-Provence, France
    :contact:      [email protected]
    :license:      GPL, v3
    :copyright:    Copyright (C) 2011-2017  Brigitte Bigi

    calculus is a free and open source Python library to perform some math
    on data. Basically, calculus package was created to estimates descriptive
    statistics on annotated data.

"""
from sppas.src.utils.maketext import translate
t = translate("calculus")

from .descriptivesstats import sppasDescriptiveStatistics
from .kappa import sppasKappa
from .timegroupanalysis import sppasTimeGroupAnalysis
from .geometry.distances import squared_euclidian, euclidian, manathan, minkowski, chi_squared
from .stats.central import fsum, fmult, fmin, fmax, fmean, fgeometricmean, fharmonicmean
from .stats.frequency import freq, percent, percentile, quantile
from .stats.linregress import tga_linear_regression, tansey_linear_regression
from .stats.linregress import gradient_descent, gradient_descent_linear_regression, compute_error_for_line_given_points
from .stats.moment import lmoment, lvariation, lskew, lkurtosis
from .stats.variability import lvariance, lstdev, lz, rPVI, nPVI

# ---------------------------------

__all__ = [
Esempio n. 7
0
        You should have received a copy of the GNU General Public License
        along with SPPAS. If not, see <http://www.gnu.org/licenses/>.

        This banner notice must not be removed.

        ---------------------------------------------------------------------

    src.resources.__init__py
    ~~~~~~~~~~~~~~~~~~~~~~~~

    resources is a free and open source Python library to access and manage
    linguistic resources like lexicons, dictionaries, etc.

"""
from sppas.src.utils.maketext import translate
t = translate("resources")

from .dictpron import sppasDictPron
from .dictrepl import sppasDictRepl
from .mapping import sppasMapping
from .patterns import sppasPatterns
from .unigram import sppasUnigram
from .vocab import sppasVocabulary

# ---------------------------------

__all__ = [
    "sppasMapping",
    "sppasDictRepl",
    "sppasDictPron",
    "sppasPatterns",
Esempio n. 8
0
    >>> # Create a plugin manager (it will explore the installed plugins).
    >>> manager = sppasPluginsManager()
    >>> # Install a plugin
    >>> plugin_id = manager.install(plugin_zip_filename, plugin_destination_folder_name)
    >>> # Get a plugin
    >>> p = manager.get_plugin(plugin_id)
    >>> # Apply a plugin on a list of files
    >>> message = manager.run_plugin(plugin_id, [some_filename1, some_filename2])
    >>> print(message)
    >>> # Delete an installed plugin
    >>> manager.delete(plugin_id)

"""
from sppas.src.utils.maketext import translate
from sppas.src.utils.makeunicode import u
t = translate("plugins")


def get_info(msg_id):
    return u(t.gettext(":INFO " + msg_id + ": "))

from .manager import sppasPluginsManager
from .param import sppasPluginParam
from .process import sppasPluginProcess
from .cfgparser import sppasPluginConfigParser

__all__ = [
    "sppasPluginsManager",
    "sppasPluginConfigParser",
    "sppasPluginParam",
    "sppasPluginProcess"
Esempio n. 9
0
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.

        SPPAS is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with SPPAS. If not, see <http://www.gnu.org/licenses/>.

        This banner notice must not be removed.

        ---------------------------------------------------------------------

    ui.__init__.py
    ~~~~~~~~~~~~~~

    :author:       Brigitte Bigi
    :organization: Laboratoire Parole et Langage, Aix-en-Provence, France
    :contact:      [email protected]
    :license:      GPL, v3
    :copyright:    Copyright (C) 2011-2018  Brigitte Bigi
    :summary:      User Interface.

    Package to make SPPAS available for all users.

"""
from sppas.src.utils.maketext import translate
t = translate("ui")
Esempio n. 10
0
        You should have received a copy of the GNU General Public License
        along with SPPAS. If not, see <http://www.gnu.org/licenses/>.

        This banner notice must not be removed.

        ---------------------------------------------------------------------

    src.resources.__init__py
    ~~~~~~~~~~~~~~~~~~~~~~~~

    resources is a free and open source Python library to access and manage
    linguistic resources like lexicons, dictionaries, etc.

"""
from sppas.src.utils.maketext import translate
t = translate("resources")

from .dictpron import sppasDictPron
from .dictrepl import sppasDictRepl
from .mapping import sppasMapping
from .patterns import sppasPatterns
from .unigram import sppasUnigram
from .vocab import sppasVocabulary

# ---------------------------------

__all__ = [
    "sppasMapping", "sppasDictRepl", "sppasDictPron", "sppasPatterns",
    "sppasUnigram", "sppasVocabulary"
]
Esempio n. 11
0
        ---------------------------------------------------------------------

    src.models.__init__.py
    ~~~~~~~~~~~~~~~~~~~~~~

    :author:       Brigitte Bigi
    :organization: Laboratoire Parole et Langage, Aix-en-Provence, France
    :contact:      [email protected]
    :license:      GPL, v3
    :copyright:    Copyright (C) 2011-2017  Brigitte Bigi

    models is a free and open source Python library to work with models:

        - acoustic models: acm
        - statistical language models: slm

"""
from sppas.src.utils.maketext import translate

t = translate("models")

from .acm.hmm import sppasHMM, HMMInterpolation
from .slm import sppasArpaIO, sppasNgramCounter, sppasNgramsModel, sppasSLM

# ---------------------------------

__all__ = [
    "sppasHMM", "HMMInterpolation", "sppasArpaIO", "sppasNgramCounter",
    "sppasNgramsModel", "sppasSLM"
]