GithubHelp home page GithubHelp logo

fracpete / command-to-code-weka-package Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.61 MB

Weka package that converts command-lines into code snippets.

License: GNU General Public License v3.0

Java 100.00%
java weka plugin command-line

command-to-code-weka-package's Introduction

command-to-code-weka-package

Adds a menu item to the GUIChooser's main menu for converting command-lines into code snippets (under Extensions).

Available converters

  • Instantiation -- instantiates an object specified by the command-line and sets its options (if a weka.core.OptionHandler).
  • Instantiation (with TryCatch) -- same as Instantiation, but guards the setting of the options with a try-catch block.
  • Java String -- simply escapes the command-line and generates a statement using a String.
  • String Array -- fills a String array with the options from the command.
  • Test class -- generates a little test class that instantiates the command including the necessary imports.

Releases

Click on one of the following links to download the corresponding Weka package:

How to use packages

For more information on how to install the package, see:

https://waikato.github.io/weka-wiki/packages/manager/

Maven

Use the following dependency to include it in your Maven project:

    <dependency>
      <groupId>com.github.fracpete</groupId>
      <artifactId>command-to-code-weka-packae</artifactId>
      <version>2017.10.9</version>
    </dependency>

Code

You can use the following class (derived from javax.swing.JPanel) in your Swing GUI:

weka.gui.CommandToCodePanel

You can use a converter to generate code on the fly:

import weka.core.code.StringArray;
...
String cmd = "...";   // command from somewhere
StringArray conv = new StringArray();
if (conv.handles(cmd)) {
  String code = conv.convert(cmd);
  System.out.println(code);
}

command-to-code-weka-package's People

Contributors

fracpete avatar

Watchers

 avatar  avatar

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.