Skip to main content

John Snow Labs provides a library for delivering safe & effective NLP models.

Project description

NLP Test: Deliver Safe & Effective Language Models

Project's WebsiteKey FeaturesHow To UseCommunity SupportContributingMissionLicense

screenshot

Project's Website

Take a look at our official page for user documentation and examples: nlptest.org

Key Features

  • Generate & run over 50 test types with 1 line of code
  • Test all aspects of model quality: robustness, bias, representation, fairness and accuracy
  • Automatically augment training data based on test results (for select models)
  • Support for popular NLP frameworks: Spark NLP, Hugging Face Transformers, OpenAI, spaCy, Cohere, and many more
  • Support for popular NLP tasks: Question Answering, Text Classification & Named Entity Recognition

How To Use

# Install nlptest
!pip install nlptest

# Import and create a Harness object
from nlptest import Harness
h = Harness(task='ner', model='dslim/bert-base-NER', hub='huggingface')

# Generate test cases, run them and view a report
h.generate().run().report()

Note For more extended examples of usage and documentation, head over to nlptest.org

Community Support

  • Slack For live discussion with the NLP Test community, join the #nlptest channel
  • GitHub For bug reports, feature requests, and contributions
  • Discussions To engage with other community members, share ideas, and show off how you use NLP Test!

Mission

While there is a lot of talk about the need to train AI models that are safe, robust, and fair - few tools have been made available to data scientists to meet these goals. As a result, the front line of NLP models in production systems reflects a sorry state of affairs.

We propose here an early stage open-source community project that aims to fill this gap, and would love for you to join us on this mission. We aim to build on the foundation laid by previous research such as Ribeiro et al. (2020), Song et al. (2020), Parrish et al. (2021), van Aken et al. (2021) and many others.

John Snow Labs has a full development team allocated to the project and is committed to improving the library for years, as we do with other open-source libraries. Expect frequent releases with new test types, tasks, languages, and platforms to be added regularly. We look forward to working together to make safe, reliable, and responsible NLP an everyday reality.

Contributing

We welcome all sorts of contributions:

  • Ideas
  • Feedback
  • Documentation
  • Bug reports
  • Development and testing

Feel free to clone the repo and submit pull-requests! You can also contribute by simply opening an issue or discussion in this repo.

Contributors

We would like to acknowledge all contributors of this open-source community project.

License

NLP Test is released under the Apache License 2.0, which guarantees commercial use, modification, distribution, patent use, private use and sets limitations on trademark use, liability and warranty.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlptest-1.3.0.tar.gz (55.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlptest-1.3.0-py3-none-any.whl (56.0 MB view details)

Uploaded Python 3

File details

Details for the file nlptest-1.3.0.tar.gz.

File metadata

  • Download URL: nlptest-1.3.0.tar.gz
  • Upload date:
  • Size: 55.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nlptest-1.3.0.tar.gz
Algorithm Hash digest
SHA256 d4cfdc0b4c55c351b8bf752dc9ec2c6aaf09fd6ea1c58adee6f4931a54e0ca26
MD5 ba3943205ac79bd7a3f08fb850c45e92
BLAKE2b-256 5430528d4b7c844520abf0ffa8aaf38d63e7a193f3585ac9fd95df05ade6f6d9

See more details on using hashes here.

File details

Details for the file nlptest-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: nlptest-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 56.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nlptest-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe00ee25fce84d84fa528c819349a77d9d69abedb2479f7de9297f2e037c33a0
MD5 575b0026dc47d2eda010dd37e2ebf73f
BLAKE2b-256 553ac53d383cfdcaf62527b606e1ec448e8b3f571abc945186411e76d7131553

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page