From i_am_behrang at yahoo.com Thu Oct 6 12:45:24 2005 From: i_am_behrang at yahoo.com (Behrang Mohit) Date: Thu, 6 Oct 2005 12:45:24 -0700 (PDT) Subject: Problem with installation of the LM toolkit Message-ID: <20051006194524.53993.qmail@web36209.mail.mud.yahoo.com> Hi, I'm trying to install the toolkit on my group's linux server and I keep getting the following error for some of the major utilities of the toolkit. I'm using "gcc296" and tcl8.3. I did the following settings for the TCL paths: TCL_INCLUDE = /usr/include/itcl.h TCL_LIBRARY = /usr/lib/libitcl.so I have tried another instalation without the actual .h and .so files, but that one didn't work either. I should note that besides the above changes and also the changes in the path of gcc and g++ and the main directory of the package, I have not changed any of the original settings of the MAKE files. Here is the error that I get: gcc: compilation of header file requested g++: compilation of header file requested gcc: compilation of header file requested g++: compilation of header file requested gcc: compilation of header file requested g++: compilation of header file requested g++: compilation of header file requested g++: compilation of header file requested gcc: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/option.o] Error 1 gcc: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/qsort.o] Error 1 gcc: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/matherr.o] Error 1 g++: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/FDiscount.o] Error 1 g++: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/Lattice.o] Error 1 g++: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/ngram.o] Error 1 g++: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/fngram-count.o] Error 1 g++: cannot specify -o with -c or -S and multiple compilations make[2]: *** [../obj/i686/lattice-tool.o] Error 1 I appreciate if you could give me any hint on this problem. Thanks Behrang __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From patryale at iro.umontreal.ca Thu Oct 6 13:38:15 2005 From: patryale at iro.umontreal.ca (Alexandre Patry) Date: Thu, 06 Oct 2005 16:38:15 -0400 Subject: Problem with installation of the LM toolkit In-Reply-To: <20051006194524.53993.qmail@web36209.mail.mud.yahoo.com> References: <20051006194524.53993.qmail@web36209.mail.mud.yahoo.com> Message-ID: <1128631095.6654.87.camel@florali3.iro.umontreal.ca> Hi, from what I understand, TCL_INCLUDE and TCL_LIBRARY are flags which are passed to the compiler. So they should have the form: TCL_INCLUDE = -I/dir/to/tcl/headers TCL_LIBRARY = -L/dir/to/tcl/libraries -ltcl good luck, Alexandre Le jeu 06/10/2005 ? 15:45, Behrang Mohit a ?crit : > Hi, > > I'm trying to install the toolkit on my group's linux > server and I keep getting the following error for some > of the major utilities of the toolkit. I'm using > "gcc296" and tcl8.3. I did the following settings for > the TCL paths: > > TCL_INCLUDE = /usr/include/itcl.h > TCL_LIBRARY = /usr/lib/libitcl.so > > I have tried another instalation without the actual .h > and .so files, but that one didn't work either. I > should note that besides the above changes and also > the changes in the path of gcc and g++ and the main > directory of the package, I have not changed any of > the original settings of the MAKE files. > > Here is the error that I get: > > gcc: compilation of header file requested > g++: compilation of header file requested > gcc: compilation of header file requested > g++: compilation of header file requested > gcc: compilation of header file requested > g++: compilation of header file requested > g++: compilation of header file requested > g++: compilation of header file requested > gcc: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/option.o] Error 1 > gcc: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/qsort.o] Error 1 > gcc: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/matherr.o] Error 1 > g++: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/FDiscount.o] Error 1 > g++: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/Lattice.o] Error 1 > g++: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/ngram.o] Error 1 > g++: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/fngram-count.o] Error 1 > g++: cannot specify -o with -c or -S and multiple > compilations > make[2]: *** [../obj/i686/lattice-tool.o] Error 1 > > > I appreciate if you could give me any hint on this > problem. > > Thanks > Behrang > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com From arnaud.gaudinat at healthonnet.org Tue Oct 11 08:14:39 2005 From: arnaud.gaudinat at healthonnet.org (gaudinat) Date: Tue, 11 Oct 2005 17:14:39 +0200 Subject: Naive question about unknown words Message-ID: <434BD6DF.7040405@healthonnet.org> Sorry for this naive question: I create my LM with this command: ngram-count -text learningdb.txt -lm GT -unk I evaluate a sentence with the following command: ngram -lm GT -ppl sentence.txt I obtain coherent results but I get also the following warning message: "warning: non-zero probability for in closed-vocabulary LM" Can anyone give me some information about this warning and how to avoid it? Of course I need to give a weight for the unknown words. Thanks in advance, Arnaud. From stolcke at speech.sri.com Tue Oct 11 09:15:49 2005 From: stolcke at speech.sri.com (Andreas Stolcke) Date: Tue, 11 Oct 2005 09:15:49 PDT Subject: Naive question about unknown words In-Reply-To: Your message of Tue, 11 Oct 2005 17:14:39 +0200. <434BD6DF.7040405@healthonnet.org> Message-ID: <200510111615.j9BGFng08089@huge> In message <434BD6DF.7040405 at healthonnet.org>you wrote: > Sorry for this naive question: > > I create my LM with this command: > ngram-count -text learningdb.txt -lm GT -unk > > I evaluate a sentence with the following command: > ngram -lm GT -ppl sentence.txt > > I obtain coherent results but I get also the following warning message: > "warning: non-zero probability for in closed-vocabulary LM" > > Can anyone give me some information about this warning and how to avoid it? > Of course I need to give a weight for the unknown words. You need to specify -unk on the ngram command line as well. --Andreas From anand at speech.sri.com Tue Oct 11 09:19:19 2005 From: anand at speech.sri.com (Anand Venkataraman (Roaming)) Date: Tue, 11 Oct 2005 09:19:19 -0700 Subject: Naive question about unknown words In-Reply-To: <434BD6DF.7040405@healthonnet.org> References: <434BD6DF.7040405@healthonnet.org> Message-ID: <434BE607.8010102@speech.sri.com> Arnaud When you created the language model, you specified that you wanted to create an unknown word (placeholder for out-of-vocabulary items) with a non-zero probability. Since you didn't invoke ngram also with the -unk option, it warns that you are using a supposedly closed vocabulary lm, but that it has a non-zero prob for unk. You can avoid it by specifying -unk for ngram as well, or alternately, building a closed vocab lm to start with (i.e. ngram-count without -unk). Although you state that you want to have a non-zero weight for unknown unigrams, I would recommend that if at all possible, you predetermine the domain vocab and build a closed vocab LM. Regards & gaudinat wrote: > Sorry for this naive question: > > I create my LM with this command: > ngram-count -text learningdb.txt -lm GT -unk > > I evaluate a sentence with the following command: > ngram -lm GT -ppl sentence.txt > > I obtain coherent results but I get also the following warning message: > "warning: non-zero probability for in closed-vocabulary LM" > > Can anyone give me some information about this warning and how to avoid it? > Of course I need to give a weight for the unknown words. > > Thanks in advance, > > Arnaud. From teemu.hirsimaki at hut.fi Thu Oct 13 02:03:10 2005 From: teemu.hirsimaki at hut.fi (Teemu Hirsimaki) Date: Thu, 13 Oct 2005 12:03:10 +0300 Subject: Error in lattice rescoring? Message-ID: <434E22CE.3090005@hut.fi> While working on lattices, I noticed that lattice-tool seems to give sometimes strange backoff probabilities when rescoring lattices. I have a simple 2-gram model test.arpa: \data\ ngram 1=4 ngram 2=1 \1-grams: -99 -1.00000 -0.69897 a -0.15490 b -0.69897 \2-grams: -0.09691 b \end\ and a simple HTK lattice file test.htk that has just words "b a ": VERSION=1.1 base=10 dir=f start=0 end=3 N=4 L=3 I=0 I=1 I=2 I=3 J=0 S=0 E=1 W=b J=1 S=1 E=2 W=a J=2 S=2 E=3 W=!NULL Rescoring gives funny probabilities for "a" and "b": $ lattice-tool -in-lattice test.htk -read-htk -lm test.arpa \ -out-lattice - -write-htk ... J=0 S=0 E=2 W=b l=-0.85387 (*) J=1 S=2 E=3 W=a l=-0.69897 J=2 S=3 E=1 W=!NULL l=-1 The correct probabilities are given by the ngram tool: $ echo "b a " | ngram -debug 2 -lm test.arpa -ppl - ... p( b | ) = [1gram] 0.700003 [ -0.1549 ] p( a | b ...) = [1gram] 0.04 [ -1.39794 ] p( | a ...)= [1gram] 0.1 [ -1 ] Did I miss something, or is there a bug in lattice-tool? It looks like the lattice-tool adds the backoff probability BO(b) for the first word (*) instead of the next. The bug seems to appear in toolkit versions 1.4.4 and 1.4.5 (OS is SuSE Linux 9.3 i686). -- Teemu hirsim?ki From stolcke at speech.sri.com Thu Oct 13 10:51:34 2005 From: stolcke at speech.sri.com (Andreas Stolcke) Date: Thu, 13 Oct 2005 10:51:34 PDT Subject: Error in lattice rescoring? In-Reply-To: Your message of Thu, 13 Oct 2005 12:03:10 +0300. <434E22CE.3090005@hut.fi> Message-ID: <200510131751.j9DHpYT22241@huge> In message <434E22CE.3090005 at hut.fi>you wrote: > While working on lattices, I noticed that lattice-tool seems to give > sometimes strange backoff probabilities when rescoring lattices. I have > a simple 2-gram model test.arpa: > > \data\ > ngram 1=4 > ngram 2=1 > > \1-grams: > -99 > -1.00000 > -0.69897 a > -0.15490 b -0.69897 > > \2-grams: > -0.09691 b > > \end\ > > and a simple HTK lattice file test.htk that has just words "b a ": > > VERSION=1.1 > base=10 > dir=f > start=0 end=3 > N=4 L=3 > I=0 > I=1 > I=2 > I=3 > J=0 S=0 E=1 W=b > J=1 S=1 E=2 W=a > J=2 S=2 E=3 W=!NULL > > Rescoring gives funny probabilities for "a" and "b": > > $ lattice-tool -in-lattice test.htk -read-htk -lm test.arpa \ > -out-lattice - -write-htk > ... > J=0 S=0 E=2 W=b l=-0.85387 (*) > J=1 S=2 E=3 W=a l=-0.69897 > J=2 S=3 E=1 W=!NULL l=-1 > > The correct probabilities are given by the ngram tool: > > $ echo "b a " | ngram -debug 2 -lm test.arpa -ppl - > ... > p( b | ) = [1gram] 0.700003 [ -0.1549 ] > p( a | b ...) = [1gram] 0.04 [ -1.39794 ] > p( | a ...)= [1gram] 0.1 [ -1 ] > > Did I miss something, or is there a bug in lattice-tool? It looks like > the lattice-tool adds the backoff probability BO(b) for the first word > (*) instead of the next. The bug seems to appear in toolkit versions > 1.4.4 and 1.4.5 (OS is SuSE Linux 9.3 i686). It's not a bug. It you add all the scores along the path for b a you get -2.55284, which is the right score. You can verify this with echo " b a " | \ lattice-tool -in-lattice test-rescored.htk -read-htk -ppl - -debug 2 which traces the path and aggregate probabilities of the path through the lattice. Since the nodes for a and b correspond to backoff contexts, the weights are assigned as follows: transition weight -> b p(b) + bow(b) b -> a p(a) + bow(a) a -> p() It is more compact to assign the backoff weight to the transitions coming INto the corresponding node, in case that node has multiple successors. If you want to see the weight assignment you expect you can use the lattice-tool -old-expansion option, but it can only handle up to 3-gram LMs. The default algorithm is both more general and yields more compact lattices. --Andreas From teemu.hirsimaki at hut.fi Tue Oct 18 05:02:36 2005 From: teemu.hirsimaki at hut.fi (Teemu Hirsimaki) Date: Tue, 18 Oct 2005 15:02:36 +0300 Subject: Another lattice rescoring problem Message-ID: <4354E45C.706@hut.fi> I ran into another problem with the lattice rescoring. I have two simple HTK lattices (acoustic log-probabilities in parentheses): test0.htk: a(-1) --+--> c(-2) ------+--> b(-3) | | +--> !NULL(-2) --+ test1.htk: a(-1) -----> !NULL(-2) -----> b(-3) If I rescore the above lattices with a simple 2-gram language model test.arpa (see the end of the mail for the example files), the language model probability of the path "a b" is computed incorrectly for the first lattice. In the second case, the probability is correct: $ echo "a b" | lattice-tool -in-lattice test0.htk -read-htk \ -lm test.arpa -ppl - -debug 2 ... p( a | ) = [10] 7.43548e-13 [ -12.1287 ] p( b | a ...) = [16] 8.00959e-07 [ -6.09639 ] p( | b ...) = [9] 6.88685e-14 [ -13.162 ] 0 zeroprobs, logprob= -31.3871 ppl= 2.8997e+10 ppl1= 4.93776e+15 $ echo "a b" | lattice-tool -in-lattice test1.htk -read-htk \ -lm test.arpa -ppl - -debug 2 ... p( a | ) = [9] 2.57573e-17 [ -16.5891 ] p( b | a ...) = [13] 8.00959e-07 [ -6.09639 ] p( | b ...) = [8] 6.88685e-14 [ -13.162 ] 0 zeroprobs, logprob= -35.8475 ppl= 8.89522e+11 ppl1= 8.38947e+17 It seems that the backoff probability BO(a) is missing from the first case. Next I tried to use the -no-nulls flag. Then I get correct language mode probabilities for both lattices, but the acoustic probability is incorrect, as the acoustic probability of the !NULL edge is discarded. Should the general LM expansion handle !NULL edges correctly? I also tried changing the !NULL words to a distinct word symbol and specifying it with the -ignore-vocab flag to lattice-tool (tried versions 1.4.5 and 1.4.6 beta). Then the acoustic probabilities are preserved nicely, but again the backoff probability BO(a) is missing from the first rescored lattice. Did I miss something again, or is the above expected behaviour? -Teemu Here are the example files: test0.htk: VERSION=1.1 base=10 dir=f lmscale=1 wdpenalty=0 start=0 end=3 N=4 L=4 I=0 I=1 I=2 I=3 J=0 S=0 E=1 W=a a=-1 J=1 S=1 E=2 W=!NULL a=-2 J=2 S=1 E=2 W=c a=-2 J=3 S=2 E=3 W=b a=-3 test1.htk: VERSION=1.1 base=10 dir=f lmscale=1 wdpenalty=0 start=0 end=3 N=4 L=3 I=0 I=1 I=2 I=3 J=0 S=0 E=1 W=a a=-1 J=1 S=1 E=2 W=!NULL a=-2 J=2 S=2 E=3 W=b a=-3 test.arpa: \data\ ngram 1=5 ngram 2=5 \1-grams: -99 -7.34882 -2.10718 c -4.28966 -4.77987 a -4.46041 -5.81316 -7.34882 -4.02326 b -2.07313 \2-grams: -3.33947 c a -1.08518 c -4.58511 c b -0.000484286 a c -1.67833 b c \end\ From pmcilroy at gmail.com Mon Nov 28 20:39:29 2005 From: pmcilroy at gmail.com (P McIlroy) Date: Mon, 28 Nov 2005 20:39:29 -0800 Subject: Trouble building srilm project (macosx) Message-ID: <4aa50c3a8498b5fbc113151eff9ec9ee@gmail.com> I joined this group in hopes of finding some help on the MacOS compile. I'm getting a handful of uninstantiated templates in the out-of-the-box compile on OS X 10.3.9, with compiler version: gcc version 3.3 20030304 (Apple Computer, Inc. build 1666) The undefined functions are, in various executables: FNgramCounts::FNgramCounts(FactoredVocab&, FNgramSpecs&) Map2::clear() NgramCounts::NgramCounts(Vocab&, unsigned int) I was able to 'fix' ngram-counts by adding #include "NgramStats.cc" to the main program. The same fix does not work for ngram.cc. Additional investigation shows that the instance file NGramStatsInt.o does not include an instantiation of the NGramCount constructor. Other attempts like adding this to the main program: static template NGramCounts; lead to multiple definition errors in the linker. Is there a known configuration or compiler option that works on OS X 10.3? Or will upgrading to 10.4 fix the problems? thanks, Peter McIlroy Begin forwarded message: > From: P McIlroy > Date: November 28, 2005 3:17:14 PM PST > To: stolcke at speech.sri.com > Subject: Fwd: Trouble building your srilm project (macosx) > > I was able to compile one of the failed executables (ngram-count), but > it required adding > > #include "NgramStats.cc" > > to the end of the list of includes in the main source file > ngram-stats.cc. (This is not the preferred way to force compilation > of templates, but it's working for now.) I also tried forcing > instantiation by creating a NgramStats_inst.cc file, but this led to > horrible multiple definitions. > > I'm still getting a warning for multiple definitions of _qsort(), but > I don't think this is a problem. > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2058 bytes Desc: not available URL: From stolcke at speech.sri.com Mon Dec 5 13:13:25 2005 From: stolcke at speech.sri.com (Andreas Stolcke) Date: Mon, 05 Dec 2005 13:13:25 PST Subject: Trouble building srilm project (macosx) In-Reply-To: Your message of Mon, 28 Nov 2005 20:39:29 -0800. <4aa50c3a8498b5fbc113151eff9ec9ee@gmail.com> Message-ID: <200512052113.jB5LDPQ04594@huge> Peter et al., I am told that the version of MaxOS you are using is somewhat old. I borrowed the Mac of a colleague, it is running % uname -a Darwin wapple.icsi.berkeley.edu 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3 20 :04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc % gcc -v gcc version 4.0.0 (Apple Computer, Inc. build 5026) and I build the latest version of SRILM, which is 1.4.6-beta (get the beta version from the download page). It compiles and runs fine. (Ignore the warnings about duplicate definition of qsort.) --Andreas In message <4aa50c3a8498b5fbc113151eff9ec9ee at gmail.com>you wrote: > > --Apple-Mail-4-313146649 > Content-Transfer-Encoding: 7bit > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > > I joined this group in hopes of finding some help on the MacOS compile. > > I'm getting a handful of uninstantiated templates in the out-of-the-box > compile on OS X 10.3.9, with compiler version: > > gcc version 3.3 20030304 (Apple Computer, Inc. build 1666) > > The undefined functions are, in various executables: > > FNgramCounts::FNgramCounts(FactoredVocab&, > FNgramSpecs&) > Map2::clear() > NgramCounts::NgramCounts(Vocab&, unsigned int) > > I was able to 'fix' ngram-counts by adding > > #include "NgramStats.cc" > > to the main program. > > The same fix does not work for ngram.cc. > > Additional investigation shows that the instance file > > NGramStatsInt.o > > does not include an instantiation of the NGramCount constructor. > > Other attempts like adding this to the main program: > > static template NGramCounts; > > lead to multiple definition errors in the linker. > > Is there a known configuration or compiler option that works on OS X > 10.3? Or will upgrading to 10.4 fix the problems? > > thanks, > > Peter McIlroy > > > > Begin forwarded message: > > > From: P McIlroy > > Date: November 28, 2005 3:17:14 PM PST > > To: stolcke at speech.sri.com > > Subject: Fwd: Trouble building your srilm project (macosx) > > > > I was able to compile one of the failed executables (ngram-count), but > > it required adding > > > > #include "NgramStats.cc" > > > > to the end of the list of includes in the main source file > > ngram-stats.cc. (This is not the preferred way to force compilation > > of templates, but it's working for now.) I also tried forcing > > instantiation by creating a NgramStats_inst.cc file, but this led to > > horrible multiple definitions. > > > > I'm still getting a warning for multiple definitions of _qsort(), but > > I don't think this is a problem. > > > > --Apple-Mail-4-313146649 > Content-Transfer-Encoding: 7bit > Content-Type: text/enriched; > charset=US-ASCII > > I joined this group in hopes of finding some help on the MacOS compile. > > > I'm getting a handful of uninstantiated templates in the > out-of-the-box compile on OS X 10.3.9, with compiler version: > > > gcc version 3.3 20030304 (Apple Computer, Inc. build 1666) > > > The undefined functions are, in various executables: > > > FNgramCounts<::FNgramCounts(FactoredVocab&, > FNgramSpecs<&) > > Map2<::clear() > > NgramCounts<::NgramCounts(Vocab&, unsigned int) > > > I was able to 'fix' ngram-counts by adding > > > #include "NgramStats.cc" > > > to the main program. > > > The same fix does not work for ngram.cc. > > > Additional investigation shows that the instance file > > > NGramStatsInt.o > > > does not include an instantiation of the NGramCount constructor. > > > Other attempts like adding this to the main program: > > > static template NGramCounts<; > > > lead to multiple definition errors in the linker. > > > Is there a known configuration or compiler option that works on OS X > 10.3? Or will upgrading to 10.4 fix the problems? > > > thanks, > > > Peter McIlroy > > > > > Begin forwarded message: > > > 0000,0000,0000From: > P McIlroy < > > 0000,0000,0000Date: > November 28, 2005 3:17:14 PM PST > > 0000,0000,0000To: > stolcke at speech.sri.com > > 0000,0000,0000Subject: Fwd: > Trouble building your srilm project (macosx) > > > > I was able to compile one of the failed executables (ngram-count), but > it required adding > > > #include "NgramStats.cc" > > > to the end of the list of includes in the main source file > ngram-stats.cc. (This is not the preferred way to force compilation > of templates, but it's working for now.) I also tried forcing > instantiation by creating a NgramStats_inst.cc file, but this led to > horrible multiple definitions. > > > I'm still getting a warning for multiple definitions of _qsort(), but > I don't think this is a problem. > > > > --Apple-Mail-4-313146649-- > From hfei.jiang at gmail.com Fri Dec 16 06:25:44 2005 From: hfei.jiang at gmail.com (hongfei jiang) Date: Fri, 16 Dec 2005 22:25:44 +0800 Subject: How to install Message-ID: <5f18fca00512160625w42f9d7c6o56340ab509b5ae3f@mail.gmail.com> Dear everyone, I have upacked the srilm toolkit in the directory /home/Franz Then how could I install it? below is the Makefile in directory /home/Franz: But i dont know how to set it. I am newer for linux platform , could anyone tell me in detailed. Thank you very much. ======================================================== # # Top-level Makefile for SRILM # # $Header: /home/srilm/devel/RCS/Makefile,v 1.31 2005/08/21 04:54:58 stolcke Exp $ # # SRILM = /home/speech/stolcke/project/srilm/devel MACHINE_TYPE := $(shell $(SRILM)/sbin/machine-type) RELEASE := $(shell cat RELEASE) MODULES = \ misc \ dstruct \ lm \ flm \ lattice \ utils \ htk a EXCLUDE = \ me \ contrib \ lm/src/test \ flm/src/test \ lattice/src/test \ dstruct/src/test \ utils/src/fsmtest \ test/output \ EXCLUDE MAKE_VARS = \ SRILM=$(SRILM) \ MACHINE_TYPE=$(MACHINE_TYPE) \ OPTION=$(OPTION) World: dirs $(MAKE) init $(MAKE) release-headers $(MAKE) depend $(MAKE) release-libraries $(MAKE) release-programs $(MAKE) release-scripts dirs: -mkdir include lib bin init depend all programs release clean cleaner cleanest sanitize desanitize \ release-headers release-libraries release-programs release-scripts: for subdir in $(MODULES); do \ (cd $$subdir/src; $(MAKE) $(MAKE_VARS) $@); \ done # files needed for the web page WWW_DOCS = CHANGES License INSTALL RELEASE WWW_DIR = /home/spftp/www/DocumentRoot/projects/srilm www: $(WWW_DOCS) ginstall -m 444 $(WWW_DOCS) $(WWW_DIR)/docs ginstall -m 444 man/html/* $(WWW_DIR)/manpages TAR = /usr/local/gnu/bin/tar-1.12 package: EXCLUDE $(TAR) cvzXf EXCLUDE ../srilm-$(RELEASE).tar.gz . package_notest: EXCLUDE echo test >> EXCLUDE $(TAR) cvzXf EXCLUDE ../srilm-$(RELEASE)-notest.tar.gz . rm EXCLUDE package_x: $(MAKE) $(MAKE_VARS) sanitize $(MAKE) $(MAKE_VARS) RELEASE=$(RELEASE)_x package $(MAKE) $(MAKE_VARS) desanitize EXCLUDE: force (find bin/* lib/* */bin/* */obj/* -type d -print -prune ; \ find $(EXCLUDE) include bin -type f -print; \ find . \( -name "*.~[0-9]*" -o -name Dependencies.\* -o -name core -o -name \*.3rdparty -o -name out.\* \) -print; \ find . -name RCS -print) | \ sed 's,^\./,,' > $@ force: ======================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfei.jiang at gmail.com Fri Dec 16 06:28:41 2005 From: hfei.jiang at gmail.com (hongfei jiang) Date: Fri, 16 Dec 2005 22:28:41 +0800 Subject: How to install srilm Message-ID: <5f18fca00512160628l444b7783n35f7ab4e86e189a2@mail.gmail.com> Dear everyone, I have upacked the srilm toolkit in the directory /home/Franz Then how could I install it? below is the Makefile in directory /home/Franz: But i dont know how to set it. I am newer for linux platform , could anyone tell me in detailed. Thank you very much. ======================================================== # # Top-level Makefile for SRILM # # $Header: /home/srilm/devel/RCS/Makefile,v 1.31 2005/08/21 04:54:58 stolcke Exp $ # # SRILM = /home/speech/stolcke/project/srilm/devel MACHINE_TYPE := $(shell $(SRILM)/sbin/machine-type) RELEASE := $(shell cat RELEASE) MODULES = \ misc \ dstruct \ lm \ flm \ lattice \ utils \ htk a EXCLUDE = \ me \ contrib \ lm/src/test \ flm/src/test \ lattice/src/test \ dstruct/src/test \ utils/src/fsmtest \ test/output \ EXCLUDE MAKE_VARS = \ SRILM=$(SRILM) \ MACHINE_TYPE=$(MACHINE_TYPE) \ OPTION=$(OPTION) World: dirs $(MAKE) init $(MAKE) release-headers $(MAKE) depend $(MAKE) release-libraries $(MAKE) release-programs $(MAKE) release-scripts dirs: -mkdir include lib bin init depend all programs release clean cleaner cleanest sanitize desanitize \ release-headers release-libraries release-programs release-scripts: for subdir in $(MODULES); do \ (cd $$subdir/src; $(MAKE) $(MAKE_VARS) $@); \ done # files needed for the web page WWW_DOCS = CHANGES License INSTALL RELEASE WWW_DIR = /home/spftp/www/DocumentRoot/projects/srilm www: $(WWW_DOCS) ginstall -m 444 $(WWW_DOCS) $(WWW_DIR)/docs ginstall -m 444 man/html/* $(WWW_DIR)/manpages TAR = /usr/local/gnu/bin/tar-1.12 package: EXCLUDE $(TAR) cvzXf EXCLUDE ../srilm-$(RELEASE).tar.gz . package_notest: EXCLUDE echo test >> EXCLUDE $(TAR) cvzXf EXCLUDE ../srilm-$(RELEASE)-notest.tar.gz . rm EXCLUDE package_x: $(MAKE) $(MAKE_VARS) sanitize $(MAKE) $(MAKE_VARS) RELEASE=$(RELEASE)_x package $(MAKE) $(MAKE_VARS) desanitize EXCLUDE: force (find bin/* lib/* */bin/* */obj/* -type d -print -prune ; \ find $(EXCLUDE) include bin -type f -print; \ find . \( -name "*.~[0-9]*" -o -name Dependencies.\* -o -name core -o -name \*.3rdparty -o -name out.\* \) -print; \ find . -name RCS -print) | \ sed 's,^\./,,' > $@ force: ======================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From stolcke at speech.sri.com Fri Dec 16 09:11:20 2005 From: stolcke at speech.sri.com (Andreas Stolcke) Date: Fri, 16 Dec 2005 09:11:20 PST Subject: How to install In-Reply-To: Your message of Fri, 16 Dec 2005 22:25:44 +0800. <5f18fca00512160625w42f9d7c6o56340ab509b5ae3f@mail.gmail.com> Message-ID: <200512161711.JAA14179@tonga> Please read the INSTALL file and follow the instructions in it. --Andreas In message <5f18fca00512160625w42f9d7c6o56340ab509b5ae3f at mail.gmail.com>you wro > > Dear everyone, > > I have upacked the srilm toolkit in the directory > /home/Franz > Then how could I install it? > below is the Makefile in directory /home/Franz: > But i dont know how to set it. > I am newer for linux platform , could anyone tell me in detailed. > Thank you very much. From stolcke at speech.sri.com Fri Dec 16 09:11:20 2005 From: stolcke at speech.sri.com (Andreas Stolcke) Date: Fri, 16 Dec 2005 09:11:20 PST Subject: How to install In-Reply-To: Your message of Fri, 16 Dec 2005 22:25:44 +0800. <5f18fca00512160625w42f9d7c6o56340ab509b5ae3f@mail.gmail.com> Message-ID: <200512161711.JAA14179@tonga> Please read the INSTALL file and follow the instructions in it. --Andreas In message <5f18fca00512160625w42f9d7c6o56340ab509b5ae3f at mail.gmail.com>you wro > > Dear everyone, > > I have upacked the srilm toolkit in the directory > /home/Franz > Then how could I install it? > below is the Makefile in directory /home/Franz: > But i dont know how to set it. > I am newer for linux platform , could anyone tell me in detailed. > Thank you very much.