Home / Companies / Couchbase / Blog / Post Details
Content Deep Dive

Fun with Couchbase and Markov Chains

Blog post from Couchbase

Post Details
Company
Date Published
Author
The Couchbase Team
Word Count
641
Company Posts That Month
2
Language
English
Hacker News Points
-
Post removed?
No
Summary

Marky is a simple application that uses Markov chains to generate nonsensical tweets based on the user's Twitter history. It utilizes Couchbase Server for data storage and processing. The application splits text into smaller chunks using a sliding window over two consecutive words, regroups these chunks in correct order to form sentences based on statistical weights. To generate a word, it queries the view using the last word output, and uses the built-in reduce function to add together values for each group of word pairs. Marky picks the word to output after a given word randomly but weighted by frequency of appearance in input text. The application is set up with a simple Clojure wrapper and can be launched by creating a configuration file pointing to the Couchbase Server cluster and Twitter account, adding seed data, and setting up jobs such as sending tweets and fetching atom feeds.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.