A CLI application that converts input sentences into stream of consciousness text using a language model.

Stream of consciousness is a narrative style in literature that usually mimics the continuous flow of thoughts in a character’s mind. Such text often includes long, flowing sentences, associative thoughts, and unusual syntax (e.g. no punctuation). As AI generated text becomes more popular, language models in machine learning increasingly mediate our digital reality. underflow aims to explore the hidden, associative thoughts in language models that connect between words. It serves as an experimental approach to visualise the stream of consciousness in machine intelligence, revealing how probabilities and statistical data have shaped language understanding. The command line interface invites users to type their thoughts and watch how the program expands the sentence by navigating a path based on every pair of words in the language model. It visualises how the language model defines connection between words, as well as distances between semantic meanings.

A text-based work created using underflow:


  i know do not because say know anything really so when so we i am i going home where same alone 
  only as well so we i we they would not should want should to could threat scare threat could 
  the even friends neighbors neighbours neighbors friends even but so we i we so have having   
  never know tell listen hear heard hear listen tell you them hundreds protesters shouting shout 
  shouting protesters dozens others or either not does anything really so if does what this not  
  might suggesting implying imply implying suggesting might that the well inside walls inside  
  them are these they well very difficult conditions environment environments habitats vegetation 
  dense thick dense vegetation habitats environments environment conditions result less or either 
  not even those are these they be being be so well as way done careful thoughtful respectful  
  polite respectful thoughtful careful done way as well so we i am i really trying to not be not 
  either or just i am i just where outside inside outside where well some even what kind sort  
  what this of most best film horror movie story this or either not even perhaps even only one 
  another a what realize dream realize nothing that also has have but what going gone they same  
  on same for even far even too so long                                                        

  

but i am i really truly realize dream dreaming dream realize fact because if you i so because was when then when so we i you if can not what why explain why what even many some of the what phenomenon sensation sensations sensation phenomenon what i feel felt thought fact today this such well as also the up dollar lira erm lira currency circulation flow flows river along where of some say officials authorities police officers soldiers military force air force military soldiers officers police authorities officials wednesday came from came the he she anna blaman knoroz maheswary aircon maheswary knoroz dalassene anna she again wait come but there but was it this sort strange something sounds sound sounds something so that though indeed seems seemed might to not be so come coming from coming only every if possible way direction way and well so we i we they could not able find locate find could the according source according that and well but when after last since last came when so we i am i going alone just i we so have even fact nothing nobody going did to may released polydor spinefarm mediaskare crosscheck mediaskare spinefarm polydor records though whether what this kind something sounds sound sounds something so was but even real rather or only part of this so long what realize dream realize frankly honestly frankly something it is it so very pretty stuff weird creepy

the even more so we i really think what the even more so we i know believe know i we should not what think what about that this kind going anymore you like even just you i know do not what know maybe you i we should come just you know tell ask asking messages whatsapp chatbot chatgpt chatbot whatsapp messages greeting hello hey you what know do you think