Meet our team at BioTechX Europe in Basel on the 9-10 October 2024, booth 724. Schedule a meeting with our team HERE.
was successfully added to your cart.

Installing Finance, Legal or Clinical NLP with one-liners!

Legal NLP and Finance NLP are built on the top of a new John Snow Labs library, called johnsnowlabs . If you are a former user of Spark NLP or Spark NLP for Healthcare, you will find this new way of deploying your Spark NLP clusters much more user-friendly!

Clinical NLP still can be run without johnsnowlabs library, although we highly recommend to install it with this new method.

Installing johnsnowlabs

The first step you need to carry out is installing johnsnowlabs library. This is as easy as doing:

!pip install johnsnowlabs

Installing Enterprise NLP (Finance, Legal, Clinical)

Import johnsnowlabs and use our one-liner nlp.install() to install all the dependencies, downloading the jars (yes, Spark NLP runs on top of the Java Virtual Machine!), preparing the cluster environment variables, licenses, etc!

from johnsnowlabs import *

nlp.install(force_browser=True)

The force_browser=True command gets rid of you uploading a license. It will open a popup to connect to our license server at my.johnsnowlabs.com retrieve the license for you, and install everything your license allows you to use!

If you are a user of Financial NLP, you will get that installed. If you are a Legal user, then natural language processing for legal documents will be installed! Everything will be taken care on your behalf!

Optional: Uploading the license manually

We still have the way of downloading manually the license, in case the connection with my.johnsnowlabs.com is not an option for you.

Just put your license json in the same folder of the notebook, and run:

nlp.install()

In collab, you can use the upload widget like this:

from google.colab import files
print('Please Upload your John Snow Labs License using the button below')
license_keys = files.upload()

And then do:

nlp.install()

Starting an Enterprise NLP cluster

Another one-liner can be used to start your Enterprise Spark NLP cluster:

spark = nlp.start()

It will take into account the previous steps and your license and return a Spark Session.

Ready to go!

And you are done! Simple, isn’t it?

Find hundred of notebooks using johnsnowlabs library here:

Finance NLP notebooks

Legal NLP notebooks

Clinical NLP notebooks

Fancy trying?

We’ve got 30-days free licenses for you with technical support from our team of technical and SMEs. Just go to https://www.johnsnowlabs.com/install/ and follow the instructions!

How useful was this post?

Try Clinical NLP

See in action
Our additional expert:
Juan Martinez is a Sr. Data Scientist, working at John Snow Labs since 2021. He graduated from Computer Engineering in 2006, and from that time on, his main focus of activity has been the application of Artificial Intelligence to texts and unstructured data. To better understand the intersection between Language and AI, he complemented his technical background with a Linguistics degree from Moscow Pushkin State Language Institute in 2012 and later on on University of Alcala (2014). He is part of the Healthcare Data Science team at John Snow Labs. His main activities are training and evaluation of Deep Learning, Semantic and Symbolic models within the Healthcare domain, benchmarking, research and team coordination tasks. His other areas of interest are Machine Learning operations and Infrastructure.

Finance NLP 1.7: Capital Calls, Customer Support, Broker Reports, Chinese Financial NER and more!

We are happy to announce the Finance NLP 1.7.0 is out. Finance NLP is a John Snow Lab’s product, launched 2022 to provide state-of-the-art,...
preloader