{"id":18329881,"url":"https://github.com/somdipdey/markovian_csharp","last_synced_at":"2025-04-09T17:38:51.858Z","repository":{"id":83917538,"uuid":"118190339","full_name":"somdipdey/Markovian_CSharp","owner":"somdipdey","description":"Markov Model (N characters) library written in CSharp C#","archived":false,"fork":false,"pushed_at":"2018-01-20T15:56:41.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T10:31:17.818Z","etag":null,"topics":["csharp","markov","markov-model","text-generation"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/somdipdey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-19T23:33:49.000Z","updated_at":"2023-08-18T00:24:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"23e9128b-ebc4-441f-b0f3-38a3195950da","html_url":"https://github.com/somdipdey/Markovian_CSharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somdipdey%2FMarkovian_CSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somdipdey%2FMarkovian_CSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somdipdey%2FMarkovian_CSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somdipdey%2FMarkovian_CSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/somdipdey","download_url":"https://codeload.github.com/somdipdey/Markovian_CSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248078651,"owners_count":21044150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","markov","markov-model","text-generation"],"created_at":"2024-11-05T19:19:01.148Z","updated_at":"2025-04-09T17:38:51.828Z","avatar_url":"https://github.com/somdipdey.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markovian_CSharp\nMarkov Model (N characters + N words) library written in CSharp [C#]. MarkovModel class provides the wrapper for Markov Model for N Characters, whereas, MarkovWordModel class provides wrapper for Markov Model for N words.\n\n[![Build Status](https://travis-ci.org/somdipdey/Markovian_CSharp.svg?branch=master)](https://travis-ci.org/somdipdey/Markovian_CSharp)\n\n## Using Markov Model in C#\n\n#### MarkovModel for characters in use:\n\n            // Training text in string format\n            String st = \"I completed Hack Reactor in July 2016 and took almost 3 months before accepting an offer with Radius Intelligence.\\n\"+\n                \" I applied to 291 companies, did 32 phone screens, 16 technical screens, 13 coding challenges, 11 on-sites, and received 8 offers.\\n\" +\n                \"The offers ranged from $60-125k in salary from companies all over the US, and for both front end and full stack roles. In total, 2.8% of applications became offers.\\n\" + \n                \"Here are 5 things I wish I’d known before I began my job search.\";\n\n            // Replace any new line with blank spaces to generate random text\n            st = st.Replace('\\n', ' ');\n\n            // Create a new MarkovModel object, initialized with a keyLength of 6\n            MarkovModel markov = new MarkovModel(6);\n\n            // Train Markov model with the input text\n            markov.SetTraining(st);\n\n            // Set the seed of the random number generator\n            markov.SetRandom(1);\n\n            // Print out four random texts\n            for (int k = 0; k \u003c 4; k++)\n            {\n                String text = markov.GetRandomText(500);\n                Console.Write(text + Environment.NewLine);\n            }\n            \n            //Output::\n            /*\n            I applied to 291 companies, did 32 phone screens, 13 coding challenges, 11 on-sites, and received 8 offer with Radius Intelligence.  I applied to 291 companies, did 32 phone screens, 16 technical screens, 16 technical screens, 16 technical screens, 16 technical screens, 16 technical screens, 16 technical screens, 16 technical screens, 13 coding challenges, 11 on-sites, and for both front end and full stack roles. In total, 2.8% of applications became offers. Here are 5 things I wish I’d known be\n\n            ons became offer with Radius Intelligence.  I applications became offers ranged from companies, did 32 phone screens, 13 coding challenges, 11 on-sites, and received 8 offer with Radius Intelligence.  I applications became offers. The offers ranged from companies all over the US, and for both front end and for both front end and for both front end and full stack roles. In total, 2.8% of applied to 291 companies, did 32 phone screens, 16 technical screens, 13 coding challenges, 11 on-sites, and r\n\n            ted Hack Reactor in July 2016 and took almost 3 months before accepting an offer with Radius Intelligence.  I applications became offers. Here are 5 things I wish I’d known before I began my job search.\n\n            st 3 months before I began my job search.\n            */\n\n#### Markov Model for words in use:\n            // Initialise Markov Model for Words\n            MarkovWordModel markovWord = new MarkovWordModel(4);\n\n            // Set the training text without any new line in it. \n            markovWord.SetTraining(st);\n\n            // Set the seed\n            markovWord.SetRandom(10);\n\n            // Printout random words\n            Console.Write(markovWord.GetRandomText(200) + Environment.NewLine);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomdipdey%2Fmarkovian_csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomdipdey%2Fmarkovian_csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomdipdey%2Fmarkovian_csharp/lists"}