This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

## FinnSyll

FinnSyll is a Python library that syllabifies words according to Finnish syllabification principles. It is also equipped with a Finnish compound splitter. More details/docs to come.

### Installation

`$ pip install FinnSyll`

### Basic usage

First, instantiate a `FinnSyll` object.

` >>> from finnsyll import FinnSyll >>> f = FinnSyll() `

To syllabify: ` >>> f.syllabify('runoja') ['']  # internal syllable boundaries are indicated with '.' `

To segment compounds: ` >>> f.split('sosiaalidemokraattien') 'sosiaali=demokraattien'  # internal word boundaries are indicated with '=' `

### Optional arguments

The syllabifier can be customized along two different parameters: variation and compound splitting.


Instantiating a `FinnSyll` object with `variation=True` (default) will allow the syllabifier to return multiple syllabifications if variation is predicted. When `variation=True`, the syllabifier will return a list. Setting `variation` to `False` will cause the syllabifier to return a string containing the first predicted syllabification.

Variation: ` >>> f = FinnSyll(variation=True) >>> f.syllabify('runoja') [''] >>> f.syllabify('vapaus') ['', 'va.paus'] `

No variation: ` >>> f = FinnSyll(variation=False) >>> f.syllabify('runoja') '' >>> f.syllabify('vapaus') '' `

#### split_compounds

When instantiating a `FinnSyll` object with `split_compounds=True` (default), the syllabifier will first attempt to split the input into constituent words before syllabifying it. This forces the syllabifier to insert a syllable boundary in between identified constituent words. The syllabifier will skip this step if `split_compounds` is set to `False`.

Compound splitting: ` >>> f = FinnSyll(split_compounds=True) >>> f.syllabify('rahoituserien')  # rahoitus=erien ['ra.hoi.tus.e.ri.en'] `

No compound splitting: ` >>> f = FinnSyll(split_compounds=False) >>> f.syllabify('rahoituserien') ['']  # incorrect `

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
FinnSyll-1.0.0-py2.py3-none-any.whl (831.0 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Sep 24, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting