Giter Site home page Giter Site logo

Comments (8)

fracpete avatar fracpete commented on August 20, 2024

What Java version are you using? 16? If so, try using below 16, with 11 recommended.

from weka-3.8.

fringefilmsoz avatar fringefilmsoz commented on August 20, 2024

I have a suspicion this is an issue with the CSV file. It has a text field which contained a ' as in O'Brien.

from weka-3.8.

fracpete avatar fracpete commented on August 20, 2024

You can try the unofficial common-csv-weka-package instead of Weka's own CSVLoader for loading that CSV file.

from weka-3.8.

fringefilmsoz avatar fringefilmsoz commented on August 20, 2024

@fracpete I've installed. Do i run from simpleCLI like so?
image

from weka-3.8.

fracpete avatar fracpete commented on August 20, 2024

Personally, I'd use the loader in the Weka Explorer rather than in the SimpleCLI (makes it also easier to tweak options for the loader). The full classname is:

weka.core.converters.CommonCSVLoader <file.csv>

It's possible that you can also use partial classnames (not verified, I don't use the SimpleCLI):

.CommonCSVLoader <file.csv>

from weka-3.8.

fringefilmsoz avatar fringefilmsoz commented on August 20, 2024

Continue to receive errors on attempting to import a file.

These are very large files.

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: class javax.swing.plaf.basic.BasicFileChooserUI$AcceptAllFileFilter cannot be cast to class weka.gui.ExtensionFileFilterWithClass (javax.swing.plaf.basic.BasicFileChooserUI$AcceptAllFileFilter is in module java.desktop of loader 'bootstrap'; weka.gui.ExtensionFileFilterWithClass is in unnamed module of loader 'app')
weka.gui.ConverterFileChooser.configureCurrentConverter(ConverterFileChooser.java:743)
weka.gui.ConverterFileChooser.showOpenDialog(ConverterFileChooser.java:553)
weka.gui.explorer.PreprocessPanel.setInstancesFromFileQ(PreprocessPanel.java:1004)
weka.gui.explorer.PreprocessPanel$5.actionPerformed(PreprocessPanel.java:341)
java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
java.desktop/java.awt.Component.processEvent(Unknown Source)
java.desktop/java.awt.Container.processEvent(Unknown Source)
java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.desktop/java.awt.EventQueue$4.run(Unknown Source)
java.desktop/java.awt.EventQueue$4.run(Unknown Source)
java.base/java.security.AccessController.doPrivileged(Native Method)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.desktop/java.awt.EventQueue$5.run(Unknown Source)
java.desktop/java.awt.EventQueue$5.run(Unknown Source)
java.base/java.security.AccessController.doPrivileged(Native Method)
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

    at weka.gui.ConverterFileChooser.configureCurrentConverter(ConverterFileChooser.java:743)
    at weka.gui.ConverterFileChooser.showOpenDialog(ConverterFileChooser.java:553)
    at weka.gui.explorer.PreprocessPanel.setInstancesFromFileQ(PreprocessPanel.java:1004)
    at weka.gui.explorer.PreprocessPanel$5.actionPerformed(PreprocessPanel.java:341)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
    at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.Component.processEvent(Unknown Source)
    at java.desktop/java.awt.Container.processEvent(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

from weka-3.8.

fracpete avatar fracpete commented on August 20, 2024

I'm not sure why you are getting the java.lang.ClassCastException. Have you tried using the CSV loader directly from the terminal rather than the GUI? What version of Java are you using? I recommend using 11.

from weka-3.8.

fringefilmsoz avatar fringefilmsoz commented on August 20, 2024

I'm using the default Java that comes with the install, which the documentation indicates is JDK 11.

I'll try direct csv loading if i can work out the syntax.

from weka-3.8.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.