Comments (14)
Hello!
The answer is yes, is one of the ideas for the 3.0. In fact, the debate about using lerna and split in a monorepo, is with the objective of having small pieces that can be imported independently, and this will allow to target browser without having a huge impact in the size (all the dictionaries for sentiment analysis, and so on).
from nlp.js.
Hi @revolunet, yes, but is not needed in this case, we have already the tokenizers/stemmers.
I've it working in the browser in the branch https://github.com/axa-group/nlp.js/tree/feature/without_natural
The bundle is 3.8MB.
The CON: No chinese due to tokenize using novel-segment, and novel-segment is not browser compatible at all. this branch is WIP, I will look for a way of doing novel-segment browser compatible, and also organize the code.
But right now... it's working!!!!
At the root you'll find bundle.js and an example index.html
from nlp.js.
Hi @revolunet and welcome! I'm working on having Natural out of the equation, implementing the tokenizers and stemmers. As soon as I finish, we can try again, and I expect that it will be possible to generate a frontend ready version.
from nlp.js.
Hi, that's because is merged!
https://github.com/axa-group/nlp.js/tree/master/dist
There you have the dist (I detected that is not fully minimified... I have to know wht) and an index.html with an example.
And is published also so you can import it from node modules.
from nlp.js.
Well, I installed browserify and uglify-es globally: https://www.npmjs.com/package/uglify-es
then
browserify ./lib | uglifyjs > ./dist/bundle.js
from nlp.js.
The CON: No chinese due to tokenize using novel-segment, and novel-segment is not browser compatible at all. this branch is WIP, I will look for a way of doing novel-segment browser compatible, and also organize the code.
We are discussing how to make it browser compatible:
bluelovers/node-segment-dict#1
from nlp.js.
Thats great.
To some cases when dev with SPA apps made with with angular/react/vue, size is not such a problem!
from nlp.js.
tried to compile with browserify or webpack but there is still an issue with natural
+ memory-fs
.
the bundle size is around 3.5Mb
from nlp.js.
have you heard of https://github.com/Yomguithereal/talisman maybe ?
from nlp.js.
Hi,
Looks like the experimental branch is gone; is there a way to check it out to understand how far we are from browser support ?
from nlp.js.
Ho 😻, that's pretty awesome, thanks a lot !
How did you build this file ?
from nlp.js.
Would it be possible to "compute" the model on the server then just "consume" it on the client ?
from nlp.js.
Yes of course
from nlp.js.
Closing as it was solved
from nlp.js.
Related Issues (20)
- Is there a code example for reading a .txt or .pdf file by using bert
- ContextData can't be saved and loaded
- Can't run dockStart
- Do not remove dots from utterance in entity recognition HOT 1
- Not able to extract entities HOT 9
- @nlpjs/xtables depends on vulnerable version of xlsx HOT 3
- [QUESTION] How to change the NLP dock logger ? HOT 2
- Bug in extractor-enum.js with original text indexes HOT 1
- Critical dependency: the request of a dependency is an expression HOT 2
- Question - How to run Entity extraction HOT 5
- [Question] How to define epoch & loss threshold? HOT 1
- How to extract date when intent is "What date is today?" HOT 3
- Provide timezone to Duckling API HOT 4
- Is it possible to filter the detection of the intent by the entity type? HOT 1
- Amend sentiment.md HOT 3
- Error when process regex with group
- get score from 1 and not less
- Simple question: can NLP.js be used for the app I describe?
- Can we document nlpmanager options better?
- Is NLP.js still maintained? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nlp.js.