WordCram 是基于Processing 的工具库,可以用来生成词云;
第一步,安装Processing
下载地址:https://processing.org/download/
解压,双击即可运行;
界面如下:
第二步,下载WordCram库
官方地址:http://wordcram.org/
解压里面有 wordcram.jar
第三步,添加wordcram库
详细可参考:http://wiki.processing.org/w/How_to_Install_a_Contributed_Library
简要说明:
windows 在'My Documents'/Processing
Mac 在 ~/Documents/Processing
需要手动新建目录
如果添加的lib是 theLibrary.jar , 那么添加的文件夹名是theLibrary
这里我们的lib是 WordCram.jar,故如下添加文件夹
在Processing下建立文件夹/WordCram
第四步,重启Processing,不然不会载入新添加的jar
第五步,输入代码,运行测试
直接打开WordCram下载包中的example中pde文件,运行即可;
附录:Processing简介
Processing is 编程语言, 开发环境, 在线社区.
Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. 自2001年起,Processing 通过可视化艺术提升软件读写性,通过技术提升了可视化读写性;
Initially created to serve as a software sketchbook and to teach computer programming fundamentals within a visual context, Processing evolved into a development tool for professionals.
软件设计的初衷是为了作为一个画图本软件,通过可视化背景来教授计算机编程基础,如今Processing已进化为专业的开发工具;
Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.
如今有上万的学生,艺术家,设计师,研究者,兴趣爱好者,使用Processing来学习,设计和工作;