Skip to main content
Gain access to the johnsnowlabs ecosystem of enterprise NLP libraries with over 21.000 enterprise NLP models in over 200 languages with the open source johnsnowlabs library. For all 24.000+ models, see the John Snow Labs Model Models Hub

Installation and setup

To [install enterprise features](https://nlp.johnsnowlabs.com/docs/en/jsl/install_licensed_quick, run:
You can embed your queries and documents with either gpu,cpu,apple_silicon,aarch based optimized binaries. By default cpu binaries are used. Once a session is started, you must restart your notebook to switch between GPU or CPU, or changes will not take effect.

Embed query with CPU:

Embed query with GPU:

Embed query with apple silicon (M1,M2,etc..):

Embed query with AARCH:

Embed document with CPU:

Embed document with GPU:

Embed document with apple silicon (M1,M2,etc..):

Embed Document with AARCH:

Models are loaded with nlp.load and spark session is started with nlp.start() under the hood.