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

work in browser? #52

Closed
francescoagati opened this issue Apr 15, 2017 · 2 comments
Closed

work in browser? #52

francescoagati opened this issue Apr 15, 2017 · 2 comments

Comments

@francescoagati
Copy link

can limdu work in a browser?
i get this error inside webpack

ERROR Failed to compile with 10 errors 14:49:43

These dependencies were not found:

  • fs in C:/Users/franc/Documents/pror//limdu/classifiers/kNN/kNN.js, C:/Users/franc/Documents/pror//limdu/classifiers/svm/SvmPerf.js and 5 others
  • child_process in C:/Users/franc/Documents/pror//limdu/classifiers/svm/SvmPerf.js, C:/Users/franc/Documents/pror//limdu/classifiers/svm/SvmLinear.js and 1 other

To install them, you can run: npm install --save fs child_process

@erelsgl
Copy link
Owner

erelsgl commented Apr 18, 2017

Hi Francesco,
Most parts of limdu should work in browser. The exception is the SVM libraries, SvmLinear and SvmPerf, which depend on running a shell command using child_process. This is not possible to do from a browser.
It could be nice to have a version of limdu that does not contain these libraries so that it is possible to use it in a browser, but I am not sure how to do this. A pull-request is welcome.

@francescoagati
Copy link
Author

thanks,
i will try to study the code for make this pull request

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

2 participants