GithubHelp home page GithubHelp logo

Comments (2)

LoLei avatar LoLei commented on August 16, 2024 1

I cannot reproduce this using your code on my system (Linux).

me@keyboard /tmp/spmf-test
$ ls -1
contextPrefixSpan.txt
spmf.jar
test.py
from spmf import Spmf
import pathlib

spmf_jar_dir = pathlib.Path(__file__).parent.absolute()

spmf = Spmf("PrefixSpan",
            input_filename="contextPrefixSpan.txt",
            spmf_bin_location_dir=spmf_jar_dir,
            output_filename="output.txt", arguments=[1, "", True])
spmf.run()
$ python3 test.py
>/tmp/spmf-test/spmf.jar
=============  PREFIXSPAN 0.99-2016 - STATISTICS =============
 Total time ~ 2 ms
 Frequent sequences count : 5
 Max memory (mb) : 8.822776794433594
 minsup = 4 sequences.
 Pattern count : 5
===================================================

A few ideas:

  • Can you try running the java command in your Windows command line?
    • (java -jar <your_path>spmf.jar run PrefixSpan contextPrefixSpan.txt output.txt 1 "" True)
    • This is the same command Python tries to execute in your code.
    • It might not be able to find your java executable, not the jar file.
  • You mention "spfm.jar". I hope that's just a typo here and your file isn't actually called that.

from spmf-py.

asaljalilvand avatar asaljalilvand commented on August 16, 2024 1

Hi,
the problem was the java executable, thank you for replying.

from spmf-py.

Related Issues (8)

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.