[mary-dev] adding new NLPs to the system

Marc Schroeder marc.schroeder at dfki.de
Thu Jun 16 17:08:42 CEST 2011


Hi Florent,

Ah I guess I know. The point is that you should create a new mary-fr.jar 
to contain your classes.

Look inside MARY_BASE/build.xml and copy/adapt the section defining 
mary-tr.jar

Then try again.

Best,
Marc

On 16.06.11 15:21, fxavier at ircam.fr wrote:
> Thanks Marc,
>
> Here is the output when running ant:
>
> Buildfile: /home/florent/MARYTTS/build.xml
>
> init:
>
> version:
>       [echo] Building OpenMary version '4.3.0'
>
> compile:
>
> mary-common.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-common.jar
>
> mary-freetts.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-freetts.jar
>
> maryclient.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/maryclient.jar
>
> mary-en.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-en.jar
>
> mary-de.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-de.jar
>
> mary-tr.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-tr.jar
>
> mary-te.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-te.jar
>
> mary-ru.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-ru.jar
>
> languagejars:
>
> mary-mbrola.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/mary-mbrola.jar
>
> signalproc.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/signalproc.jar
>
> emospeak.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/emospeak.jar
>
> emospeakapplet.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/emospeakapplet.jar
>
> redstart.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/redstart.jar
>
> perceptiontest.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/perceptiontest.jar
>
> voiceimport.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/voiceimport.jar
>
> mary-component-installer.jar:
>        [jar] Building jar:
> /home/florent/MARYTTS/java/mary-component-installer.jar
>
> transcription-tool.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/transcription-tool.jar
>
> dbselection-tool.jar:
>        [jar] Building jar: /home/florent/MARYTTS/java/dbselection-tool.jar
>
> jars:
>
> BUILD SUCCESSFUL
> Total time: 3 seconds
>
>
>
> but still I have the same exception, "class not found" as below. I think I
> missed something, is there any documentation on how adding new language
> but with our own NLP (and not the minimal NLP as shown in the
> NewLanguageSupport tutorial)? I guess it is not the same processes is it?
> Anything wrong with the config file fr.config?
>
>
>
> Thanks a lot,
> Florent
>
>
>
>> Florent,
>>
>> did you compile the system after you copied your .java classes into
>> $MARY_BASE/java/marytts/language/fr ?
>>
>> Go to $MARY_BASE and run
>>
>> ant
>>
>>
>> best,Marc
>>
>> On 16.06.11 14:48, fxavier at ircam.fr wrote:
>>> Dear all,
>>>
>>> I've completed the developpement of my personnal NLP components for
>>> french, now it is time to add them to the Mary system. Here is what I
>>> did:
>>>
>>> - I copied/pasted all my java classes into the directory
>>> $MARY_BASE/java/marytts/language/fr
>>>
>>> - I created the fr.config file like this:
>>>
>>>
>>> ##########################################################################
>>> # Copyright 2000-2011 DFKI GmbH.
>>> # All Rights Reserved.  Use is subject to license terms.
>>> #
>>> # This file is part of MARY TTS.
>>> #
>>> # MARY TTS is free software: you can redistribute it and/or modify
>>> # it under the terms of the GNU Lesser General Public License as
>>> published by
>>> # the Free Software Foundation, version 3 of the License.
>>> #
>>> # This program is distributed in the hope that it will be useful,
>>> # but WITHOUT ANY WARRANTY; without even the implied warranty of
>>> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>>> # GNU Lesser General Public License for more details.
>>> #
>>> # You should have received a copy of the GNU Lesser General Public
>>> License
>>> # along with this program.  If not, see<http://www.gnu.org/licenses/>.
>>> #
>>> ##########################################################################
>>> # MARY TTS configuration file tr.config
>>> ##########################################################################
>>>
>>> name = fr
>>> tr.version = 4.3.0
>>>
>>> provides = a-language
>>>
>>> requires = \
>>>       marybase
>>>
>>>
>>> ###########################################################################
>>> ############################## The Modules
>>> ###############################
>>> ###########################################################################
>>> modules.classes.list = \
>>>           marytts.language.fr.PhonemiserFR \
>>> 	marytts.language.fr.getPOSorPhonemFR \
>>> 	marytts.language.fr.preprocessFR \
>>> 	marytts.language.fr.ProsodyFR \
>>>
>>> 	marytts.language.fr.preprocess.abrev2alpha \
>>> 	marytts.language.fr.preprocess.date2alpha \
>>> 	marytts.language.fr.preprocess.devis2alpha \
>>> 	marytts.language.fr.preprocess.dur2alpha \
>>> 	marytts.language.fr.preprocess.heur2alpha \
>>> 	marytts.language.fr.preprocess.mesu2alpha \
>>> 	marytts.language.fr.preprocess.sms2alpha \
>>>
>>>
>>>
>>> - and started the maryserver.
>>>
>>>
>>> Unfortunately I got this exception:
>>>
>>> MARY server 4.3.0 starting as a HTTP server...Exception in thread "main"
>>> java.lang.ClassNotFoundException: marytts.language.fr.PhonemiserFR
>>> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>> 	at java.security.AccessController.doPrivileged(Native Method)
>>> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>> 	at java.lang.Class.forName0(Native Method)
>>> 	at java.lang.Class.forName(Class.java:186)
>>> 	at marytts.util.MaryUtils.instantiateObject(MaryUtils.java:117)
>>> 	at
>>> marytts.modules.ModuleRegistry.instantiateModule(ModuleRegistry.java:91)
>>> 	at marytts.server.Mary.startModules(Mary.java:143)
>>> 	at marytts.server.Mary.startup(Mary.java:307)
>>> 	at marytts.server.Mary.startup(Mary.java:223)
>>> 	at marytts.server.Mary.main(Mary.java:518)
>>> Exception in thread "Thread-1" java.lang.IllegalStateException: MARY
>>> system is not running
>>> 	at marytts.server.Mary.shutdown(Mary.java:393)
>>> 	at marytts.server.Mary$3.run(Mary.java:299)
>>>
>>>
>>> stating that my class PhonemiserFR is not found. What is my mistake? Did
>>> I
>>> miss something?
>>>
>>>
>>> My config:
>>> - Ubuntu 11.04
>>> - Mary 4.3.0
>>> - JDK jdk1.6.0_24
>>>
>>>
>>> Best regards,
>>>
>>>
>>>
>>>
>>>
>>> -----------------------------------------------------------
>>>
>>>
>>>
>>> Florent XAVIER
>>> Internship at Telecom Paristech
>>> M2 ATIAM - UPMC/Ircam/Telecom Paristech
>>> ING 5 - ECE Paris
>>> firstname [dot] lastname [at] ircam [dot] fr
>>> firstname [dot] lastname [at] telecom-paristech [dot] fr
>>> tel:  + 33( 6 ) . 67 . 64 . 23 . 08
>>> _______________________________________________
>>> Mary-dev mailing list
>>> Mary-dev at dfki.de
>>> http://www.dfki.de/mailman/cgi-bin/listinfo/mary-dev
>>
>> --
>> Dr. Marc Schröder, Senior Researcher at DFKI GmbH
>> Project leader for DFKI in SSPNet http://sspnet.eu
>> Team Leader DFKI TTS Group http://mary.dfki.de
>> Editor W3C EmotionML Working Draft http://www.w3.org/TR/emotionml/
>> Portal Editor http://emotion-research.net
>>
>> Homepage: http://www.dfki.de/~schroed
>> Email: marc.schroeder at dfki.de
>> Phone: +49-681-85775-5303
>> Postal address: DFKI GmbH, Campus D3_2, Stuhlsatzenhausweg 3, D-66123
>> Saarbrücken, Germany
>> --
>> Official DFKI coordinates:
>> Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
>> Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany
>> Geschaeftsfuehrung:
>> Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
>> Dr. Walter Olthoff
>> Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
>> Amtsgericht Kaiserslautern, HRB 2313
>> _______________________________________________
>> Mary-dev mailing list
>> Mary-dev at dfki.de
>> http://www.dfki.de/mailman/cgi-bin/listinfo/mary-dev
>>
>
> _______________________________________________
> Mary-dev mailing list
> Mary-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/mary-dev

-- 
Dr. Marc Schröder, Senior Researcher at DFKI GmbH
Project leader for DFKI in SSPNet http://sspnet.eu
Team Leader DFKI TTS Group http://mary.dfki.de
Editor W3C EmotionML Working Draft http://www.w3.org/TR/emotionml/
Portal Editor http://emotion-research.net

Homepage: http://www.dfki.de/~schroed
Email: marc.schroeder at dfki.de
Phone: +49-681-85775-5303
Postal address: DFKI GmbH, Campus D3_2, Stuhlsatzenhausweg 3, D-66123 
Saarbrücken, Germany
--
Official DFKI coordinates:
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany
Geschaeftsfuehrung:
Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313


More information about the Mary-dev mailing list