Skip to content
Snippets Groups Projects
Commit 881276cf authored by Simon Will's avatar Simon Will
Browse files

Assign IDs to syllables

parent 0edb067f
No related branches found
No related tags found
No related merge requests found
......@@ -226,8 +226,12 @@ def get_syllables_for_token(token: Token):
def get_syllables(reading):
i = 0
for token in reading.tokens:
token.syllables = get_syllables_for_token(token)
for s in token.syllables:
s.id = i
i += 1
return reading
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment