semvec/pypi-packages huggingface dataset:
seasonal 0.3.1
Estimate trend and seasonal effects in a timeseries
License: MIT
Keywords: timeseries,seasonality,seasonal adjustment,detrend,robust estimation,theil-sen,Holt-Winters

seasonal
========
Robustly estimate and remove trend and periodicity in a timeseries.

`Seasonal` can recover sharp trend and period estimates from noisy
timeseries data with only a few periods.  It is intended for
estimating season, trend, and level when initializing structural
timeseries models like Holt-Winters. Input samples are
assumed evenly-spaced from a continuous real-valued signal with noise but
no anomalies.

The seasonal estimate will be a list of period-over-period averages at
each seasonal offset. You may specify a period length, or have it
estimated from the data. The latter is an interesting capability of
this package.

Trend removal in this package is in service of isolating and
estimating the periodic (non-trend) variation. A lowpass smoothing of
the data is removed from the original series, preserving original
seasonal variation.  Detrending is accomplishd by a coarse fitted
spline, mean or median filters, or a fitted line.

See https://github.com/welch/seasonal/README.md for details on installation, API, theory, and examples.

Dependencies
-------------
* package: numpy, scipy
* extras:  pandas, matplotlib
rhymediscovery 0.2.1
Unsupervised Discovery of Rhyme Schemes
License: MIT

.. image:: https://travis-ci.org/jvamvas/rhymediscovery.svg?branch=master
    :target: https://travis-ci.org/jvamvas/rhymediscovery

rhymediscovery
--------------

A python package for detecting rhyme schemes in poetry. With standard configuration, it achieves about 65% accuracy in the `rhymedata <https://github.com/sravanareddy/rhymedata>`_ corpus.

Basic usage
===========

.. code-block::

    pip install rhymediscovery

.. code-block:: python

   >>> from rhymediscovery import find_schemes
   >>> find_schemes.find_schemes([['herz', 'welt', 'geld', 'schmerz'], ...])
   [(('herz', 'welt', 'geld', 'schmerz'), (1, 2, 1, 2)), ...]


Command line
============

The command line tool :code:`find_schemes` expects a file formatted like the `.pgold` files in the `rhymedata <https://github.com/sravanareddy/rhymedata>`_ corpus. A sample file can be found `here in the repo <https://github.com/jvamvas/rhymediscovery/blob/master/tests/data/sample.pgold>`_.

To demonstrate the tool, we clone the `rhymedata <https://github.com/sravanareddy/rhymedata>`_ corpus:

.. code-block::

    git clone https://github.com/sravanareddy/rhymedata.git

Then we run:

.. code-block::

    find_schemes rhymedata/english_gold/1415.pgold 1415.out

The :code:`1415.pgold` file from the corpus has been manually annotated with the correct rhyme schemes. Thus we can evaluate our result file  using:

.. code-block:: bash

    evaluate_schemes 1415.out rhymedata/english_gold/1415.pgold


Credits
=======
This package implements the following paper:

* Sravana Reddy and Kevin Knight. "Unsupervised discovery of rhyme schemes." Proceedings of ACL 2011. (`pdf <http://cs.wellesley.edu/~sravana/papers/rhymes_acl.pdf>`_)

It is a fork of the reference implementation by `@sravanareddy <https://github.com/sravanareddy>`_ which is available in its original form `here <https://github.com/sravanareddy/rhymediscovery>`_.