Debian Codegraph @

lib/dicts/cmu/Makefile

raw ◀ ▶
1 Debian patch touch this file
1 ###########################################################################
2 ## ##
3 ## Centre for Speech Technology Research ##
4 ## University of Edinburgh, UK ##
5 ## Copyright (c) 1998 ##
6 ## All Rights Reserved. ##
7 ## ##
8 ## Permission is hereby granted, free of charge, to use and distribute ##
9 ## this software and its documentation without restriction, including ##
10 ## without limitation the rights to use, copy, modify, merge, publish, ##
11 ## distribute, sublicense, and/or sell copies of this work, and to ##
12 ## permit persons to whom this work is furnished to do so, subject to ##
13 ## the following conditions: ##
14 ## 1. The code must retain the above copyright notice, this list of ##
15 ## conditions and the following disclaimer. ##
16 ## 2. Any modifications must be clearly marked as such. ##
17 ## 3. Original authors' names are not deleted. ##
18 ## 4. The authors' names are not used to endorse or promote products ##
19 ## derived from this software without specific prior written ##
20 ## permission. ##
21 ## ##
22 ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
23 ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
24 ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
25 ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
26 ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
27 ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
28 ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
29 ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
30 ## THIS SOFTWARE. ##
31 ## ##
32 ###########################################################################
33 ## ##
34 ## Alan W Black ([email protected]) June 1998 ##
35 ## ##
36 ## Programs to covert the CMU LEXICON to a form suitable for use in ##
37 ## festival. Note this is for version 0.4 ##
38 ## ##
39 ## Note this includes a patch to add part of speech to the lexicon for ##
40 ## homographs which can be distinguished by part of speech ##
41 ## ##
42 ## This requires the CMULEX which is available from ##
43 ## http://www.speech.cs.cmu.edu/cgi-bin/cmudict ##
44 ## The Copyright on the CMU lexicon is ##
45 ## The Carnegie Mellon Pronouncing Dictionary [cmudict.0.4] is ##
46 ## Copyright 1995 by Carnegie Mellon University. Use of this ##
47 ## dictionary, for any research or commercial purpose, is ##
48 ## completely unrestricted. If you make use of or redistribute ##
49 ## this material, we would appreciate acknowlegement of its origin. ##
50 ## ##
51 ## CSTR gratefully acknowledges CMU for the use of this lexicon ##
52 ## ##
53 ## July 2008 ##
54 ## [email protected] change syllabification to maximal onset ##
55 ## ##
56 ###########################################################################
57
58 SRCS = cmu2ft
59 RUNTIME = cmulex.scm cmu_lts_rules.scm cmudict-0.4.out
60 FILES = Makefile COPYING $(SRCS) cmudict-0.4.scm cmudict-0.4.diff \
61 allowables.scm cmudict_compile.scm findonsets
62
63 cmudict-0.4.out: cmudict-0.4.scm cmudict_extensions.scm
64 cat cmudict-0.4.scm cmudict_extensions.scm >all.scm
•65 festival -b cmudict_compile.scm
66 rm -f all.scm
67
68 cmudict-0.4.scm:
69 ./cmu2ft cmudict.0.4 cmudict-0.4.scm
70 patch <cmudict-0.4.diff
71
72 # Can optionally reduce the lexicon size by removing those entries that
73 # the LTS system correctly predict.
74 reduce:
75 ( echo "(load (string-append libdir \"/\" \"siod.scm\"))"; \
76 echo "(require 'radio_phones)"; \
77 echo "(require 'lts_build)"; \
78 echo "(reduce_lexicon \"cmudict-0.4.out\" \"cmudict-0.4.exception.out\" cmu_lts_function)" ) | \
79 festival -q
80
81 dist:
82 mkdir -p festival/lib/dicts
83 (cd festival/lib/dicts && ln -s ../../../. cmu)
84 tar zcvf festlex_CMU.tar.gz \
85 festival/lib/dicts/cmu/allowables.scm \
86 festival/lib/dicts/cmu/cmu*.scm \
87 festival/lib/dicts/cmu/cmudict-0.4.out \
88 festival/lib/dicts/cmu/Makefile \
89 festival/lib/dicts/cmu/cmudict-0.4.diff \
90 festival/lib/dicts/cmu/cmu2ft \
91 festival/lib/dicts/cmu/COPYING
92 rm -rf festival
93
94 lts_rules:
95 if [ ! -d lts_scratch ] ; then mkdir lts_scratch ; fi
96 @ cp -p $(FESTVOXDIR)/src/lts/build_lts .
97 @ cp -p $(FESTVOXDIR)/src/lts/build_lts_rules .
98 festival -b allowables.scm '(dump-flat-entries "cmudict-0.4.out" "lts_scratch/lex_entries.out" "ascii")'
99 ./build_lts
100
101 backup:
102 tar zcvf cmudict04.tar.gz $(FILES)