[marf-cvs] apps/ProbabilisticParsingApp README,NONE,1.1 manifest.mf,NONE,1.1 Makefile,1.23,1.24
Brought to you by:
mokhov
From: Serguei A. M. <mo...@us...> - 2005-11-30 01:24:17
|
Update of /cvsroot/marf/apps/ProbabilisticParsingApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26712/apps/ProbabilisticParsingApp Modified Files: Makefile Added Files: README manifest.mf Log Message: Adjust the build and packaging process for the NLP and TestNN apps. Make Makefiles build the standard distros of -bin, -src, and -bundle for all. Make them build the executable jars as well. Add corresponding manifests and README file. Some more touch-ups and I guess a -devel release of these can be made before the 0.3.0 final goes out. --- NEW FILE: README --- ProbabilisticParsingApp README ------------------------------ $Id: README,v 1.1 2005/11/30 01:24:06 mokhov Exp $ Tests NLP probabilistic parsing algorithm (CYK) of MARF, http://marf.sourceforge.net. See COPYRIGHT file for copyright information. Files: ------ COPYRIGHT -- copyright notice (-src and -bundle) ProbabilisticParsingApp.java -- the application source (shipped with -src and -bundle) ProbabilisticParsingApp.jar -- executable .jar file (-bin and -bundle) manifest.mf -- MANIFEST file for .jar archive (-src, -bin, and -bundle) marf.jar -- bundled MARF library (-bundle and -bin) .project -- Eclipse's project files (-bundle and -src) .classpath Makefile -- GNU-style Makefile (-bundle and -src) coding.html -- Coding Conventions Used (-bundle and -src) grammars -- probabilistic grammar sources data -- testing data to use Corpora: -------- NOTE, since the corpora used is copyrighted for most part (though available freely on the web) it is not provided with the distro; however, the links to it are provided in the Bibliography section in the MARF manual at http://marf.sf.net, where the application itself is also described more in detail. To run (depending on the distro): --------------------------------- java -cp .:marf.jar ProbabilisticParsingApp <options> java -jar ProbabilisticParsingApp.jar <options> make run Options: -------- Usage: java ProbabilisticParsingApp --help : to display this help and exit java ProbabilisticParsingApp --train <grammar-file> : to compile grammar from the <grammar-file> java ProbabilisticParsingApp --parse : to parse sentences from standard input EOF --- NEW FILE: manifest.mf --- Manifest-Version: 1.0 Main-Class: ProbabilisticParsingApp Class-Path: . marf.jar Name: ProbabilisticParsingApp Specification-Title: ProbabilisticParsingApp of Modular Audio Recognition Framework Specification-Version: 0.3.0 Specification-Vendor: The MARF Research and Development Group Implementation-Title: ProbabilisticParsingApp Implementation-Version: 0.3.0-devel Implementation-Vendor: The MARF Research and Development Group Bundle-Version: 0.3.0-devel Bundle-Name: ProbabilisticParsingApp Bundle-Vendor: The MARF Research and Development Group Index: Makefile =================================================================== RCS file: /cvsroot/marf/apps/ProbabilisticParsingApp/Makefile,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** Makefile 16 Oct 2005 03:11:00 -0000 1.23 --- Makefile 30 Nov 2005 01:24:06 -0000 1.24 *************** *** 1,4 **** --- 1,13 ---- + # ProbabilisticParsingApp Makefile + # # Use with GNU make # Serguei A. Mokhov, mo...@cs... + # + # (C) 2003-2005 The MARF Research and Development Group + # + # $Header$ + # + + VERSION=0.3.0-devel-`date +%Y%m%d` APPDIRS := . *************** *** 7,12 **** JAVAFILES := $(APPDIRS:%=%/*.java) CLASSES := $(APPDIRS:%=%/*.class) - CLASSPATH := .:marf.jar # --- 16,28 ---- JAVAFILES := $(APPDIRS:%=%/*.java) CLASSES := $(APPDIRS:%=%/*.class) + EXE = ProbabilisticParsingApp + + CLASSPATH = marf.jar:. + + # Java version + JAVAC = javac + JFLAGS = -g -verbose -classpath $(CLASSPATH) + JVM = java # *************** *** 14,21 **** # ! all: ProbabilisticParsingApp.class ! ProbabilisticParsingApp.class: $(JAVAFILES) ! javac -g -classpath $(CLASSPATH) ProbabilisticParsingApp.java --- 30,73 ---- # ! all: $(EXE).class ! @echo "ProbabilisticParsingApp build ok" ! $(EXE).class: $(JAVAFILES) ! $(JAVAC) $(JFLAGS) $(EXE).java ! ! # ! # Distro ! # ! ! distro: maintainer-clean bundle ! gzip --best $(EXE)-src-$(VERSION).tar ! gzip --best $(EXE)-bundle-$(VERSION).tar ! gzip --best $(EXE)-bin-$(VERSION).tar ! ! src: copyright coding ! tar cvfh $(EXE)-src-$(VERSION).tar \ ! --exclude CVS \ ! $(EXE).java testing.sh \ ! .classpath .project Makefile manifest.mf \ ! README coding.html COPYRIGHT \ ! data grammars ! ! bundle: src binary ! cp $(EXE)-src-$(VERSION).tar $(EXE)-bundle-$(VERSION).tar ! tar uvfh $(EXE)-bundle-$(VERSION).tar marf.jar $(EXE).jar ! ! binary: all copyright ! jar cvmf manifest.mf $(EXE).jar $(EXE).class ! tar cvfh $(EXE)-bin-$(VERSION).tar \ ! --exclude CVS \ ! COPYRIGHT README \ ! $(EXE).jar testing.sh \ ! marf.jar data grammars ! ! copyright: ../../marf/COPYRIGHT ! ln -sf ../../marf/COPYRIGHT COPYRIGHT ! ! coding: ../../www/coding.html ! ln -sf ../../www/coding.html coding.html *************** *** 34,39 **** # ! maintainer-clean clean: ! rm -f $(CLASSES) *.log *.csv *.gzbin # EOF --- 86,96 ---- # ! clean: ! rm -f $(CLASSES) *~ ! ! maintainer-clean: clean ! rm -rf COPYRIGHT coding.html \ ! current *.out \ ! $(EXE)-* $(EXE).jar # EOF |