Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
6.0.2 source code.tar.gz | 2025-05-28 | 249.9 MB | |
6.0.2 source code.zip | 2025-05-28 | 430.4 MB | |
README.md | 2025-05-28 | 7.9 kB | |
Totals: 3 Items | 680.3 MB | 2 |
š¢ Spark NLP 6.0.2: Advancing Multimodal Capabilities and Streamlining Document Processing
We are thrilled to announce the release of Spark NLP 6.0.2! This version introduces powerful new multimodal models and significantly enhances document processing workflows. Upgrade to 6.0.2 to leverage these cutting-edge features and expand your NLP and vision task capabilities at scale.
Stay updated with our latest examples and tutorials by visiting our Medium - Spark NLP blog!
š„ Highlights
- Introducing InternVL: Support for the state-of-the-art
InternVLForMultiModal
model, enabling advanced visual question answering with InternVL 2, 2.5, and 3 series models. - Introducing Florence-2: Integration of Florence-2 in
Florance2Transformer
, a sophisticated vision foundation model for diverse prompt-based vision and vision-language tasks like captioning, object detection, and segmentation. - New Document Partitioning Feature: Added the
Partition
andPartitionTransformer
annotator for a unified and configurable interface with Spark NLP readers, simplifying unstructured data loading.
š New Features & Enhancements
Advanced Multimodal Model Integrations
This release significantly boosts Spark NLP's multimodal processing power with the integration of two new visual language models:
- InternVL:
InternVLForMultiModal
is a powerful multimodal large language model is specifically designed for visual question answering. This annotator is versatile, supporting the InternVL 2, 2.5, and 3 families of models, allowing users to tackle complex visual-linguistic tasks. (Link to notebook) - Florence-2: Introducing
Florance2Transformer
, an advanced vision foundation model. Florence-2 utilizes a prompt-based approach, enabling it to perform a wide array of vision and vision-language tasks. Users can leverage simple text prompts to execute tasks such as image captioning, object detection, and image segmentation with high accuracy. (Link to notebook)
Enhanced Unstructured Document Processing
- Partitioning Documents: This release introduces the new
Partition
andPartitionTransformer
annotator. Partition
provides a unified interface for extracting structured content from various document formats into Spark DataFrames. It supports input from files, URLs, in-memory strings, or byte arrays and handles formats such as text, HTML, Word, Excel, PowerPoint, emails, and PDFs. It automatically selects the appropriate reader based on file extension or MIME type and allows customization via parameters. (Link to notebook)- The
PartitionTransformer
annotator allows you to use thePartition
feature more smoothly within existing Spark NLP workflows, enabling seamless reuse of your pipelines.PartitionTransformer
can be used for extracting structured content from various document types using Spark NLP readers. It supports reading from files, URLs, in-memory strings, or byte arrays, and returns parsed output as a structured Spark DataFrame. (Link to notebook) - Key Improvements:
- Simplifies integration with Spark NLP readers through a unified interface.
- Adds flexibility by enabling more reader-specific configurations.
- Enhances the maintainability and scalability of data loading workflows.
š Bug Fixes
- Adjusted python type annotations for the
AutoGGUFModel
(#14576)
ā¤ļø Community Support
- Slack For live discussion with the Spark NLP community and the team
- GitHub Bug reports, feature requests, and contributions
- Discussions Engage with other community members, share ideas, and show off how you use Spark NLP!
- Medium Spark NLP articles
- JohnSnowLabs official Medium
- YouTube Spark NLP video tutorials
āļø Installation
Python
:::sh
#PyPI
pip install spark-nlp==6.0.2
Spark Packages
spark-nlp on Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, and 3.4.x (Scala 2.12):
:::sh
spark-shell --packages com.johnsnowlabs.nlp:spark-nlp_2.12:6.0.2
pyspark --packages com.johnsnowlabs.nlp:spark-nlp_2.12:6.0.2
GPU
:::sh
spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-gpu_2.12:6.0.2
pyspark --packages com.johnsnowlabs.nlp:spark-nlp-gpu_2.12:6.0.2
Apple Silicon
:::sh
spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-silicon_2.12:6.0.2
pyspark --packages com.johnsnowlabs.nlp:spark-nlp-silicon_2.12:6.0.2
AArch64
:::sh
spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-aarch64_2.12:6.0.2
pyspark --packages com.johnsnowlabs.nlp:spark-nlp-aarch64_2.12:6.0.2
Maven
spark-nlp on Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, and 3.4.x:
:::xml
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp_2.12</artifactId>
<version>6.0.2</version>
</dependency>
spark-nlp-gpu:
:::xml
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp-gpu_2.12</artifactId>
<version>6.0.2</version>
</dependency>
spark-nlp-silicon:
:::xml
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp-silicon_2.12</artifactId>
<version>6.0.2</version>
</dependency>
spark-nlp-aarch64:
:::xml
<dependency>
<groupId>com.johnsnowlabs.nlp</groupId>
<artifactId>spark-nlp-aarch64_2.12</artifactId>
<version>6.0.2</version>
</dependency>
FAT JARs
- CPU on Apache Spark 3.x/3.1.x/3.2.x/3.3.x/3.4.x: https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-assembly-6.0.2.jar
- GPU on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x/3.4.x: https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-gpu-assembly-6.0.2.jar
- M1 on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x/3.4.x: https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-silicon-assembly-6.0.2.jar
- AArch64 on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x/3.4.x: https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-aarch64-assembly-6.0.2.jar
What's Changed
- SparkNLP - 1123 Introducing InternVL [#14578] by @prabod
- Documentation for SparkNLP Readers and Partition class [#14581] by @paulamib123
- Sparknlp-1174 Adding Partitioning Documents Feature [#14579] by @danilojsl
- SparkNLP 1131 - Introducing Florance-2 [#14585] by @prabod
Full Changelog: https://github.com/JohnSnowLabs/spark-nlp/compare/6.0.1...6.0.2