在eclipse中运行 carrot2 workbench,虽然看我这篇文章就能运行,但是还是建议大家通读 《Carrot2 User and Developer Manual》,对carrot2有一个全局的认识。
下载carrot2提供的eclipse,地址http://download.carrot2.org/eclipse/,我下载的是3.5.1版本的(这个完整),一开始下载那个3.5的,结果解压一看里面没有eclipse.exe程序。 按照手册上Set up Carrot2 source code in your Eclipse IDE的说明,将carrot源代码解压到一个目录,加入到eclipse中。
按照手册上Running Carrot2 Document Clustering Workbench in Eclipse IDE 一步一步走,可能在运行的时候会提示 java.lang.RuntimeException: No application id has been found,这个错误,其实日志中还有很多提示缺少bundles ,就是因为运行时缺少这些bundles 导致的,可以在下面的界面中选择需要的bundles,当然为了省事,我点击选择全部了,O(∩_∩)O哈哈~