DFIELDSOLUTIONS

Free software

LabGlossa: Learns a voice, then speaks in it

A pure Markov text generator: tokenize → tally each n-gram's continuations → sample forward, weighted, from sentence-aware seeds. 13 tests, centred on the invariant that the generator never emits a transition it didn't see in training.

Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareGlossa

Glossa is a Markov-chain text generator that learns the style of a corpus and produces new text in that voice. The signature technique is to tokenize the input, tally each n-gram's possible continuations, and then sample forward with weighted probabilities from sentence-aware seeds, with its central test guaranteeing the generator never emits a transition it did not see in training. It is a from-scratch, dependency-light build you can download and run locally.

01About the app

Generative NLP

What to take away

  • A pure Markov text generator: tokenize → tally each n-gram's continuations → sample forward, weighted, from sentence-aware seeds. 13 tests, centred on the invariant that the generator never emits a transition it didn't see in training.
  • Download: Glossa (ZIP)
We build this for clientsFull-stack

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary