Replies: 3 comments
-
Currently, the converter ( When splits and joins are treated as ordered data, a counter for the index of the token is easy to increment and decrement. The counter is necessary because the converter is given a list of tokens for each record, with all of the lists wrapped in one outer list. I believe that Humdrum, though, allows for splits and joins to be unordered. But this makes the counter variable very difficult to increment and decrement. The converter is recursive, and different recursive calls are handling the left list and the right list. These two recursive calls have no awareness of each other. This means that the recursive calls have to independently work out how its pair might be splitting or joining to then adjust the counter properly. Given that splits and joins are arbitrary, the number of cases is large and difficult to reason about. Here are some possible solutions:
|
Beta Was this translation helpful? Give feedback.
-
In |
Beta Was this translation helpful? Give feedback.
-
Proportions of splits out of spine records with only splits: Only two consecutive "*v" = 61319/66717 = 92% |
Beta Was this translation helpful? Give feedback.
-
One problem in mapping Humdrum data on to graphs or trees is spine splits, particularly when there is more than one.
Currently, they are represented as
parent
:The
parent-token
is always a spine split. The data in the two spines that follow the split are continuously read until a spine join ends both columns. For example:If there are multiple splits, then a parent becomes nested in the left or right list, as appropriate, of the previous parent:
Beta Was this translation helpful? Give feedback.
All reactions