当前注册人数422581人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

40万国外源码搜索
200万国内源码搜索
相关源代码

WordCloud - A Squarified Treemap of Word Frequency

C#词频统计及显示程序源代码(及微软数据可视化组件的应用示例)

2008年01月24日
C#, C# 2.0, Windows, .NET, .NET 2.0, Visual Studio, GDI+, Dev
这段程序通过对纯文本文件的读取,分词,统计出各个单词的使用频率。另,通过调用微软可视化组件图形化展示给用户。如图,颜色越深、文本框越大的词出现频率越大。
相关知识

关键代码:

public void PopulateTreeMap(Hashtable wordsHash, Hashtable stemmedWordsHash)
{
    AssertValid();

    ArrayList nodes = new ArrayList();
    ArrayList aKeys = new ArrayList(stemmedWordsHash.Keys);
    aKeys.Sort();

    foreach (string key in aKeys)
    {
        //build each node element

        int count = (int)stemmedWordsHash[key];
        string name = (string)wordsHash[key];

        //show count in node?

        if(m_bShowWordCount)
            name += String.Format(" ({0})", count);
        NodeInfo nodeinfo = new NodeInfo(name, count);
        nodes.Add(nodeinfo);
    }
    m_nodes = nodes;
    RepopulateTreeMap();
}
源代码原文下载:
WordCloud - A Squarified Treemap of Word Frequency WordCloud is a visual depiction of how many times a word is used, or its frequency if you will, within a given set of words. It does this by: reading in plain text, filtering out "stop words", counting how many times a word is used, and displaying results in a Squarified Treemap.

源码图片

点击链接查看大图
从本站下载附件及源代码(2个附件,已经成功下载1044次)

最值得关注的外文源代码

Generic TCP/IP Client/Server
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论98次,此处显示最近20次评论! 查看所有评论

goodliness  2017年03月12日
希望是我一直想找的那种代码吧!
hcbin  2014年11月30日
感谢作者!
hcbin  2014年11月30日
这个可以学习下,非常有用!
sunpana12345  2014年09月17日
不错不错不错
书牧白  2014年04月01日
终于找到了一个可以借鉴的
wufeiwu1988  2013年06月27日
需要的,谢谢分享
自信的奋飞  2012年12月15日
很不错的资料
zhl_download1  2012年11月22日
谢谢
heeter  2012年10月28日
感谢分享
ord2011  2012年10月22日
不错,做统计的时候可以用上
rocky  2012年10月21日
学习一下,词频统计很有用的
乘风逐浪  2012年05月05日
学习一下,词频统计很有用的
zerosuner  2012年03月08日
谢谢,我先看看
zerosuner  2012年03月08日
谢谢,我先看看
zerosuner  2012年03月08日
谢谢,我先看看
zerosuner  2012年03月08日
谢谢,我先看看
costa10  2011年11月03日
谢谢了
YolandaSun  2011年10月12日
谢谢,我先看看
小鱼儿  2011年10月10日
不错,谢谢分享!
glm2011  2011年04月17日
挺有意思!
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明