Skip to content

Commit

Permalink
fix marker issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericBlum committed Oct 4, 2024
1 parent 10c2692 commit 01bce71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cltoolkit/features/phonology.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,9 @@ def syllable_complexity(forms_with_sounds):
sounds, count = [], 0
sounds_in_syllable = []
for token in syllable:
sounds_in_syllable += [sounds_in_form[idx]]
idx += 1
if form.sound_objects[idx].type != "marker":
sounds_in_syllable += [sounds_in_form[idx]]
idx += 1
for sound in sounds_in_syllable:
if sound.type not in ['vowel', 'diphthong', 'tone', 'marker'] and \
'syllabic' not in sound.obj.featureset:
Expand Down

0 comments on commit 01bce71

Please sign in to comment.