LingPy

This documentation is for version 2.0.dev, which is not released yet.

lingpy.align.sca.PSA.align

PSA.align(gop=-1, scale=0.5, mode='global', factor=0.3, restricted_chars='T_', distance=False, model=None, pprint=False)

Align a pair of sequences or multiple sequence pairs.

Parameters :

gop : int (default=-1)

The gap opening penalty (GOP).

scale : float (default=0.5)

The gap extension penalty (GEP), calculated with help of a scaling factor.

mode : {‘global’,’local’,’overlap’,’dialign’}

The alignment mode, see List2012a for details.

factor : float (default = 0.3)

The factor by which matches in identical prosodic position are increased.

restricted_chars : str (default=”T_”)

The restricted chars that function as an indicator of syllable or morpheme breaks for secondary alignment, see List2012c for details.

distance : bool (default=False)

If set to True, return the distance instead of the similarity score. Distance is calculated using the formula by Downey2008.

model : { None, ~lingpy.data.model.Model }

Specify the sound class model that shall be used for the analysis. If no model is specified, the default model of List2012a will be used.

pprint : bool (default=False)

If set to True, the alignments are printed to the screen.

This Page