-
Notifications
You must be signed in to change notification settings - Fork 859
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
Browserify compatibility? #189
Comments
I believe I managed to solve this and at least tokenization appears to be working.
Naturally WordNet will not be available, and presumably |
Great, thanks for figuring that out! there was some discussion in #25 about the size of the library. Maybe this will help out some of them. |
I tried suggestions in #25 but in vain. browserify creates a library but fs dependencies causes issues. Can someone help with the client side version of natural with classifier ? |
here is a client side version with most of the exports ~400kb before minifying; can use with var natural = require('natural'); https://gist.github.com/dspdog/105faa58bd8493c81f0b51bcc6046555 |
Hello, natural looks like a great library and I am investigating using it in the browser, via Browserify.
I noticed a couple of things:
WNdb
module consists of a (large ~10mb) blob of data, whilelapack
which is a native library, is being pulled in bysylvester
.My understanding is that
WNdb
is optional innatural
andlapack
is optional insylvester
(it uses detection to fallback on pure JS routines). It appears that the problem may be with Browserify attempting to eagerly retrieve these dynamic dependencies. I will pursue a remedy within Browserify and log this issue in case I find a workaround, but I am wondering in parallel whether first class browser/Browserify will be a goal for natural.The text was updated successfully, but these errors were encountered: