<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>just enough time to be preoccupied</title>
  <link>https://cordjostler.dreamwidth.org/</link>
  <description>just enough time to be preoccupied - Dreamwidth Studios</description>
  <lastBuildDate>Thu, 23 Apr 2020 15:50:16 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>cordjostler</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/18210401/3062564</url>
    <title>just enough time to be preoccupied</title>
    <link>https://cordjostler.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://cordjostler.dreamwidth.org/469515.html</guid>
  <pubDate>Thu, 23 Apr 2020 15:50:16 GMT</pubDate>
  <title>lyric generator</title>
  <link>https://cordjostler.dreamwidth.org/469515.html</link>
  <description>I&amp;nbsp;finally found a Fiverr dev willing to take on my little lyric generator project. It&apos;s been interesting playing product owner on a teeny tiny scale. His first pass only took him a couple of hours and was pretty cool, but it had a couple defects and one of the completion criteria was completely misinterpreted, but I&amp;nbsp;figure in all, that&apos;s pretty good for the couple paragraphs and sharpie wireframes I&amp;nbsp;gave him. &lt;br /&gt;Here&apos;s an example of some of the things that come out based on a corpus of lyrics from the band hum:&lt;br /&gt;&lt;br /&gt;my eye to see far to spare and she miss the train.&lt;br /&gt;differ from her dream with absent eye.&lt;br /&gt;upright let me to come back now.&lt;br /&gt;do care what they choos.&lt;br /&gt; dream with seven nine and think about the end.&lt;br /&gt;&lt;br /&gt;I&amp;nbsp;guess the biggest issue I&amp;nbsp;have is that he used the NLTK routine for &amp;quot;stemming&amp;quot; the words, hence some of them missing their suffixes. If this were intended to be generating grammar from scratch, that would matter, but I&apos;m just going off of probability, so it doesn&apos;t. He said he&apos;ll pull it out in the next rev, and I&amp;nbsp;think the usefulness of output will go up a lot. &lt;br /&gt;&lt;br /&gt;I only briefly looked over the code. It&apos;s not how I&amp;nbsp;would have done it / want it to be in some ways, but I&amp;nbsp;guess in terms of utility, it still gets me farther than I&amp;nbsp;was. For example, he&apos;s just storing the words linearly in the order they are imported. I&apos;m not sure how this affects the probability component since words have multiple instances. though maybe he&apos;s taking that into account when he retrieves the word rather than when he puts it in. It also looks like he&apos;s using a graph database for something?&amp;nbsp; know they are trendy, but seems weird.. Maybe it&apos;s just easier to work with than other methods like my stupid hacky arrays. &lt;br /&gt;&lt;br /&gt;The sentences don&apos;t make a lot of sense, but that is as expected. This concept is super basic, and the output intended to be more inspirational than usable verbatim. and hell, most song lyrics don&apos;t make a lot of sense anyway.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=cordjostler&amp;ditemid=469515&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://cordjostler.dreamwidth.org/469515.html</comments>
  <category>music</category>
  <category>programming</category>
  <category>lyric generation</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://cordjostler.dreamwidth.org/442757.html</guid>
  <pubDate>Fri, 20 Sep 2019 15:17:01 GMT</pubDate>
  <title>generative poetry/lyrics</title>
  <link>https://cordjostler.dreamwidth.org/442757.html</link>
  <description>I&apos;ve fiddled with python/language processing stuff the last few evenings. I still don&apos;t know what I&apos;m doing. I started out trying to do a really basic thing. I was going to parse sentences and words, store them in a database and store the ID of words that follow them. I guess the idea is kind of like the iphone predictive text feature.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I didn&apos;t get far. I started parsing sentences by punctuation and words by spaces.. but then found the NLTK tokenizing stuff, and it was just easier.. mostly.. I ran into the problem of trying to store stuff.. I wanted to iteratively read it into a variable at first, as a step before putting it in SQLite or whatever python can do natively... and, I ran into the thing where I don&apos;t understand the way python does (or doesn&apos;t do) 2D arrays. This was compounded by my lack of understanding of how to do an iterative loop when the iterator is from the data structure. ie: &amp;quot;data&amp;quot; is a list of sentences. &amp;quot;sentence&amp;quot; seems to be individual elements of that list.. but if I do &amp;quot;for sentence..&amp;quot; and use sentence as an index for a variable, I get told I can&apos;t use a string as an index.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I felt like I was doing something for a minute though. not that I really was, I just felt almost competent. lol&lt;br /&gt;&lt;br /&gt;while looking up info on NLTK, I found an old post on reddit by a person who wrote something similar to what I want to do.. a poetry remixer is how they describe it. It&apos;s waaaaay more advanced than what I envisioned.. but, it doesn&apos;t seem to really work right. they shared the distro, and it doesn&apos;t seem to have been worked since december. When I ran it, there&apos;s a GUI, and it runs showing the background process in console, but it&apos;s not doing what the gui says it should be doing. It&apos;s fun to watch it though. it seems to be processing a bunch of source texts.. the bible, nietzsche, etc.. then it puts words together based on a rhyme scheme and I think some loose grammar rules. It&apos;s kind of like it&apos;s thinking. I can only get it to spit out two lines at a time.. and it takes about 5 minutes to run. so far they are all pretty old timey sounding. Anyway. I&apos;m trying to walk through the code, but it&apos;s way over my head; spread out over a bunch of files, and not documented at all beyond &amp;quot;this cleans up some things&amp;quot;. lol. I reached out to the person.. hopefully they are still around.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=cordjostler&amp;ditemid=442757&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://cordjostler.dreamwidth.org/442757.html</comments>
  <category>python</category>
  <category>programming</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
