-1

I am executing the java version of Symbolic Aggregate Approximation technique which I downloaded from Github.

When I execute the same using command prompt as given in section 2.0 it's working well'

But when I change the parameters, like adding -a, -w, -p:

E:\Paper3>java -jar "jmotif-sax-1.1.2-SNAPSHOT-jar-with-dependencies.jar" -a 8 -d temp.csv -o out.txt -t 1 -w 28 -p 8

it results in the following error:

Exception in thread "main" java.lang.NumberFormatException: For input string: "-t"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.valueOf(Unknown Source)
    at net.seninp.jmotif.sax.SAXCLIConverter.main(SAXCLIConverter.java:89)
radoh
  • 4,554
  • 5
  • 30
  • 45
  • Possible duplicate of [What is a NumberFormatException and how can I fix it?](http://stackoverflow.com/questions/39849984/what-is-a-numberformatexception-and-how-can-i-fix-it) – xenteros Dec 05 '16 at 10:54
  • This will not solve your problem with that library. But if you want an alternative implementation, you can try the Java implementation of SAX provided in the SPMF data mining library: http://www.philippe-fournier-viger.com/spmf/ (I am the founder, by the way). – Phil Dec 18 '16 at 04:17
  • accidentally bumped in here, will look into this issue, seems like some CLI parameters logic went wrong -- would be better if you have created a ticket on Github right away... – seninp Oct 03 '17 at 17:58

2 Answers2

0

This looks like a bug. If there are more than 6 parameters passed to the command, it expects the 7th element to be an Integer, representing the number of threads:

    if (args.length > 6) {
      threadsNum = Integer.valueOf(args[6]);
    }

I'd suggest opening a ticket with that project.

Sébastien Le Callonnec
  • 26,254
  • 8
  • 67
  • 80
0

Sorry, forgot to update the CLI parameters treatment logic for threads number. Fixed as per last commit. Thanks for the bug report.

seninp
  • 712
  • 1
  • 6
  • 23