马尔可夫链算法 [英] Markov Chain Algorithm

查看:96
本文介绍了马尔可夫链算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在使用C#进行编程时,是否有人了解马尔可夫链。我需要解决一个问题,但我不知道如何开始。



e.x我有100个单词的文字。好的,我在一个丰富的盒子或文本框中调用它。问题是:



当我在其他文本框中只写一个单词时,算法应该给出下一个单词。



例子我打开文字''今天天气非常好.....''



所以,当我写的时候字在文本框中,算法应该回答好的字。





我希望,我很清楚。



Thnx很多。

Hi everyone,

Does any one has knowledge about Markov Chain in programing in C#. I need to solve an problem, but I have no Idea how to start.

e.x I have text with 100 words. Ok I call it in a rich box or text box. The problem is:

When I write in other text box just one single word, the algorithm should give the other single word that is next.

example I open text '' The weather is very good today.....''

so, when i write word very in text box, the algorithm should reply the word good.


I hope, I was clear.

Thnx a lot.

推荐答案

请参阅CésardeSouza关于CP上的隐马尔可夫模型的精彩文章:

C#中的序列分类器 - 第一部分:隐马尔可夫模型 [ ^ ]
See César de Souza's great article on Hidden Markov models here on CP:
Sequence Classifiers in C# - Part I: Hidden Markov Models[^]


这不是一个复杂的问题。将文本保存在 string [ ^ ]并使用各种字符串方法根据您的规则搜索和提取单词。
This is hardly a complicated problem. Save the text in a string[^] and use the various string methods to search and extract words according to your rules.


这篇关于马尔可夫链算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆