Package: johnsnowlabs-by-kshitiz
John Snow Labs: State-of-the-art NLP in PythonThe John Snow Labs library provides a simple & unified Python API for delivering enterprise-grade natural language processing solutions:15,000+ free NLP models in 250+ languages in one line of code. Production-grade, Scalable, trainable, and 100% open-source.Open-source libraries for Responsible AI (NLP Test), Explainable AI (NLP Display), and No-Code AI (NLP Lab).1,000+ healthcare NLP models and 1,000+ legal & finance NLP models with a John Snow Labs license subscription.Homepage:https://www.johnsnowlabs.com/Docs & Demos:https://nlp.johnsnowlabs.com/FeaturesPowered by John Snow Labs Enterprise-Grade Ecosystem:🚀Spark-NLP:  State of the art NLP at scale!🤖NLU: 1 line of code to conquer NLP!🕶Visual NLP: Empower your NLP with a set of eyes!💊Healthcare NLP:  Heal the world with NLP!⚖Legal NLP: Bring justice with NLP!💲Finance NLP: Understand Financial Markets with NLP!🎨NLP-DisplayVisualize and Explain NLP!📊NLP-Test: Deliver Reliable, Safe and Effective Models!🔬NLP-Lab: No-Code Tool to Annotate & Train new Models!Installation!pipinstalljohnsnowlabsfromjohnsnowlabsimportnlpnlp.load('emotion').predict('Wow that was easy!')Seethe documentationfor more details.UsageThese are examples of getting things done with one line of code.
See theGeneral Concepts Documentationfor building custom pipelines.# Example of Named Entity Recognitionnlp.load('ner').predict("Dr. John Snow is an British physician born in 1813")Returns :entitiesentities_classentities_confidenceJohn SnowPERSON0.9746BritishNORP0.99281813DATE0.5841# Example of Question Answeringnlp.load('answer_question').predict("What is the capital of Paris")Returns :textanswerWhat is the capital of FranceParis# Example of Sentiment classificationnlp.load('sentiment').predict("Well this was easy!")Returns :textsentiment_classsentiment_confidenceWell this was easy!pos0.999901nlp.load('ner').viz('Bill goes to New York')Returns:For a full overview see the1-liners Referenceandthe Workshop.Use Licensed ProductsTo use John Snow Labs' paid products likeHealthcare NLP, [Visual NLP], [Legal NLP], or [Finance NLP], get a license key and then call nlp.install() to use it:!pipinstalljohnsnowlabs# Install paid libraries via a browser login to connect to your accountfromjohnsnowlabsimportnlpnlp.install()# Start a licensed sessionnlp.start()nlp.load('en.med_ner.oncology_wip').predict("Woman is on  chemotherapy, carboplatin 300 mg/m2.")UsageThese are examples of getting things done with one line of code.
See theGeneral Concepts Documentationfor building custom pipelines.# visualize entity resolution ICD-10-CM codesnlp.load('en.resolve.icd10cm.augmented').viz('Patient with history of prior tobacco use, nausea, nose bleeding and chronic renal insufficiency.')returns:# Temporal Relationship Extraction&Visualizationnlp.load('relation.temporal_events')\.viz('The patient developed cancer after a mercury poisoning in 1999 ')returns:Helpful ResourcesTake a look at the official Johnsnowlabs page page:https://nlp.johnsnowlabs.comfor user documentation and examplesResourceDescriptionGeneral ConceptsGeneral concepts in the Johnsnowlabs libraryOverview of 1-linersMost common used models and their resultsOverview of 1-liners for healthcareMost common used healthcare models and their resultsOverview of all 1-liner Notebooks100+ tutorials on how to use the 1 liners on text datasets for various problems and from various sources like Twitter, Chinese News, Crypto News Headlines, Airline Traffic communication, Product review classifier training,Connect with us on SlackProblems, questions or suggestions? We have a  very active and helpful community of over 2000+ AI enthusiasts putting Johnsnowlabs products to good useDiscussion ForumMore indepth discussion with the community? Post a thread in our discussion ForumGithub IssuesReport a bugCustom InstallationCustom installations, Air-Gap mode and other alternativesThenlp.load(<Model>)functionLoad any model or pipeline in one line of codeThenlp.load(<Model>).predict(data)functionPredict onStrings,List of Strings,Numpy Arrays,Pandas,ModinandSpark DataframesThenlp.load(<train.Model>).fit(data)functionTrain a text classifier for2-Class,N-ClassesMulti-N-Classes,Named-Entitiy-RecognitionorParts of Speech TaggingThenlp.load(<Model>).viz(data)functionVisualize the results ofWord Embedding Similarity Matrix,Named Entity Recognizers,Dependency Trees & Parts of Speech,Entity Resolution,Entity LinkingorEntity Status AssertionThenlp.load(<Model>).viz_streamlit(data)functionDisplay an interactive GUI which lets you explore and test every model and feature in Johnsowlabs 1-liner repertoire in 1 click.LicenseThis library is licensed under theApache 2.0license.
John Snow Labs' paid products are subject to thisEnd User License Agreement.By calling nlp.install() to add them to your environment, you agree to its terms and conditions.