Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail on training LTS #72

Closed
trangntt opened this issue Aug 14, 2012 · 13 comments
Closed

Fail on training LTS #72

trangntt opened this issue Aug 14, 2012 · 13 comments

Comments

@trangntt
Copy link

I met the following exception when try to training for Vietnamese language. Thanks in advanced for answer this issue.

java.lang.RuntimeException: couldn't train decisiontree using weka:
at marytts.tools.newlanguage.LTSTrainer.trainTree(LTSTrainer.java:240)
at marytts.tools.transcription.TranscriptionTable.trainLTS(TranscriptionTable.java:175)
at marytts.tools.transcription.TranscriptionTable.saveTranscription(TranscriptionTable.java:259)
at marytts.tools.transcription.TranscriptionGUI.saveToFileActionPerformed(TranscriptionGUI.java:598)
at marytts.tools.transcription.TranscriptionGUI.access$11(TranscriptionGUI.java:592)
at marytts.tools.transcription.TranscriptionGUI$11.actionPerformed(TranscriptionGUI.java:453)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
at javax.swing.AbstractButton.doClick(AbstractButton.java:337)
at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:778)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1645)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:670)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:678)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:678)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:649)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:254)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2920)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
at javax.swing.JComboBox.processKeyEvent(JComboBox.java:1397)
at java.awt.Component.processEvent(Component.java:6152)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4737)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1836)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
at java.awt.Component.dispatchEventImpl(Component.java:4609)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:657)
at java.awt.EventQueue$2.run(EventQueue.java:655)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: weka.core.UnsupportedAttributeTypeException: weka.classifiers.trees.j48.C45PruneableClassifierTreeWithUnary: Cannot handle multi-valued nominal class!
at weka.core.Capabilities.test(Capabilities.java:940)
at weka.core.Capabilities.test(Capabilities.java:1109)
at weka.core.Capabilities.test(Capabilities.java:1022)
at weka.core.Capabilities.testWithFail(Capabilities.java:1301)
at weka.classifiers.trees.j48.C45PruneableClassifierTree.buildClassifier(C45PruneableClassifierTree.java:120)
at marytts.tools.newlanguage.LTSTrainer.trainTree(LTSTrainer.java:233)
... 56 more

@psibre
Copy link
Member

psibre commented Aug 14, 2012

This sounds like something that the fix for #51 might have missed...

@ftesser: could you please have a look at this when you have time?

@ftesser
Copy link
Contributor

ftesser commented Aug 20, 2012

I can try to analyse the problem.

@trangntt Did the LTS training be OK before commit f5b1358?

@trangntt Could you please send me the your allophones.xml and a minimal set of your lexicon, so I can try to reproduce the problem?

@trangntt
Copy link
Author

Before commit f5b1358, I use another phoneset and it also fail. I have to use the version 4.3.1. But after commit f5b1358, the LTS training is OK with that phoneset.

Then I develop a new phoneset, it raised the above exception. Version 4.3.1 is fine.

How can I send you the phoneset & lexicon?

@psibre
Copy link
Member

psibre commented Aug 20, 2012

Attaching files to a github issue is unfortunately not easy (see, e.g., http://stackoverflow.com/q/10963205). I suppose one semi-official workaround is to create a public gist and link to it from here.

@trangntt If you don't mind releasing your Vietnamese code and contributing back to the marytts community (which would be greatly appreciated!), a nice solution would be to fork marytts on github, and push your language components (presumably a new module called marytts-lang-vi) to it. That way, we could access your files directly and help with the debugging.

@trangntt
Copy link
Author

I have committed as soon as I build successfully the component for Vietnamese language to Github, but when I tried to create a new branch, it always notifies "error: The requested URL returned error: 403 while accessing https://github.com/marytts/marytts.git/info/refs fatal: HTTP request failed (32768)"

@psibre
Copy link
Member

psibre commented Aug 20, 2012

@trangntt that's because only members of the marytts team have write access. The conventional github workflow is that you click on "fork" and create your personal copy (a.k.a. fork) which will appear as https://github.com/trangntt/marytts. You would clone that and push your local commits to it, and you can then make "pull requests", which the marytts team can merge into the main repository.

If you already have a clone of marytts/marytts as your origin, you should issue

git remote add upstream git://github.com/marytts/marytts.git
git remote rm origin
git remote add origin https://github.com/trangntt/marytts.git

For details, please refer to https://help.github.com/articles/fork-a-repo

@ftesser
Copy link
Contributor

ftesser commented Aug 23, 2012

@trangntt so with MARYTTS version 4.3.1 and your new phoneset the LTS traing was fine?
I can explore this issue as soon you make available the data on github.

@Munzey
Copy link
Collaborator

Munzey commented Jun 9, 2015

closing for inactivity

@Munzey Munzey closed this as completed Jun 9, 2015
@BibekBazaz
Copy link

@ftesser hello , did you solve the above problem? If yes please tell me how. I am building a tts for HINDI language and finding the same exception.

@ftesser
Copy link
Contributor

ftesser commented Apr 5, 2016

@BibekBazaz: I was not able to work into this issue because I was not able to reprocude the error.
I can try to work on it If you share your allophones.xml and a minimal set of your lexicon, so I can try to reproduce the problem.

@BibekBazaz
Copy link

i did solve the problem by following instructions given by another user.
However , thanks for replying.

On Tue, Apr 5, 2016 at 11:33 AM, ftesser notifications@github.com wrote:

@BibekBazaz https://github.com/BibekBazaz: I was not able to work into
this issue because I was not able to reprocude the error.
I can try to work on it If you share your allophones.xml and a minimal set
of your lexicon, so I can try to reproduce the problem.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#72 (comment)

@ZellNguyen
Copy link

@BibekBazaz: Hello, could you please tell me the solution for the problem? I found the same one.

@BibekBazaz
Copy link

Use a different version of mary and transcribe using that. Once
transcription is done bring back the output files and continue working with
the version you want to.
That worked in my case.

On Wed, Jun 29, 2016 at 12:37 AM, ZellNguyen notifications@github.com
wrote:

@BibekBazaz https://github.com/BibekBazaz: Hello, could you please tell
me the solution for the problem? I found the same one.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#72 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ANMDkBub44LXxZXdABoeHNmTy4NbaYMzks5qQXDwgaJpZM4AG7g0
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants