To build Carrot2 Document Clustering Workbench from source code:
-
Download Eclipse Target Platform from http://download.carrot2.org/eclipse and extract to some local folder.
-
Copy local.properties.example
from Carrot2 checkout folder tolocal.properties
in the same folder. In local.properties
edit thetarget.platform
property to point to the Eclipse Target Platform you have downloaded.
Important
The folder pointed to by target.platform
must have the eclipse/
folder inside.
You may also change the configs
property to match the platform you want to build Carrot2 Document Clustering Workbench for or rely on auto-detection.
-
Run:
ant workbench
to build Carrot2 Document Clustering Workbench binaries.
-
Go to the tmp/ workbench/ tmp/ carrot2-workbench
folder in the Carrot2 checkout dir and run Carrot2 Document Clustering Workbench.
we can run ant jar successfully. but if we want to run ant workbench, we should modify
1.
workbench/org.carrot2.workbench.core.feature/feature.xml
to add our custom chinese tokenizer related jcseg jars
<plugin
id="org.lionsoul.jcseg"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
2
workbench/org.carrot2.workbench.feature/carrot2.Workbench.launch
<stringAttribute key="selected_workspace_plugins" value="org.lionsoul.jcseg@default:default,com.carrotsearch.hppc@default:default,
3
#ant eclipse
etc/maven/poms/pom.xml
<org.lionsoul.jcseg.version>1.9.6</org.lionsoul.jcseg.version>
<dependency>
<groupId>org.lionsoul.jcseg</groupId>
<artifactId>jcseg-core</artifactId>
<version>${org.lionsoul.jcseg.version}</version>
</dependency>
4
core/carrot2-util-text/META-INF/MANIFEST.MF
Bundle-SymbolicName: org.carrot2.text
Bundle-Version: 0.0.0.QUALIFIER
Require-Bundle:
org.carrot2.core;bundle-version="0.0.0";visibility:=reexport,
org.carrot2.util.matrix;bundle-version="0.0.0";visibility:=reexport,
org.apache.lucene.v2;bundle-version="2.9.0";visibility:=reexport,
org.lionsoul;bundle-version="1.9.6";visibility:=reexport,
morfologik;bundle-version="1.1.2";resolution:=optional;visibility:=reexport,
com.carrotsearch.hppc;bundle-version="0.3.0";visibility:=reexport
5
lib/org.lionsoul.jcseg/META-INF/MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jcseg Tokenizer
Bundle-SymbolicName: org.lionsoul.jcseg
Bundle-Version: 1.9.6
Bundle-ClassPath: jcseg-core-1.9.6.jar
Bundle-Vendor: jcseg Inc.
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
#ant workbench
Successfully!
#cd tmp/workbench/build/tmp/carrot2-workbench-3.11.0-SNAPSHOT
#./carrot2-workbench
Error:
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)
solution: sudo apt-get install libwebkitgtk-1.0-0
-----
But the custom tokenizer can't work.
#jar tf carrot2/tmp/workbench/build/tmp/carrot2-workbench-3.11.0-SNAPSHOT/plugins/org.lionsoul.jcseg_1.9.6.jar
Reason: there is a whitespace after
jcseg.LICENSE,\
solution: lib/org.lionsoul.jcseg/build.properties
bin.includes = META-INF/,\
jcseg.LICENSE,\
jcseg-core-1.9.6.jar
META-INF/
META-INF/MANIFEST.MF
jcseg.LICEN
there is no jcseg-core-1.9.6.jar in this plugin
#ant workbench
an error occurs
[java] [java] BUILD FAILED [java] /home/zhaohj/soft/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/ scripts/productBuild/productBuild.xml:35: The following error occurred while executing this line: [java] /home/zhaohj/soft/eclipse/plugins/ org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/productBuild/ productBuild.xml:69: org.eclipse.core.runtime.CoreException: x86_64 is not a valid configuration. [java] BUILD FAILED [java] /home/zhaohj/soft/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/productBuild/productBuild.xml:35: The following error occurred while executing this line: [java] /home/zhaohj/soft/eclipse/plugins/org.eclipse.pde.build_3.8.100. v20130514-1028/scripts/productBuild/productBuild.xml:69: Unable to find element : /home/zhaohj/hadoop/src/carrot2/tmp/workbench/build/features/org.carrot2.workbench.feature/Workbench.product.
[eclipse.generateFeature] Incorrect directory entry: /home/zhaohj/hadoop/src/carrot2/.tools/rcp/3.7.1/eclipse.
----
cd carrot2/workbench/org.carrot2.workbench.target
README
Target platform definition. Download matching target's binary bundle from:
http://download.carrot2.org/eclipse
and unpack it to this folder.
org.carrot2.workbench.eclipse-3.6.2.target
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.5"?>
<target name="org.carrot2.workbench.eclipse-3.6.2">
<locations>
<location path="${workspace_loc:org.carrot2.workbench.target}/3.6.2/eclipse" type="Directory"/>
</locations>
</target>
http://download.carrot2.org/eclipse/
lexicon put in dir :
/carrot2/tmp/workbench/build/tmp/carrot2-workbench-3.10.0-SNAPSHOT/configuration/org.eclipse.osgi/bundles/85/1/.cp
References
http://issues.carrot2.org/browse/CARROT-272
http://doc.carrot2.org/#section.workbench
分享到:
相关推荐
Docker Containers Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
As you begin creating your own containers, I discuss techniques to help you make container images that build and run efficiently. I even step you through build files (which are called Dockerfiles) ...
Docker Containers_Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic-Prentice Hall(2015).pdf
Docker Containers Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络...
Data Science and Machine Learning are in high demand, as customers are increasingly looking for ways to glean insights from all their data. More customers now realize that Business Intelligence is not...
Release It! - Design and Deploy Production-Ready Software 2nd,Release It! Design and Deploy Production-Ready Software
release it! design and deploy production ready software
Pragmatic Bookshelf - Release It! Design and Deploy Production Ready Software
Learn RPGs in GameMaker: Studio Build and Design Role Playing Games By Ben ... Build your first game application and deploy in an app store, on Facebook, or just on a PC. Maybe, even, make a few bucks.
Dynamics 365 Plan and Deploy.pdf
how to prepare and deploy a Java application
Data Science and Machine ... Learn how you can quickly build and deploy sophisticated predictive models as machine learning web services with the new Azure Machine Learning service from Microsoft.
Release It! Design and Deploy Production-Ready Software
Cloud-Native-Python-Build-and-deploy-resilent-applications-on-the-cloud-using-microservices-AWS-Azure-and-more.pdf
Michael_Nygard-Design_and_Deploy_Production-Ready_Software-EN.pdf
You will use the powerful C# language, Unity's intuitive workflow tools, and a state-of-the-art rendering engine to build and deploy mobile, desktop, and console games. Unity's single codebase ...
建造 你的同事需要适应你的开发环境: me@laptop$~: make me@laptop$~: make install ...部署 您的系统管理员可能会欣赏这一点: me@server$~: make release => 在基于发布的目录结构上Web 应用程序的 ...
Release It!-Design and Deploy Production-Ready Software-2007
and deploy applications that run in the SAP HANA XS classic model run-time environment using the tools provided with the browser-based SAP HANA Web-based Workbench. It also describes the technical ...
This book will teach readers how to build and deploy a fully working example retail website using Microsoft ASP.NET MVC and Entity Framework technologies and recommendations. This book contains ...