johnsnowlabs-by-kshitiz


Namejohnsnowlabs-by-kshitiz JSON
Version 5.2.0rc3 PyPI version JSON
download
home_pagehttps://www.johnsnowlabs.com/
SummaryThe John Snow Labs Library gives you access to all of John Snow Labs Enterprise And Open Source products in an easy and simple manner. Access 10000+ state-of-the-art NLP and OCR models for Finance, Legal and Medical domains. Easily scalable to Spark Cluster
upload_time2024-02-09 08:38:40
maintainer
docs_urlNone
authorJohn Snow Labs
requires_python
license
keywords spark nlp ocr finance legal medical john snow labs
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # John Snow Labs: State-of-the-art NLP in Python

The John Snow Labs library provides a simple & unified Python API for delivering enterprise-grade natural language processing solutions:
1. 15,000+ free NLP models in 250+ languages in one line of code. Production-grade, Scalable, trainable, and 100% open-source.
2. Open-source libraries for Responsible AI (NLP Test), Explainable AI (NLP Display), and No-Code AI (NLP Lab).
3. 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/


## Features

Powered by John Snow Labs Enterprise-Grade Ecosystem:

- 🚀 [Spark-NLP](https://www.johnsnowlabs.com/spark-nlp/) :  State of the art NLP at scale!
- 🤖 [NLU](https://github.com/JohnSnowLabs/nlu) : 1 line of code to conquer NLP!
- 🕶 [Visual NLP](https://www.johnsnowlabs.com/visual-nlp/) : Empower your NLP with a set of eyes!
- 💊 [Healthcare NLP](https://www.johnsnowlabs.com/healthcare-nlp/) :  Heal the world with NLP!
- âš– [Legal NLP](https://www.johnsnowlabs.com/legal-nlp/) : Bring justice with NLP!
- 💲 [Finance NLP](https://www.johnsnowlabs.com/finance-nlp/) : Understand Financial Markets with NLP!
- 🎨 [NLP-Display](https://github.com/JohnSnowLabs/spark-nlp-display)  Visualize and Explain NLP!
- 📊 [NLP-Test](https://github.com/JohnSnowLabs/nlptest) : Deliver Reliable, Safe and Effective Models!
- 🔬 [NLP-Lab](https://www.johnsnowlabs.com/nlp-lab/) : No-Code Tool to Annotate & Train new Models!

## Installation

```python
! pip install johnsnowlabs

from johnsnowlabs import nlp
nlp.load('emotion').predict('Wow that was easy!')

```

See [the documentation](https://nlp.johnsnowlabs.com/docs/en/install) for more details.



## Usage

These are examples of getting things done with one line of code.
See the [General Concepts Documentation](https://nlp.johnsnowlabs.com/docs/en/concepts) for building custom pipelines.

```python
# Example of Named Entity Recognition
nlp.load('ner').predict("Dr. John Snow is an British physician born in 1813")
```

Returns :

| entities  | entities_class | entities_confidence | 
|-----------|----------------|:--------------------|
| John Snow | PERSON         | 0.9746              | 
| British   | NORP           | 0.9928              | 
| 1813      | DATE           | 0.5841              | 

```python
# Example of Question Answering 
nlp.load('answer_question').predict("What is the capital of Paris")
```

Returns :

| text                          | answer | 
|-------------------------------|--------|
| What is the capital of France | Paris  | 

```python
# Example of Sentiment classification
nlp.load('sentiment').predict("Well this was easy!")
```

Returns :

| text                | sentiment_class | sentiment_confidence | 
|---------------------|-----------------|:---------------------|
| Well this was easy! | pos             | 0.999901             | 


```python
nlp.load('ner').viz('Bill goes to New York')
```
Returns:    
![ner_viz_opensource](docs/assets/images/readme/ner_viz_opensource.png)
For a full overview see the [1-liners Reference](https://nlp.johnsnowlabs.com/docs/en/examples) and [the Workshop](https://github.com/JohnSnowLabs/spark-nlp-workshop).


## Use Licensed Products

To use John Snow Labs' paid products like [Healthcare NLP](https://www.johnsnowlabs.com/healthcare-nlp), [Visual NLP], [Legal NLP], or [Finance NLP], get a license key and then call nlp.install() to use it:



```python
! pip install johnsnowlabs
# Install paid libraries via a browser login to connect to your account
from johnsnowlabs import nlp
nlp.install()
# Start a licensed session
nlp.start()
nlp.load('en.med_ner.oncology_wip').predict("Woman is on  chemotherapy, carboplatin 300 mg/m2.")
```

## Usage 

These are examples of getting things done with one line of code.
See the [General Concepts Documentation](https://nlp.johnsnowlabs.com/docs/en/concepts) for building custom pipelines.


```python
# visualize entity resolution ICD-10-CM codes 
nlp.load('en.resolve.icd10cm.augmented')
    .viz('Patient with history of prior tobacco use, nausea, nose bleeding and chronic renal insufficiency.')
```
returns:        
![ner_viz_opensource](docs/assets/images/readme/ner_viz_oncology.png)



```python
# Temporal Relationship Extraction&Visualization
nlp.load('relation.temporal_events')\
    .viz('The patient developed cancer after a mercury poisoning in 1999 ')
```
returns:
![relationv_viz](docs/assets/images/readme/relationv_viz.png)

## Helpful Resources
Take a look at the official Johnsnowlabs page page: [https://nlp.johnsnowlabs.com](https://nlp.johnsnowlabs.com/)  for user documentation and examples


| Resource                                                                                                            |                                Description|
|----------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| [General Concepts](https://nlu.johnsnowlabs.com/docs/en/concepts)                                                    | General concepts in the Johnsnowlabs library
| [Overview of 1-liners](https://nlu.johnsnowlabs.com/docs/en/examples)                                                | Most common used models and their results
| [Overview of 1-liners for healthcare](https://nlu.johnsnowlabs.com/docs/en/examples_hc)                              | Most common used healthcare models and their results 
| [Overview of all 1-liner Notebooks](https://nlu.johnsnowlabs.com/docs/en/notebooks)                                  | 100+ 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 Slack](https://join.slack.com/t/spark-nlp/shared_invite/zt-lutct9gm-kuUazcyFKhuGY3_0AMkxqA)      | Problems, questions or suggestions? We have a  very active and helpful community of over 2000+ AI enthusiasts putting Johnsnowlabs products to good use
| [Discussion Forum](https://github.com/JohnSnowLabs/spark-nlp/discussions)                                            | More indepth discussion with the community? Post a thread in our discussion Forum
| [Github Issues](https://github.com/JohnSnowLabs/nlu/issues)                                                          | Report a bug
| [Custom Installation](https://nlu.johnsnowlabs.com/docs/en/install_advanced)                                         | Custom installations, Air-Gap mode and other alternatives   
| [The `nlp.load(<Model>)` function](https://nlu.johnsnowlabs.com/docs/en/load_api)                                    | Load any model or pipeline in one line of code
| [The `nlp.load(<Model>).predict(data)`  function](https://nlu.johnsnowlabs.com/docs/en/predict_api)                  | Predict on  `Strings`, `List of Strings`, `Numpy Arrays`, `Pandas`, `Modin` and  `Spark Dataframes`
| [The `nlp.load(<train.Model>).fit(data)`  function](https://nlu.johnsnowlabs.com/docs/en/training)                   | Train a text classifier for  `2-Class`, `N-Classes` `Multi-N-Classes`, `Named-Entitiy-Recognition` or `Parts of Speech Tagging`
| [The `nlp.load(<Model>).viz(data)`  function](https://nlu.johnsnowlabs.com/docs/en/viz_examples)                     | Visualize the results of `Word Embedding Similarity Matrix`, `Named Entity Recognizers`, `Dependency Trees & Parts of Speech`, `Entity Resolution`,`Entity Linking` or `Entity Status Assertion` 
| [The `nlp.load(<Model>).viz_streamlit(data)`  function](https://nlu.johnsnowlabs.com/docs/en/streamlit_viz_examples) | Display an interactive GUI which lets you explore and test every model and feature in Johnsowlabs 1-liner repertoire in 1 click.


## License
This library is licensed under the [Apache 2.0](https://github.com/JohnSnowLabs/johnsnowlabs/blob/main/LICENSE) license.
John Snow Labs' paid products are subject to this [End User License Agreement](https://www.johnsnowlabs.com/health-nlp-spark-ocr-libraries-eula/).        
By calling nlp.install() to add them to your environment, you agree to its terms and conditions.



            

Raw data

            {
    "_id": null,
    "home_page": "https://www.johnsnowlabs.com/",
    "name": "johnsnowlabs-by-kshitiz",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Spark NLP OCR Finance Legal Medical John Snow Labs",
    "author": "John Snow Labs",
    "author_email": "christian@johnsnowlabs.com",
    "download_url": "https://files.pythonhosted.org/packages/45/2d/bbd71d9f7e19203acfc8de9ed5c4f75cc566e3b983a34d1f97b27fa29bac/johnsnowlabs-by-kshitiz-5.2.0rc3.tar.gz",
    "platform": null,
    "description": "# John Snow Labs: State-of-the-art NLP in Python\n\nThe John Snow Labs library provides a simple & unified Python API for delivering enterprise-grade natural language processing solutions:\n1. 15,000+ free NLP models in 250+ languages in one line of code. Production-grade, Scalable, trainable, and 100% open-source.\n2. Open-source libraries for Responsible AI (NLP Test), Explainable AI (NLP Display), and No-Code AI (NLP Lab).\n3. 1,000+ healthcare NLP models and 1,000+ legal & finance NLP models with a John Snow Labs license subscription.\n\nHomepage: https://www.johnsnowlabs.com/\n\nDocs & Demos: https://nlp.johnsnowlabs.com/\n\n\n## Features\n\nPowered by John Snow Labs Enterprise-Grade Ecosystem:\n\n- \ud83d\ude80 [Spark-NLP](https://www.johnsnowlabs.com/spark-nlp/) :  State of the art NLP at scale!\n- \ud83e\udd16 [NLU](https://github.com/JohnSnowLabs/nlu) : 1 line of code to conquer NLP!\n- \ud83d\udd76 [Visual NLP](https://www.johnsnowlabs.com/visual-nlp/) : Empower your NLP with a set of eyes!\n- \ud83d\udc8a [Healthcare NLP](https://www.johnsnowlabs.com/healthcare-nlp/) :  Heal the world with NLP!\n- \u2696 [Legal NLP](https://www.johnsnowlabs.com/legal-nlp/) : Bring justice with NLP!\n- \ud83d\udcb2 [Finance NLP](https://www.johnsnowlabs.com/finance-nlp/) : Understand Financial Markets with NLP!\n- \ud83c\udfa8 [NLP-Display](https://github.com/JohnSnowLabs/spark-nlp-display)  Visualize and Explain NLP!\n- \ud83d\udcca [NLP-Test](https://github.com/JohnSnowLabs/nlptest) : Deliver Reliable, Safe and Effective Models!\n- \ud83d\udd2c [NLP-Lab](https://www.johnsnowlabs.com/nlp-lab/) : No-Code Tool to Annotate & Train new Models!\n\n## Installation\n\n```python\n! pip install johnsnowlabs\n\nfrom johnsnowlabs import nlp\nnlp.load('emotion').predict('Wow that was easy!')\n\n```\n\nSee [the documentation](https://nlp.johnsnowlabs.com/docs/en/install) for more details.\n\n\n\n## Usage\n\nThese are examples of getting things done with one line of code.\nSee the [General Concepts Documentation](https://nlp.johnsnowlabs.com/docs/en/concepts) for building custom pipelines.\n\n```python\n# Example of Named Entity Recognition\nnlp.load('ner').predict(\"Dr. John Snow is an British physician born in 1813\")\n```\n\nReturns :\n\n| entities  | entities_class | entities_confidence | \n|-----------|----------------|:--------------------|\n| John Snow | PERSON         | 0.9746              | \n| British   | NORP           | 0.9928              | \n| 1813      | DATE           | 0.5841              | \n\n```python\n# Example of Question Answering \nnlp.load('answer_question').predict(\"What is the capital of Paris\")\n```\n\nReturns :\n\n| text                          | answer | \n|-------------------------------|--------|\n| What is the capital of France | Paris  | \n\n```python\n# Example of Sentiment classification\nnlp.load('sentiment').predict(\"Well this was easy!\")\n```\n\nReturns :\n\n| text                | sentiment_class | sentiment_confidence | \n|---------------------|-----------------|:---------------------|\n| Well this was easy! | pos             | 0.999901             | \n\n\n```python\nnlp.load('ner').viz('Bill goes to New York')\n```\nReturns:    \n![ner_viz_opensource](docs/assets/images/readme/ner_viz_opensource.png)\nFor a full overview see the [1-liners Reference](https://nlp.johnsnowlabs.com/docs/en/examples) and [the Workshop](https://github.com/JohnSnowLabs/spark-nlp-workshop).\n\n\n## Use Licensed Products\n\nTo use John Snow Labs' paid products like [Healthcare NLP](https://www.johnsnowlabs.com/healthcare-nlp), [Visual NLP], [Legal NLP], or [Finance NLP], get a license key and then call nlp.install() to use it:\n\n\n\n```python\n! pip install johnsnowlabs\n# Install paid libraries via a browser login to connect to your account\nfrom johnsnowlabs import nlp\nnlp.install()\n# Start a licensed session\nnlp.start()\nnlp.load('en.med_ner.oncology_wip').predict(\"Woman is on  chemotherapy, carboplatin 300 mg/m2.\")\n```\n\n## Usage \n\nThese are examples of getting things done with one line of code.\nSee the [General Concepts Documentation](https://nlp.johnsnowlabs.com/docs/en/concepts) for building custom pipelines.\n\n\n```python\n# visualize entity resolution ICD-10-CM codes \nnlp.load('en.resolve.icd10cm.augmented')\n    .viz('Patient with history of prior tobacco use, nausea, nose bleeding and chronic renal insufficiency.')\n```\nreturns:        \n![ner_viz_opensource](docs/assets/images/readme/ner_viz_oncology.png)\n\n\n\n```python\n# Temporal Relationship Extraction&Visualization\nnlp.load('relation.temporal_events')\\\n    .viz('The patient developed cancer after a mercury poisoning in 1999 ')\n```\nreturns:\n![relationv_viz](docs/assets/images/readme/relationv_viz.png)\n\n## Helpful Resources\nTake a look at the official Johnsnowlabs page page: [https://nlp.johnsnowlabs.com](https://nlp.johnsnowlabs.com/)  for user documentation and examples\n\n\n| Resource                                                                                                            |                                Description|\n|----------------------------------------------------------------------------------------------------------------------|-------------------------------------------|\n| [General Concepts](https://nlu.johnsnowlabs.com/docs/en/concepts)                                                    | General concepts in the Johnsnowlabs library\n| [Overview of 1-liners](https://nlu.johnsnowlabs.com/docs/en/examples)                                                | Most common used models and their results\n| [Overview of 1-liners for healthcare](https://nlu.johnsnowlabs.com/docs/en/examples_hc)                              | Most common used healthcare models and their results \n| [Overview of all 1-liner Notebooks](https://nlu.johnsnowlabs.com/docs/en/notebooks)                                  | 100+ 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,\n| [Connect with us on Slack](https://join.slack.com/t/spark-nlp/shared_invite/zt-lutct9gm-kuUazcyFKhuGY3_0AMkxqA)      | Problems, questions or suggestions? We have a  very active and helpful community of over 2000+ AI enthusiasts putting Johnsnowlabs products to good use\n| [Discussion Forum](https://github.com/JohnSnowLabs/spark-nlp/discussions)                                            | More indepth discussion with the community? Post a thread in our discussion Forum\n| [Github Issues](https://github.com/JohnSnowLabs/nlu/issues)                                                          | Report a bug\n| [Custom Installation](https://nlu.johnsnowlabs.com/docs/en/install_advanced)                                         | Custom installations, Air-Gap mode and other alternatives   \n| [The `nlp.load(<Model>)` function](https://nlu.johnsnowlabs.com/docs/en/load_api)                                    | Load any model or pipeline in one line of code\n| [The `nlp.load(<Model>).predict(data)`  function](https://nlu.johnsnowlabs.com/docs/en/predict_api)                  | Predict on  `Strings`, `List of Strings`, `Numpy Arrays`, `Pandas`, `Modin` and  `Spark Dataframes`\n| [The `nlp.load(<train.Model>).fit(data)`  function](https://nlu.johnsnowlabs.com/docs/en/training)                   | Train a text classifier for  `2-Class`, `N-Classes` `Multi-N-Classes`, `Named-Entitiy-Recognition` or `Parts of Speech Tagging`\n| [The `nlp.load(<Model>).viz(data)`  function](https://nlu.johnsnowlabs.com/docs/en/viz_examples)                     | Visualize the results of `Word Embedding Similarity Matrix`, `Named Entity Recognizers`, `Dependency Trees & Parts of Speech`, `Entity Resolution`,`Entity Linking` or `Entity Status Assertion` \n| [The `nlp.load(<Model>).viz_streamlit(data)`  function](https://nlu.johnsnowlabs.com/docs/en/streamlit_viz_examples) | Display an interactive GUI which lets you explore and test every model and feature in Johnsowlabs 1-liner repertoire in 1 click.\n\n\n## License\nThis library is licensed under the [Apache 2.0](https://github.com/JohnSnowLabs/johnsnowlabs/blob/main/LICENSE) license.\nJohn Snow Labs' paid products are subject to this [End User License Agreement](https://www.johnsnowlabs.com/health-nlp-spark-ocr-libraries-eula/).        \nBy calling nlp.install() to add them to your environment, you agree to its terms and conditions.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "The John Snow Labs Library gives you access to all of John Snow Labs Enterprise And Open Source products in an easy and simple manner. Access 10000+ state-of-the-art NLP and OCR models for Finance, Legal and Medical domains. Easily scalable to Spark Cluster",
    "version": "5.2.0rc3",
    "project_urls": {
        "Homepage": "https://www.johnsnowlabs.com/"
    },
    "split_keywords": [
        "spark",
        "nlp",
        "ocr",
        "finance",
        "legal",
        "medical",
        "john",
        "snow",
        "labs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "096f1416c346ef2a8da3134db2434c4e27dfd6728e0c77773ae0a6beed40dbbd",
                "md5": "637fefe6f281206e7ea637b8ac8d6703",
                "sha256": "417d7b80b226047ad8955c11d0fcd8433815744e7980e3a783c42016107a174f"
            },
            "downloads": -1,
            "filename": "johnsnowlabs_by_kshitiz-5.2.0rc3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "637fefe6f281206e7ea637b8ac8d6703",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 123081,
            "upload_time": "2024-02-09T08:38:38",
            "upload_time_iso_8601": "2024-02-09T08:38:38.200164Z",
            "url": "https://files.pythonhosted.org/packages/09/6f/1416c346ef2a8da3134db2434c4e27dfd6728e0c77773ae0a6beed40dbbd/johnsnowlabs_by_kshitiz-5.2.0rc3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "452dbbd71d9f7e19203acfc8de9ed5c4f75cc566e3b983a34d1f97b27fa29bac",
                "md5": "2b1524131dcc6be6919acd4d0c4973cd",
                "sha256": "9ea0d81a7369f52f0f03a1336bb0f3cd4b06b9d1f5e8a9d23e096308d504c87f"
            },
            "downloads": -1,
            "filename": "johnsnowlabs-by-kshitiz-5.2.0rc3.tar.gz",
            "has_sig": false,
            "md5_digest": "2b1524131dcc6be6919acd4d0c4973cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 97949,
            "upload_time": "2024-02-09T08:38:40",
            "upload_time_iso_8601": "2024-02-09T08:38:40.836171Z",
            "url": "https://files.pythonhosted.org/packages/45/2d/bbd71d9f7e19203acfc8de9ed5c4f75cc566e3b983a34d1f97b27fa29bac/johnsnowlabs-by-kshitiz-5.2.0rc3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-09 08:38:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "johnsnowlabs-by-kshitiz"
}
        
Elapsed time: 0.20667s