上下文

看看Wordle: http://www.wordle.net/ 它比我见过的任何其他词云生成器都好看得多 注意:源代码不可用-阅读常见问题:http://www.wordle.net/faq#code

我的问题

有没有一种算法可以做到Wordle所做的呢? 如果没有,有什么替代方案可以产生类似的输出?

我为什么问这个问题

只是好奇 想要学习


当前回答

这是Python 3中wordle的另一个端到端实现,主要基于Jonathan Feinberg的初始轮廓(四叉树、螺旋等)。

代码(注释,详细的ReadMe文件)在这个Github库中免费提供,这是一个用代码创建的示例wordle。

其他回答

这里看到我像云一样实现Wordle。 它使用相同的螺旋算法和四叉树数据结构。

http://sourcecodecloud.codeplex.com

or

http://www.codeproject.com/Articles/224231/Word-Cloud-Tag-Cloud-Generator-Control-for-NET-Win

http://code.google.com/apis/visualization/documentation/gallery.html

看看单词云可视化。不像wordle.net那么花哨,但很容易添加到你的网站。

I've implemented a word cloud generator called WordCloud.jl in Julia language. A brief description about its algorithm can be found here. Unlike most other implementations, I designed it based on gradient optimization. It’s a non-greedy algorithm in which words can be further moved after they are positioned. Thus the size of the words and the shape and size of the background mask can be kept unchanged in the generation process. This makes the outputs more accurate and easy to customize. Furthermore, we can also generate some fancy outputs like these: Comparison of Obama's and Trump's inaugural address and Wikipedia: Julia

我创建了一个Silverlight组件,它使用Jonathan在这里建议的算法。源代码和示例项目都可以在我的博客上找到:

http://whydoidoit.com

我的云可以让你根据不同的权重为单词着色和大小,它支持单词选择(从坐标)和选中的单词高亮显示。源代码是您的,您可以根据需要使用。

我有一个标签云生成器在这里,我称之为Disorganizer:)

TagCloudService来源 还有剃须刀的价格控制 以及用于测试的WinForm 你可以把它放在你的博客,个人资料等,用一个小包装它。它使用c# 4.0 & System。大量绘制命名空间。

我创建它是因为使用其他云生成器,你不能点击标签导航,也不能创建悬停动画,以显示它们是可点击的。因为在HTML中显示悬停动画对我来说是必要的(我用覆盖,绝对定位<a>标签来做这个),我没有开发任何角度的单词显示-它们要么垂直要么水平。

警告:上面的链接可能会在几个月内失效,我计划慢慢地把它从周围的项目解开到一个单独的项目中。

您可以在这篇示例博客文章中看到一个工作演示,但它是不完整的,并且位于一个不完整的站点中。如果有人想投稿,请联系我,我会尽快把它分开。