Slide 92
Slide 92 text
Introduction
Automatic Alignment Analyses
Alignments in Historical Linguistics
LingPy
Performance of the Method
Usage Example
TPPSR
Usage Example
.
.
>>> from lingpy.compare.seqcom import Multiple
>>> mult = Multiple(['ʧwovʲɛk', 'ʧovɛk',\
... 'ʧlɔvʲɛk', 'ʧɪlɐvʲɛk'])
>>> print ', '.join(mult.ipt_seqs)
ʧwɔvʲɛk, ʧovɛk, ʧlovʲɛk, ʧɪlɐvʲɛk
>>> mult.prog_align(method='sca',mode='profile')
ʧ - w ɔ vʲ ɛ k
ʧ - - o v ɛ k
ʧ - l o vʲ ɛ k
ʧ ɪ l ɐ vʲ ɛ k
>>> mult.show_guide_tree()
/-0:ʧwɔvʲɛk
/--------|
| \-1:ʧovɛk
---------|
| /-3:ʧlovʲɛk
\--------|
\-2:ʧɪlɐvʲɛk
>>> print ', '.join([seq.cls_str for seq in \
... mult.lingpy_seqs])
CWOWEK, COWEK, CLOWEK, CILAWEK
28 / 32