diff options
| -rw-r--r-- | main.py | 3 | ||||
| -rw-r--r-- | render.py | 4 |
2 files changed, 3 insertions, 4 deletions
@@ -50,11 +50,10 @@ renderer.render(passage, 'viola') # b: work out feature track spellout # wrap solution; stretch solution # c: leave space; strecht solution -# label events on score # record phonology/agreement, spellout to log, label it and score with timestamp # rests after constituents, corresponding to depth -# pruning algorithm for shorter sentences over taller trees - remove random/weighted leaves from larger tree # add discovered lexemes, pairwise dependencies to lexicon pre-population, iteratively +# pruning algorithm for shorter sentences over taller trees - remove random/weighted leaves from larger tree # spec bundles which can be selected and unified (merge-mask) until a full lexeme is obtained (allowing all feature correlations) # convince m21 to break durations into tied notes on the beat # other types of agreement / non-agreement / feature-checking @@ -160,8 +160,8 @@ class Renderer(object): word_site = "http://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain" response = requests.get(word_site) words = response.content.splitlines() - word = choice(words).capitalize() - title = word.decode("utf-8")+" · "+str(timestamp) + word = choice(words).decode("utf-8").capitalize() + title = word+" · "+str(timestamp) return (title, date) timeSignatures = { |