Show HN: Cyborg Writer - In-Browser Text Editor with Neural Autocomplete
Hey HN!<p>This is our latest demo for TensorFire (<a href="https:&#x2F;&#x2F;tenso.rs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tenso.rs&#x2F;</a>), a Javascript library for running neural networks in the browser GPU-accelerated by WebGL.<p>Each of these models is a simple two-layer char-rnn (the kind explored in Karpathy&#x27;s &quot;Unreasonable Effectiveness of RNNs&quot; post <a href="http:&#x2F;&#x2F;karpathy.github.io&#x2F;2015&#x2F;05&#x2F;21&#x2F;rnn-effectiveness&#x2F;" rel="nofollow">http:&#x2F;&#x2F;karpathy.github.io&#x2F;2015&#x2F;05&#x2F;21&#x2F;rnn-effectiveness&#x2F;</a>). When you hit &quot;Tab&quot; the editor feeds in the contents of your document letter-by-letter into a network which is trying to predict the most likely next letter. It samples from that probability distribution and feeds it back into the network to generate an arbitrarily long string.<p>We&#x27;ve published code and instructions for training new models on Github (<a href="https:&#x2F;&#x2F;github.com&#x2F;tensorfire&#x2F;cyborg-writer&#x2F;tree&#x2F;master&#x2F;training" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tensorfire&#x2F;cyborg-writer&#x2F;tree&#x2F;master&#x2F;trai...</a>). With about a megabyte of any sort of text, you can train a model and easily embed it into any web application.<p>We (@bijection and @antimatter15) will be answering questions in the comments.