<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Maziyar Panahi on Medium]]></title>
        <description><![CDATA[Stories by Maziyar Panahi on Medium]]></description>
        <link>https://medium.com/@maziyar?source=rss-fe4b780b61e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kMUtKtMA1EGrhtnwdlDeuA@2x.jpeg</url>
            <title>Stories by Maziyar Panahi on Medium</title>
            <link>https://medium.com/@maziyar?source=rss-fe4b780b61e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:59:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maziyar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Unlocking Healthcare AI: I’m Releasing State-of-the-Art Medical Models for Free. Forever.]]></title>
            <link>https://maziyar.medium.com/unlocking-healthcare-ai-im-releasing-state-of-the-art-medical-models-for-free-forever-b2fa96265f39?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2fa96265f39</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[medical]]></category>
            <category><![CDATA[medicine]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 06:58:44 GMT</pubDate>
            <atom:updated>2025-07-22T06:58:44.005Z</atom:updated>
            <content:encoded><![CDATA[<h3>Say Hello to OpenMed: 380+ Free Medical NER Models</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RbvvAdEZLD0mJ3ioadxUyQ.png" /></figure><p>Healthcare AI has been stuck behind costly paywalls and closed systems for way too long. Researchers, doctors, and developers have had to deal with steep fees and mysterious “black-box” tools that slow things down. Now, <a href="https://huggingface.co/OpenMed">OpenMed</a> is shaking things up with over 380 top-notch Named Entity Recognition (NER) models for medical and clinical text all free and open under the Apache 2.0 license.</p><p>These models don’t just keep up with pricey commercial options, they beat them, offering great performance and easy access to speed up healthcare breakthroughs worldwide.</p><h3>The Issue: Locked-Up Healthcare AI</h3><p>Medical AI has some big roadblocks:</p><ul><li>Expensive Licenses: Small teams and universities can’t afford them.</li><li>Hidden Details: Commercial tools don’t show how they work.</li><li>Falling Behind: Many paid models aren’t keeping up with new tech.</li><li>Limited Reach: Only big players get the good stuff.</li></ul><p>This slows down research, clinical progress, and fair access to better healthcare.</p><h3>The Fix: OpenMed NER Models</h3><p>OpenMed brings 380+ free NER models to the table, ready to tackle all kinds of medical and clinical terms — like drug names, diseases, and more. Here’s what makes them stand out:</p><ul><li>✅ Totally Free: Open-source with the Apache 2.0 license.</li><li>✅ Ready to Roll: Built for real-world use right away.</li><li>✅ Flexible Sizes: From 109M to 568M parameters.</li><li>✅ Tested Tough: Checked against 13+ standard datasets.</li><li>✅ Plays Nice: Works smoothly with Hugging Face and PyTorch.</li></ul><p>These models tear down the old barriers, making healthcare AI open and useful for everyone.</p><h3>What’s in the OpenMed Toolbox?</h3><p>OpenMed’s 380+ models are fine-tuned and tested on 13 key medical datasets, delivering top results — like F1 scores up to 0.998. They come in different sizes, so whether you need something lightweight or super powerful, there’s a fit for you.</p><h3>🔬 Covering All Bases</h3><p>These models shine in tons of areas:</p><ul><li>Drugs &amp; Chemicals: Spot compounds for drug research or safety tracking.</li><li>Diseases &amp; Clinics: Pull out conditions for better diagnosis tools.</li><li>Genes &amp; Molecules: Dig into genomics and precision medicine.</li><li>Anatomy &amp; Terms: Boost medical records and coding.</li><li>Cancer Research: Power up oncology studies.</li></ul><p>They’re perfect for everything from research papers to hospital workflows.</p><h3>🎯 OpenMed (open-source) vs. the Big Shots (closed-source)</h3><p>DatasetOpenMed best F1 (%)Closed-source SOTA F1 (%)†Δ (OpenMed — SOTA)Current closed-source leaderBC4CHEMD95.4094.39+1.01Spark NLP BertForTokenClassificationBC5CDR-Chem96.1094.88+1.22Spark NLP BertForTokenClassificationBC5CDR-Disease91.2088.5+2.70BioMegatronNCBI-Disease91.1089.71+1.39BioBERTJNLPBA81.9082.00–0.10KeBioLM (knowledge-enhanced LM)Linnaeus96.5092.70+3.80BERN2 toolkitSpecies-80086.4082.59+3.81Spark NLP BertForTokenClassificationBC2GM90.1088.75+1.35Spark NLP Bi-LSTM-CNN-CharAnatEM90.6091.65–1.05Spark NLP BertForTokenClassificationBioNLP 2013 CG89.9087.83+2.07Spark NLP BertForTokenClassificationGellus99.8063.40+36.40ConNERCLL95.7085.98 — <em>(no published SOTA)</em>FSU96.10 — — <em>(no published SOTA)</em></p><p>† Closed-source scores are the highest peer-reviewed / leaderboard results found in the literature (typically commercial models for Spark NLP, NEEDLE, BERN2, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xv0OxGAWE5iyr_pG.png" /></figure><h3>🔬 By Domain</h3><p>This table maps datasets to their respective domains, highlighting recommended models based on top performance across each domain’s datasets.</p><p>DomainDatasets IncludedModels AvailableSize Range (Params)Recommended ModelPharmacologybc5cdr_chem, bc4chemd, fsu90 models109M - 568MOpenMed-NER-PharmaDetect-SuperClinical-434MDisease/Pathologybc5cdr_disease, ncbi_disease60 models109M - 434MOpenMed-NER-PathologyDetect-PubMed-v2-109MGenomicsjnlpba, bc2gm, species800, linnaeus, gellus150 models335M - 568MOpenMed-NER-GenomicDetect-SnowMed-568MAnatomyanatomy30 models560MOpenMed-NER-AnatomyDetect-ElectraMed-560MOncologybionlp2013_cg30 models355MOpenMed-NER-OncologyDetect-SuperMedical-355MClinical Notescll30 models560MOpenMed-NER-BloodCancerDetect-ElectraMed-560M</p><h3>⚡ Pick Your Size</h3><p>SizeParametersBest ForCompact109MQuick setupsLarge335M — 355MSolid accuracyXLarge434MGreat all-aroundXXLarge560M — 568MMax power</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qs-Y_3e47lAx32m_.png" /></figure><h3>📊 Top Models by Dataset</h3><p>Below is a summary of the top-performing model for each dataset, showcasing their F1 scores and sizes.</p><p>DatasetTop ModelF1 ScoreModel Size (Params)bc5cdr_chem<a href="https://huggingface.co/OpenMed/OpenMed-NER-PharmaDetect-SuperClinical-434M">OpenMed-NER-PharmaDetect-SuperClinical-434M</a>0.961434Mbionlp2013_cg<a href="https://huggingface.co/OpenMed/OpenMed-NER-OncologyDetect-SuperMedical-355M">OpenMed-NER-OncologyDetect-SuperMedical-355M</a>0.899355Mbc4chemd<a href="https://huggingface.co/OpenMed/OpenMed-NER-ChemicalDetect-PubMed-335M">OpenMed-NER-ChemicalDetect-PubMed-335M</a>0.954335Mlinnaeus<a href="https://huggingface.co/OpenMed/OpenMed-NER-SpeciesDetect-PubMed-335M">OpenMed-NER-SpeciesDetect-PubMed-335M</a>0.965335Mjnlpba<a href="https://huggingface.co/OpenMed/OpenMed-NER-DNADetect-SuperClinical-434M">OpenMed-NER-DNADetect-SuperClinical-434M</a>0.819434Mbc5cdr_disease<a href="https://huggingface.co/OpenMed/OpenMed-NER-DiseaseDetect-SuperClinical-434M">OpenMed-NER-DiseaseDetect-SuperClinical-434M</a>0.912434Mfsu<a href="https://huggingface.co/OpenMed/OpenMed-NER-ProteinDetect-SnowMed-568M">OpenMed-NER-ProteinDetect-SnowMed-568M</a>0.961568Mncbi_disease<a href="https://huggingface.co/OpenMed/OpenMed-NER-PathologyDetect-PubMed-v2-109M">OpenMed-NER-PathologyDetect-PubMed-v2-109M</a>0.911109Mbc2gm<a href="https://huggingface.co/OpenMed/OpenMed-NER-GenomeDetect-SuperClinical-434M">OpenMed-NER-GenomeDetect-SuperClinical-434M</a>0.901434Mcll<a href="https://huggingface.co/OpenMed/OpenMed-NER-BloodCancerDetect-ElectraMed-560M">OpenMed-NER-BloodCancerDetect-ElectraMed-560M</a>0.957560Mgellus<a href="https://huggingface.co/OpenMed/OpenMed-NER-GenomicDetect-SnowMed-568M">OpenMed-NER-GenomicDetect-SnowMed-568M</a>0.998568Manatomy<a href="https://huggingface.co/OpenMed/OpenMed-NER-AnatomyDetect-ElectraMed-560M">OpenMed-NER-AnatomyDetect-ElectraMed-560M</a>0.906560Mspecies800<a href="https://huggingface.co/OpenMed/OpenMed-NER-OrganismDetect-BioMed-335M">OpenMed-NER-OrganismDetect-BioMed-335M</a>0.864335M</p><p>This expanded overview provides a detailed snapshot of OpenMed’s model collection, emphasizing the breadth of dataset coverage, diversity in model sizes, and exceptional performance tailored to biomedical and clinical NER tasks.</p><h3>Try It Out: 3 Lines of Code</h3><p>Integrating OpenMed NER models is effortless with Hugging Face Transformers:</p><pre>from transformers import pipeline<br><br>ner_pipeline = pipeline(&quot;token-classification&quot;, model=&quot;OpenMed/OpenMed-NER-PharmaDetect-SuperClinical-434M&quot;, aggregation_strategy=&quot;simple&quot;)<br><br>text = &quot;Patient prescribed 10mg aspirin for hypertension.&quot;<br>entities = ner_pipeline(text)<br>print(entities)</pre><p>That’s it! You’ll spot “aspirin” as a chemical, just like that.</p><h3>Scaling for Large Datasets</h3><p>For processing large-scale datasets efficiently across CPUs or GPUs:</p><pre>from transformers.pipelines.pt_utils import KeyDataset<br>from datasets import Dataset<br>import pandas as pd<br><br># Load your data<br># Load a medical dataset from Hugging Face<br>from datasets import load_dataset<br># Load a public medical dataset (using a subset for testing)<br>medical_dataset = load_dataset(&quot;BI55/MedText&quot;, split=&quot;train[:100]&quot;)  # Load first 100 examples<br>data = pd.DataFrame({&quot;text&quot;: medical_dataset[&quot;Completion&quot;]})<br>dataset = Dataset.from_pandas(data)<br># Process with optimal batching for your hardware<br>batch_size = 16  # Tune this based on your GPU memory<br>results = []<br>for out in medical_ner_pipeline(KeyDataset(dataset, &quot;text&quot;), batch_size=batch_size):<br>    results.extend(out)<br>print(f&quot;Processed {len(results)} texts with batching&quot;)</pre><h3>Real-World Use Cases: NER in Healthcare</h3><p>Named Entity Recognition (NER) is a technology that extracts and categorizes key information — like names, dates, or medical terms — from unstructured text. In healthcare, where clinical notes, patient records, and research papers are often a jumble of free-form data, NER brings order to the chaos. Below, we explore how NER powers three vital tasks: De-Identification, Entity Relation Extraction, and HCC Coding, and why they’re essential in the medical world.</p><p>🔒 De-Identification: Safeguarding Patient Privacy</p><p>What it is: De-Identification strips personal health information (PHI) — think names, addresses, or Social Security numbers — from medical records. The goal? Make the data anonymous while keeping it useful. Why it matters: Patient privacy isn’t optional — it’s a legal and ethical must. Laws like HIPAA in the U.S. demand it. By using NER to automatically detect and mask PHI, healthcare providers and researchers can analyze data without risking breaches. It’s faster and more reliable than humans manually scrubbing records.</p><p>Impact: De-identified data fuels research and improves care, all while keeping patient identities safe.</p><p>🔗 Entity Relation Extraction: Mapping Medical Connections</p><p>What it is: This task identifies relationships between entities in text — like tying a drug to its side effects or a disease to its symptoms. NER first spots the entities; then, the relationships are pieced together. Why it matters: Seeing how things connect unlocks smarter healthcare. It builds knowledge graphs for clinical decision support, aids drug discovery, and tailors treatments to patients. Without this, critical links in medical data might stay buried.</p><p>Impact: Doctors make better calls, researchers find new insights, and patients get care that fits their unique needs.</p><p>💡 HCC Coding: Streamlining Costs and Care</p><p>What it is: Hierarchical Condition Category (HCC) coding assigns codes to diagnoses in patient records, helping payers like Medicare predict costs and set reimbursement rates. NER extracts conditions from notes to feed this process. Why it matters: Accurate coding ensures providers are paid fairly for treating complex cases. It also flags high-risk patients for proactive care. Manual coding is slow and error-prone — NER speeds it up and gets it right.</p><p>Impact: Healthcare systems save time, optimize budgets, and focus resources on those who need it most.</p><p>🌟 The Bigger Picture</p><p>NER isn’t just a tool, it’s a catalyst. By tackling these tasks, it:</p><p>Strengthens data security and compliance. Accelerates research with clean, usable datasets. Enhances patient outcomes through sharper insights. Cuts costs by automating tedious processes.</p><p>In healthcare, where every detail counts, NER turns raw text into real solutions.</p><h3>Jump In with OpenMed</h3><p>Join the OpenMed community on <a href="https://huggingface.co/OpenMed">Hugging Face</a> to stay in the loop and share ideas.</p><h3>Fair and Open</h3><ul><li>License: Apache 2.0 — use it, tweak it, share it.</li><li>Clear Info: Every model comes with a detailed card.</li></ul><h3>Wrapping Up</h3><p>OpenMed’s 380+ NER models bring top performance and zero cost together, opening up medical AI for everyone. Whether you’re researching, treating patients, or building tools, these models are here to help.</p><ul><li>🥇 Better Results: Outperforms big names by up to 36%.</li><li>🆓 No Charge: Fully free and open.</li><li>🚀 Easy Start: Works with tools you already use.</li><li>🌍 Team Effort: Join a growing community.</li></ul><p>Head to <a href="https://huggingface.co/OpenMed">huggingface.co/OpenMed</a> and start exploring. Let’s make healthcare smarter, together!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2fa96265f39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Spark NLP 6.0.0: A New Era for Universal Ingestion and Multimodal LLM Processing at Scale]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-6-0-0-a-new-era-for-universal-ingestion-and-multimodal-llm-processing-at-scale-9078ff5859b4?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9078ff5859b4</guid>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[qwen]]></category>
            <category><![CDATA[llama-cpp]]></category>
            <category><![CDATA[vision]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Mon, 28 Apr 2025 19:06:27 GMT</pubDate>
            <atom:updated>2025-04-28T19:12:55.577Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Raw Documents to Multimodal Insights at Enterprise Scale</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgxWmZirJREfZCzs90B9ZQ.png" /></figure><p>Spark NLP 6.0.0 marks a monumental shift — from being the leading NLP library to becoming the <strong>de facto platform for distributed LLM ingestion and multimodal processing</strong>.</p><p>In this release, we <strong>expand Spark NLP beyond text</strong>:</p><ul><li>Ingest <strong>PDFs, Excel files, PowerPoint presentations, and text logs</strong> natively into Spark pipelines.</li><li>Automatically extract structure, semantics, metadata — at scale, without writing a single line of parsing code.</li><li>Perform <strong>batch multimodal inference</strong> by running <strong>quantized Vision-Language Models (VLMs)</strong> like <strong>LLAVA</strong>, <strong>Phi-3 Vision</strong>, <strong>DeepSeek Janus</strong>, and <strong>Llama 3.2 Vision</strong> <strong>natively</strong> in Spark — no servers, no API bottlenecks.</li></ul><p>With Spark NLP 6.0.0, building <strong>enterprise-grade RAG</strong>, <strong>document understanding</strong>, <strong>compliance audits</strong>, and <strong>multimodal analytics pipelines</strong> becomes frictionless.</p><p>One unified framework. Text, vision, documents — at Spark scale.</p><h3>✨ Spotlight Feature: AutoGGUFVisionModel</h3><h3>Native Multimodal Inference with Llama.cpp</h3><p>Spark NLP 6.0.0 introduces the groundbreaking AutoGGUFVisionModel, enabling <strong>vision-language model inference inside DataFrames</strong> — directly through <strong>Llama.cpp</strong>.</p><p>You can now:</p><ul><li>Pass <strong>raw image bytes</strong> and <strong>captions</strong> into a multimodal LLM.</li><li>Generate <strong>descriptions</strong>, <strong>summaries</strong>, or <strong>visual Q&amp;A</strong> results.</li><li>Run fully <strong>on-premises</strong> at <strong>Spark-native scale</strong>.</li></ul><h3>Why it Matters</h3><ul><li>Unlock <strong>pure multimodal workflows</strong> with zero infrastructure setup.</li><li>Perform <strong>massive batch inference</strong> across product catalogs, document archives, compliance audits, and more.</li><li>Enjoy full control over inference parameters like topK, topP, temperature, and nPredict.</li></ul><h3>How it Works</h3><pre>documentAssembler = DocumentAssembler().setInputCol(&quot;caption&quot;).setOutputCol(&quot;caption_document&quot;)</pre><pre>imageAssembler = ImageAssembler().setInputCol(&quot;image&quot;).setOutputCol(&quot;image_assembler&quot;)</pre><pre>data = ImageAssembler.loadImagesAsBytes(spark, &quot;src/test/resources/image/&quot;)\<br>    .withColumn(&quot;caption&quot;, lit(&quot;Caption this image.&quot;))</pre><pre>model = AutoGGUFVisionModel.pretrained()\<br>    .setInputCols([&quot;caption_document&quot;, &quot;image_assembler&quot;])\<br>    .setOutputCol(&quot;completions&quot;)\<br>    .setBatchSize(4)\<br>    .setNPredict(40)\<br>    .setTopK(40)\<br>    .setTopP(0.95)\<br>    .setTemperature(0.05)</pre><pre>pipeline = Pipeline().setStages([documentAssembler, imageAssembler, model])<br>results = pipeline.fit(data).transform(data)</pre><pre>results.selectExpr(&quot;reverse(split(image.origin, &#39;/&#39;))[0] as image_name&quot;, &quot;completions.result&quot;).show(truncate=False)</pre><p>📚 <a href="https://github.com/DevinTDHa/spark-nlp/blob/feature/SPARKNLP-1079-AutoGGUFVisionModel/examples/python/llama.cpp/llama.cpp_in_Spark_NLP_AutoGGUFVisionModel.ipynb"><strong>Full notebook walkthrough available here</strong></a></p><h3>🔥 New Features and Enhancements</h3><h3>Universal Document Ingestion</h3><ul><li><strong>PDF Reader</strong>: Font-aware ingestion, page segmentation, encrypted file support.</li><li><strong>Excel Reader</strong>: Native .xls and .xlsx ingestion with multi-sheet support.</li><li><strong>PowerPoint Reader</strong>: Capture slides, speaker notes, themes, alt text.</li><li><strong>Text Reader</strong>: Load .txt, .csv, .log files at scale with encoding detection.</li></ul><h3>Multimodal &amp; Vision-Language Modeling</h3><ul><li><strong>AutoGGUFVisionModel</strong>: Native multimodal batch inference with Llama.cpp.</li><li><strong>DeepSeek Janus Integration</strong>: Advanced instruction-following across text and images.</li><li><strong>Qwen-2 Vision Language Models</strong>: Multilingual multimodal understanding.</li><li><strong>Phi-3.5 Vision</strong>: Lightweight visual reasoning models under 1 GB.</li><li><strong>LLAVA 1.5</strong>: Screenshot Q&amp;A, chart reading, UI testing in Spark.</li></ul><h3>Massive LLM Catalog Expansion</h3><ul><li><strong>Cohere Command-R Support</strong>: Up to 35B multilingual models natively.</li><li><strong>OLMo Family</strong>: Open-weight, reproducible LLMs tuned for academic and benchmark tasks.</li><li><strong>Multiple-Choice Heads</strong>: Lightweight heads for ALBERT, RoBERTa, XLM-RoBERTa.</li></ul><h3>Infrastructure Upgrades</h3><ul><li><strong>VisionEncoderDecoder Improvements</strong>: Full Scala/Python API parity.</li><li><strong>Better GGUF Error Reporting</strong>: Actionable fixes for model compatibility.</li></ul><h3>🐛 Key Bug Fixes</h3><ul><li>Clearer error messages for GGUF models.</li><li>Fixed MXBAI typo across notebooks.</li><li>Full alignment of VisionEncoderDecoder APIs between Scala and Python.</li><li>Smoothed variable naming across the entire codebase.</li></ul><h3>📝 Models, Models, and More Models</h3><p>Over <strong>110,000 new models and pipelines</strong> have been added — spanning <strong>230+ languages</strong>.<br>Explore them all on the <a href="https://sparknlp.org/models"><strong>Models Hub</strong></a>.</p><h3>❤️ Community Support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> — Chat with us live</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> — Report issues, suggest features</li><li><a href="https://medium.com/spark-nlp">Medium</a> — Articles and tutorials</li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> — Video walkthroughs</li></ul><h3>📦 Installation</h3><p><strong>PyPI</strong></p><pre>pip install spark-nlp==6.0.0</pre><p><strong>Spark Packages</strong></p><pre># CPU<br>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp_2.12:6.0.0</pre><pre># GPU<br>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-gpu_2.12:6.0.0</pre><pre># Apple Silicon (M1, M2)<br>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-silicon_2.12:6.0.0</pre><pre># AArch64<br>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-aarch64_2.12:6.0.0</pre><p><strong>FAT JARs</strong></p><ul><li><a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-assembly-6.0.0.jar">CPU Assembly JAR</a></li><li><a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-gpu-assembly-6.0.0.jar">GPU Assembly JAR</a></li><li><a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-silicon-assembly-6.0.0.jar">M1 Assembly JAR</a></li><li><a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-aarch64-assembly-6.0.0.jar">AArch64 Assembly JAR</a></li></ul><h3>🚀 Full Changelog</h3><p>Want even more detail? Dive into the <a href="https://github.com/JohnSnowLabs/spark-nlp/compare/5.5.3...6.0.0"><strong>full changelog</strong></a>.</p><h3>🌟 Final Words</h3><p>Spark NLP 6.0.0 is not just a version update — it is a <strong>complete evolution of the platform</strong>.</p><p>From <strong>text</strong>, to <strong>vision</strong>, to <strong>multimodal reasoning</strong> — <strong>at Spark scale</strong>, <strong>zero servers</strong>, <strong>maximum performance</strong>.</p><p>The future of distributed AI pipelines has arrived.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9078ff5859b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-6-0-0-a-new-era-for-universal-ingestion-and-multimodal-llm-processing-at-scale-9078ff5859b4">🚀 Spark NLP 6.0.0: A New Era for Universal Ingestion and Multimodal LLM Processing at Scale</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark NLP 5.5.0: Launching Llama.cpp Integration, Llama3, QWEN2, Phi-3, and 50,000 new models]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-5-5-0-6dd52fe0507a?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dd52fe0507a</guid>
            <category><![CDATA[llama-cpp]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[qwen-2]]></category>
            <category><![CDATA[llama-3]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 20:41:45 GMT</pubDate>
            <atom:updated>2024-09-25T20:44:05.844Z</atom:updated>
            <content:encoded><![CDATA[<h3>Spark NLP 5.5.0: Launching Llama.cpp Integration, Llama3, QWEN2, Phi-3, 50,000 new models, and many more!</h3><h3>Unlocking New Horizons with Llama.cpp Integration and More!</h3><p>We’re thrilled to announce the release of Spark NLP 5.5.0, a groundbreaking update that pushes the boundaries of natural language processing! This release is packed with exciting new features, optimizations, and integrations that will transform your NLP workflows. At the heart of this update is our game-changing integration with Llama.cpp, but that’s just the beginning of what’s in store!</p><h3>🌟 Spotlight Feature: Llama.cpp Integration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eAz9f3iIHgQ6fZiZ" /></figure><h3>Introducing Llama.cpp Integration: A New Era of Efficient Language Models!</h3><p>We’re proud to present the centerpiece of Spark NLP 5.5.0: the integration of Llama.cpp! This revolutionary addition brings unparalleled efficiency and performance to large language models within the Spark NLP ecosystem.</p><ul><li>Optimized Performance: Llama.cpp’s C/C++ implementation allows for blazing-fast inference on CPUs, making large language models more accessible than ever.</li><li>Reduced Memory Footprint: Enjoy the power of advanced language models with significantly lower RAM requirements.</li><li>Quantization Support: Take advantage of various quantization options to further optimize model size and speed without sacrificing quality.</li><li>Seamless Integration: Easily incorporate Llama.cpp models into your existing Spark NLP pipelines with our new AutoGGUFModel annotator.</li></ul><p>This integration opens up new possibilities for deploying state-of-the-art language models in resource-constrained environments, making advanced NLP capabilities available to a wider range of applications and users.</p><p>We extend our heartfelt thanks to all contributors who made this release possible. Your innovative ideas, code contributions, and feedback continue to drive Spark NLP forward. Our <a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> now contains over 83,000+ free and truly open-source models &amp; pipelines. 🎉</p><h3>🔥 New Features &amp; Enhancements</h3><h3>Introducing QWEN2Transformer</h3><p>We have added the QWEN2Transformer annotator, supporting the Qwen-2 model architecture known for its efficiency and performance in various NLP tasks like text generation and summarization.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14188">View Pull Request</a></p><h3>Introducing MiniCPM</h3><p>The MiniCPM annotator is now available, providing support for the MiniCPM model designed for efficient language modeling with smaller parameter sizes without compromising performance.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14205">View Pull Request</a></p><h3>Introducing NLLB (No Language Left Behind)</h3><p>We are excited to include the NLLB annotator, supporting No Language Left Behind models aimed at providing high-quality machine translation capabilities for a wide range of languages, especially low-resource languages.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14209">View Pull Request</a></p><h3>Implementing Nomic Embeddings</h3><p>Introducing support for Nomic Embeddings, which provide robust semantic representations for downstream tasks like clustering and classification.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14217">View Pull Request</a></p><h3>Snowflake Integration</h3><p>We have implemented integration with Snowflake, allowing seamless data transfer and processing between Spark NLP and Snowflake data warehouses.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14353">View Pull Request</a></p><h3>Introducing CamemBertForZeroShotClassification</h3><p>The CamemBertForZeroShotClassification annotator is now available, enabling zero-shot classification capabilities using the CamemBERT model, optimized for French language processing.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14354">View Pull Request</a></p><h3>Implementing MxBai Embeddings</h3><p>We have added support for MxBaiEmbeddings, providing embeddings from the MxBai model designed for multilingual text representation.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14355">View Pull Request</a></p><h3>ONNX Support for Vision Annotators</h3><p>We have extended ONNX support to our vision annotators, allowing for optimized and accelerated inference for image-related NLP tasks.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14356">View Pull Request</a></p><h3>OpenVINO and ONNX Support for Additional Annotators</h3><p>Building upon our commitment to performance optimization, we have added OpenVINO and ONNX support to several additional annotators, ensuring you can leverage hardware acceleration across a broader range of models.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14359">View Pull Request</a></p><h3>Introducing AlbertForZeroShotClassification</h3><p>We are excited to introduce the AlbertForZeroShotClassification annotator, bringing zero-shot classification capabilities using the ALBERT model known for its parameter efficiency and strong performance.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14361">View Pull Request</a></p><h3>Introducing Phi-3</h3><p>We have integrated Phi-3 models into Spark NLP, providing enhanced performance with high-efficiency quantization, supporting INT4 and INT8 quantization for CPUs via OpenVINO.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14373">View Pull Request</a></p><h3>Introducing StarCoder2 for Causal Language Modeling</h3><p>The StarCoder2 model is now supported for causal language modeling tasks, enabling advanced code generation and understanding capabilities.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14358">View Pull Request</a></p><h3>Introducing LLAMA 3</h3><p>Continuing our support for the latest in language modeling, we have introduced support for LLAMA 3, bringing the latest advancements in the LLaMA model series to Spark NLP.</p><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14379">View Pull Request</a></p><h3>🐛 Bug Fixes</h3><ul><li>OpenVINO Installation Instructions: Updated the installation instructions for OpenVINO to ensure a smoother setup process.</li></ul><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14382">View Pull Request</a></p><ul><li>Fixed Default Auto GGUF Pretrained Model: Addressed issues with the default auto GGUF pretrained model in the Llama.cpp integration.</li></ul><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14411">View Pull Requests</a>, <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14413">View Pull Request</a></p><ul><li>Updated Models Hub: Improved the Models Hub for better accessibility and search functionality.</li></ul><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14383">View Pull Requests</a>, <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14406">View Pull Request</a>, <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14416">View Pull Request</a></p><ul><li>Artifact Creation Optimization: Switched to using 7zip instead of vimtor/action-zip for creating artifacts to enhance compatibility and performance.</li></ul><p><a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14414">View Pull Request</a></p><h3>📦 Dependencies</h3><ul><li>Published New OpenVINO Artifacts: Built and published new OpenVINO artifacts for both CPU and GPU to enhance performance and compatibility.</li><li>Upgraded ONNX Runtime: Updated onnxruntime to the latest version for improved stability and performance on both CPU and GPU.</li></ul><h3>📝 Models</h3><p>We have added more than 50,000 new models and pipelines. The complete list of all 83,000+ models &amp; pipelines in 230+ languages is available on our <a href="https://sparknlp.org/models">Models Hub</a>.</p><h3>❤️ Community support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> For live discussion with the Spark NLP community and the team</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> Bug reports, feature requests, and contributions</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas,<br>and show off how you use Spark NLP!</li><li><a href="https://medium.com/spark-nlp">Medium</a> Spark NLP articles</li><li>JohnSnowLabs official <a href="https://medium.com/john-snow-labs">Medium</a></li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> Spark NLP video tutorials</li></ul><p>Full Release Notes: <a href="https://github.com/JohnSnowLabs/spark-nlp/releases/tag/5.5.0">https://github.com/JohnSnowLabs/spark-nlp/releases/tag/5.5.0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dd52fe0507a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-5-5-0-6dd52fe0507a">Spark NLP 5.5.0: Launching Llama.cpp Integration, Llama3, QWEN2, Phi-3, and 50,000 new models</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark NLP 5.3.0 is out!]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-5-3-0-is-out-28fc5e55447a?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/28fc5e55447a</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[llama-2]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Tue, 27 Feb 2024 14:18:46 GMT</pubDate>
            <atom:updated>2024-02-27T14:18:46.360Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing Llama-2 for CasualLM, M2M100 for Multilingual Translation, MPNet &amp; DeBERTa Enhancements, New Document Similarity Features, Expanded ONNX &amp; In-Memory Support, Updated Runtimes, Essential Bug Fixes, and More!</h3><h3>🎉 Celebrating 91 Million Downloads on PyPI — A Spark NLP Milestone! 🚀</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HuxmL8YjQT6G0AMe" /></figure><p>We’re thrilled to announce the release of Spark NLP 5.3.0, a monumental update that brings cutting-edge advancements and enhancements to the forefront of Natural Language Processing (NLP). This release underscores our commitment to providing the NLP community with state-of-the-art tools and models, furthering our mission to democratize NLP technologies.</p><p>This release also addresses critical bug fixes, enhancing the stability and reliability of Spark NLP. Fixes include Spark NLP configuration adjustments, score calculation corrections, input validation, notebook improvements, and serialization issues.</p><p>We invite the community to explore these new features and enhancements, and we look forward to seeing the innovative applications that Spark NLP 5.3.0 will enable. 🌟</p><h3>🔥 New Features &amp; Enhancements</h3><ul><li>Llama-2 Integration: We’re introducing Llama-2 along with models fine-tuned on this architecture, marking our first foray into CasualLM annotators in ONNX. This groundbreaking addition supports quantization in INT4 and INT8 for CPUs, optimizing performance and efficiency.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5Ass26QqS3wFcb-J" /></figure><blockquote><em>In this work, we develop and release Llama 2, a collection of pretrained and fine-tuned large language models (LLMs) ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama 2-Chat, are optimized for dialogue use cases. Our models outperform open-source chat models on most benchmarks we tested, and based on our human evaluations for helpfulness and safety, may be a suitable substitute for closed-source models. We provide a detailed description of our approach to fine-tuning and safety improvements of Llama 2-Chat in order to enable the community to build on our work and contribute to the responsible development of LLMs. — </em><a href="https://ai.meta.com/research/publications/llama-2-open-foundation-and-fine-tuned-chat-models/"><em>https://ai.meta.com/research/publications/llama-2-open-foundation-and-fine-tuned-chat-models/</em></a></blockquote><p>We have made LLAMA2Transformer annotator compatible with ONNX exports and quantizations:</p><ul><li>16 bit (CUDA only)</li><li>8 bit (CPU or CUDA)</li><li>4 bit (CPU or CIDA)</li></ul><p>As always, we made this feature super easy and scalable:</p><pre>doc_assembler = DocumentAssembler() \<br>    .setInputCol(&quot;text&quot;) \<br>    .setOutputCol(&quot;documents&quot;)</pre><pre>llama2 = LLAMA2Transformer \<br>    .pretrained() \<br>    .setMaxOutputLength(50) \<br>    .setDoSample(False) \<br>    .setInputCols([&quot;documents&quot;]) \<br>    .setOutputCol(&quot;generation&quot;)</pre><p>We will continue improving this annotator and import more models in the future</p><ul><li>Multilingual Translation with M2M100: The M2M100 model sets a new benchmark for multilingual translation, supporting direct translation across 9,900 language pairs from 100 languages. This feature represents a significant leap in breaking down language barriers in global communication.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EApHM9GYu1Jsie6Q" /></figure><blockquote><em>Existing work in translation demonstrated the potential of massively multilingual machine translation by training a single model able to translate between any pair of languages. However, much of this work is English-Centric by training only on data which was translated from or to English. While this is supported by large sources of training data, it does not reflect translation needs worldwide. In this work, we create a true Many-to-Many multilingual translation model that can translate directly between any pair of 100 languages. We build and open source a training dataset that covers thousands of language directions with supervised data, created through large-scale mining. Then, we explore how to effectively increase model capacity through a combination of dense scaling and language-specific sparse parameters to create high quality models. Our focus on non-English-Centric models brings gains of more than 10 BLEU when directly translating between non-English directions while performing competitively to the best single systems of WMT. We open-source our scripts so that others may reproduce the data, evaluation, and final M2M-100 model. — </em><a href="https://arxiv.org/pdf/2010.11125.pdf"><em>https://arxiv.org/pdf/2010.11125.pdf</em></a></blockquote><pre>m2m100 = M2M100Transformer.pretrained() \<br>    .setInputCols([&quot;documents&quot;]) \<br>    .setMaxOutputLength(50) \<br>    .setOutputCol(&quot;generation&quot;) \<br>    .setSrcLang(&quot;zh&quot;) \<br>    .setTgtLang(&quot;en&quot;)</pre><ul><li>Document Similarity and Retrieval: We’ve implemented a retrieval feature in our DocumentSimilarity annotator, offering an efficient and scalable solution for ranking documents based on similarity, ideal for retrieval-augmented generation (RAG) applications.</li></ul><pre>query = &quot;Florence in Italy, is among the most beautiful cities in Europe.&quot;</pre><pre>doc_similarity_ranker = DocumentSimilarityRankerApproach()\<br>    .setInputCols(&quot;sentence_embeddings&quot;)\<br>    .setOutputCol(&quot;doc_similarity_rankings&quot;)\<br>    .setSimilarityMethod(&quot;brp&quot;)\ # brp for BucketedRandomProjectionLSH and mh for MinHashLSH<br>    .setNumberOfNeighbours(3)\<br>    .setVisibleDistances(True)\<br>    .setIdentityRanking(True)\<br>    .asRetriever(query)</pre><ul><li>NEW: Introducing MPNetForSequenceClassification annotator for sequence classification tasks. This annotator is based on the MPNet architecture, enhances our capabilities in sequence classification tasks, offering more precise and context-aware processing.</li><li>NEW: Introducing MPNetForQuestionAnswering annotator for question answering tasks. This annotator is based on the MPNet architecture, enhances our capabilities in question answering tasks, offering more precise and context-aware processing.</li><li>NEW: Introducing a new DeBertaForZeroShotClassification annotator, leveraging the DeBERTa architecture, introduces sophisticated zero-shot classification capabilities, enabling the classification of text into predefined classes without direct example training.</li><li>NEW: Add support for in-memory use of WordEmbeddingsModel annotator in serverless clusters. We initially introduced the in-memory feature for this annotator for users inside Kubernetes clusters without any HDFS. However, today it runs without any issue locally, on Google Colab, Kaggle, Databricks, AWS EMR, GCP, and AWS Glue.</li><li>Add ONNX support for BertForZeroShotClassification annotator</li><li>Introduce new Whisper Large and Distil models.</li><li>Support new Databricks Runtimes of 14.2, 14.3, 14.2 ML, 14.3 ML, 14.2 GPU, and 14.3 GPU.</li><li>Support new EMR versions 6.15.0 and 7.0.0.</li><li>Add a notebook to fine-tune a BERT for Sentence Embeddings in Hugging Face and import it into Spark NLP.</li><li>Add a notebook to import BERT for Zero-Shot classification from Hugging Face.</li><li>Add a notebook to import DeBERTa for Zero-Shot classification from Hugging Face.</li><li>Update EntityRuler documentation.</li><li>Improve SBT project and resolve warnings (almost!).</li><li>Update ONNX Runtime to 1.17.0 to enjoy the following features in upcoming releases.</li></ul><h3>🐛 Bug Fixes</h3><ul><li>Fix Spark NLP Configuration to set cluster_tmp_dir on Databricks&#39; DBFS via spark.jsl.settings.storage.cluster_tmp_dir<a href="https://github.com/JohnSnowLabs/spark-nlp/issues/14129">Spark NLP Configuration&#39;s spark.jsl.settings.storage.cluster_tmp_dir: Databricks DBFS location does not work #14129</a></li><li>Fix score calculation in RoBertaForQuestionAnswering annotator <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14147">SPARKNLP-942: MPNet Classifiers #14147</a></li><li>Fix optional input col validations <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14153">[SPARKNLP-986] Fixing optional input col validations #14153</a></li><li>Fix notebooks for importing DeBERTa classifiers <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14154">[SPARKNLP-984] Fixing Deberta notebooks URIs #14154</a></li><li>Fix GPT2 deserialization over the cluster (Databricks) <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/14177">SPARKNLP-1000: Fix No Operation named [init_all_tables] for GPT2 #14177</a></li></ul><h3>ℹ️ Known Issues</h3><ul><li>Llama-2, M2M100, and Whisper Large do not work in a cluster. We are working on how best share these large models over a cluster and will provide a fix in the future releases</li><li>Previously some ONNX models did not work on CUDA 12.x as we have <a href="https://github.com/microsoft/onnxruntime/issues/19137">reported this problem</a> — We have not tested this yet, but it should be resolved in <a href="https://github.com/microsoft/onnxruntime/releases/tag/v1.17.0">onnxruntime 1.17.0</a> in Spark NLP 5.3.0</li></ul><h3>💾 Models</h3><h3>The complete list of all 37000+ models &amp; pipelines in 230+ languages is available on <a href="https://sparknlp.org/models">Models Hub</a></h3><h3>📓 New Notebooks</h3><ul><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import Transformers in Spark NLP</a></li><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Examples</a> for 100+ examples</li></ul><h3>📖 Documentation</h3><ul><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import models from TF Hub &amp; HuggingFace</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Notebooks</a></li><li><a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> with new models</li><li><a href="https://medium.com/spark-nlp">Spark NLP Articles</a></li><li><a href="https://nlp.johnsnowlabs.com/demo">Spark NLP in Action</a></li><li><a href="https://nlp.johnsnowlabs.com/docs/en/quickstart">Spark NLP Documentation</a></li><li><a href="https://nlp.johnsnowlabs.com/api">Spark NLP Scala APIs</a></li><li><a href="https://nlp.johnsnowlabs.com/api/python">Spark NLP Python APIs</a></li></ul><h3>❤️ Community support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> For live discussion with the Spark NLP community and the team</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> Bug reports, feature requests, and contributions</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas,<br>and show off how you use Spark NLP!</li><li><a href="https://medium.com/spark-nlp">Medium</a> Spark NLP articles</li><li>JohnSnowLabs official <a href="https://medium.com/john-snow-labs">Medium</a></li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> Spark NLP video tutorials</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28fc5e55447a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-5-3-0-is-out-28fc5e55447a">Spark NLP 5.3.0 is out!</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark NLP 5.2.0: Zero-Shot Image Classification by CLIP]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-5-2-0-zero-shot-image-classification-by-clip-b225c0504f04?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b225c0504f04</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[image]]></category>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[onnx]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 18:39:22 GMT</pubDate>
            <atom:updated>2023-12-28T18:39:22.253Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing a Zero-Shot Image Classification by CLIP, ONNX support for T5, Marian, and CamemBERT, a new Text Splitter annotator, Over 8000 state-of-the-art Transformer Models in ONNX, bug fixes, and more!</h3><h3>🎉 Celebrating 80 Million Downloads on PyPI — A Spark NLP Milestone! 🚀</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O5HgIP2-CpZbiPZE" /></figure><p>We are thrilled to announce that Spark NLP has reached a remarkable milestone of 80 million downloads on PyPI! This achievement is a testament to the strength and dedication of our community.</p><p>A heartfelt thank you to each and every one of you who has contributed, used, and supported Spark NLP. Your invaluable feedback, contributions, and enthusiasm have played a crucial role in evolving Spark NLP into an award-winning, production-ready, and scalable open-source NLP library.</p><p>As we celebrate this milestone, we’re also excited to announce the release of Spark NLP 5.2.0! This new version marks another step forward in our journey, new features, improved performance, bug fixes, and extending our Models Hub to 30,000 open-source and forever free models with 8000 new state-of-the-art language models in 5.2.0 release.</p><p>Here’s to many more milestones, breakthroughs, and advancements! 🌟</p><h3>🔥 New Features &amp; Enhancements</h3><ul><li>NEW: Introducing the CLIPForZeroShotClassification for Zero-Shot Image Classification using OpenAI&#39;s CLIP models. CLIP is a state-of-the-art computer vision designed to recognize a specific, pre-defined group of object categories. CLIP is a multi-modal vision and language model. It can be used for Zero-Shot image classification. To achieve this, CLIP utilizes a Vision Transformer (ViT) to extract visual attributes and a causal language model to process text features. These features from both text and images are then mapped to a common latent space having the same dimensions. The similarity score is calculated using the dot product of the projected image and text features in this space.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xXn6UXaoCXUl-9za" /></figure><blockquote><em>CLIP (Contrastive Language–Image Pre-training) builds on a large body of work on zero-shot transfer, natural language supervision, and multimodal learning. The idea of zero-data learning dates back over a decade but until recently was mostly studied in computer vision as a way of generalizing to unseen object categories. A critical insight was to leverage natural language as a flexible prediction space to enable generalization and transfer. In 2013, Richer Socher and co-authors at Stanford developed a proof of concept by training a model on CIFAR-10 to make predictions in a word vector embedding space and showed this model could predict two unseen classes. The same year DeVISE scaled this approach and demonstrated that it was possible to fine-tune an ImageNet model so that it could generalize to correctly predicting objects outside the original 1000 training set. — </em><a href="https://openai.com/research/clip"><em>CLIP: Connecting text and images</em></a></blockquote><p>As always, we made this feature super easy and scalable:</p><pre>image_assembler = ImageAssembler() \<br>    .setInputCol(&quot;image&quot;) \<br>    .setOutputCol(&quot;image_assembler&quot;)</pre><pre>labels = [<br>    &quot;a photo of a bird&quot;,<br>    &quot;a photo of a cat&quot;,<br>    &quot;a photo of a dog&quot;,<br>    &quot;a photo of a hen&quot;,<br>    &quot;a photo of a hippo&quot;,<br>    &quot;a photo of a room&quot;,<br>    &quot;a photo of a tractor&quot;,<br>    &quot;a photo of an ostrich&quot;,<br>    &quot;a photo of an ox&quot;,<br>]</pre><pre>image_captioning = CLIPForZeroShotClassification \<br>    .pretrained() \<br>    .setInputCols([&quot;image_assembler&quot;]) \<br>    .setOutputCol(&quot;label&quot;) \<br>    .setCandidateLabels(labels)</pre><ul><li>NEW: Introducing the DocumentTokenSplitter which allows users to split large documents into smaller chunks to be used in RAG with LLM models</li><li>NEW: Introducing support for ONNX Runtime in T5Transformer annotator</li><li>NEW: Introducing support for ONNX Runtime in MarianTransformer annotator</li><li>NEW: Introducing support for ONNX Runtime in BertSentenceEmbeddings annotator</li><li>NEW: Introducing support for ONNX Runtime in XlmRoBertaSentenceEmbeddings annotator</li><li>NEW: Introducing support for ONNX Runtime in CamemBertForQuestionAnswering, CamemBertForTokenClassification, and CamemBertForSequenceClassification annotators</li><li>Adding a caching support for newly imported T5 models in TF format to improve the performance to be competitive to ONNX version</li><li>Refactor ZIP utility and add new tests for both ZipArchiveUtil and OnnxWrapper thanks to <a href="https://github.com/anqini">@anqini</a></li><li>Refactor ONNX and add OnnxSession to broadcast to improve stability in some cluster setups</li><li>Update ONNX Runtime to 1.16.3 to enjoy the following features in upcoming releases:</li><li>Support for serialization of models &gt;=2GB</li><li>Support for fp16 and bf16 tensors as inputs and outputs</li><li>Improve LLM quantization accuracy with smoothquant</li><li>Support 4-bit quantization on CPU</li><li>Optimize BeamScore to improve BeamSearch performance</li><li>Add FlashAttention v2 support for Attention, MultiHeadAttention and PackedMultiHeadAttention ops</li></ul><h3>🐛 Bug Fixes</h3><ul><li>Fix random dimension mismatch in E5Embeddings and MPNetEmbeddings due to a missing average_pool after last_hidden_state in the output</li><li>Fix batching exception in E5 and MPNet embeddings annotators failing when sentence is used instead of document</li><li>Fix chunk construction when an entity is found</li><li>Fix a bug in library’s version in Scala where it was pointing to 5.1.2 wrongly</li><li>Fix Whisper models not downloading due to wrong library’s version</li><li>Fix and refactor saving best model based on given metrics during NerDL training</li></ul><h3>ℹ️ Known Issues</h3><ul><li>Some annotators are not yet compatible with Apache Spark and PySpark 3.5.x release. Due to this, we have changed the support matrix for Spark/PySpark 3.5.x to Partially until we are 100% compatible.</li></ul><h3>💾 Models</h3><p>Spark NLP 5.2.0 comes with more than 8000+ new state-of-the-art pretrained transformer models in multi-languages.</p><h3>The complete list of all 30000+ models &amp; pipelines in 230+ languages is available on <a href="https://sparknlp.org/models">Models Hub</a></h3><h3>📓 New Notebooks</h3><ul><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import Transformers in Spark NLP</a></li><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Examples</a> for 100+ examples</li></ul><h3>📖 Documentation</h3><ul><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import models from TF Hub &amp; HuggingFace</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Notebooks</a></li><li><a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> with new models</li><li><a href="https://medium.com/spark-nlp">Spark NLP Articles</a></li><li><a href="https://nlp.johnsnowlabs.com/demo">Spark NLP in Action</a></li><li><a href="https://nlp.johnsnowlabs.com/docs/en/quickstart">Spark NLP Documentation</a></li><li><a href="https://nlp.johnsnowlabs.com/api">Spark NLP Scala APIs</a></li><li><a href="https://nlp.johnsnowlabs.com/api/python">Spark NLP Python APIs</a></li></ul><h3>❤️ Community support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> For live discussion with the Spark NLP community and the team</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> Bug reports, feature requests, and contributions</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas,<br>and show off how you use Spark NLP!</li><li><a href="https://medium.com/spark-nlp">Medium</a> Spark NLP articles</li><li>JohnSnowLabs official <a href="https://medium.com/john-snow-labs">Medium</a></li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> Spark NLP video tutorials</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b225c0504f04" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-5-2-0-zero-shot-image-classification-by-clip-b225c0504f04">Spark NLP 5.2.0: Zero-Shot Image Classification by CLIP</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark NLP 5.1.1: ONNX support for more features!]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-5-1-1-onnx-support-for-more-features-cef9c58a1d2d?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/cef9c58a1d2d</guid>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[onnx]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 07:57:19 GMT</pubDate>
            <atom:updated>2023-09-15T08:01:06.554Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing ONNX Support for MPNet, AlbertForTokenClassification, AlbertForSequenceClassification, AlbertForQuestionAnswering transformers, access to full vectors in Word2VecModel, Doc2VecModel, WordEmbeddingsModel annotators, 460+ new ONNX models, and bug fixes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lggKgXvUJsiMcVfG9vLNUQ.png" /><figcaption><a href="https://paperswithcode.com/method/mpnet">https://paperswithcode.com/method/mpnet</a></figcaption></figure><h3>📢 Overview</h3><p>Spark NLP 5.1.1 🚀 comes with new ONNX support for MPNet, AlbertForTokenClassification, AlbertForSequenceClassification, and AlbertForQuestionAnswering annotators, a new getVectors feature in Word2VecModel, Doc2VecModel, and WordEmbeddingsModel annotators, 460+ new ONNX models for MPNet and BERT transformers, and bug fixes!</p><p>We want to thank our community for their valuable feedback, feature requests, and contributions. Our <a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> now contains over 18,800+ free and truly open-source models &amp; pipelines. 🎉</p><h3>🔥 New Features &amp; Enhancements</h3><ul><li>NEW: Introducing support for ONNX Runtime in MPNet embedding annotator</li><li>NEW: Introducing support for ONNX Runtime in AlbertForTokenClassification annotator</li><li>NEW: Introducing support for ONNX Runtime in AlbertForSequenceClassification annotator</li><li>NEW: Introducing support for ONNX Runtime in AlbertForQuestionAnswering annotator</li><li>Implement getVectors feature in Word2VecModel, Doc2VecModel, and WordEmbeddingsModel annotators. This new feature allows access to the entire tokens and their vectors from the loaded models.</li></ul><h3>🐛 Bug Fixes</h3><ul><li>Fix how to save and load Whisper models</li><li>Fix saving ONNX model on Windows operating system</li></ul><h3>📖 Documentation</h3><ul><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import models from TF Hub &amp; HuggingFace</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Notebooks</a></li><li><a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> with new models</li><li><a href="https://medium.com/spark-nlp">Spark NLP Articles</a></li><li><a href="https://nlp.johnsnowlabs.com/demo">Spark NLP in Action</a></li><li><a href="https://nlp.johnsnowlabs.com/docs/en/quickstart">Spark NLP Documentation</a></li><li><a href="https://nlp.johnsnowlabs.com/api">Spark NLP Scala APIs</a></li><li><a href="https://nlp.johnsnowlabs.com/api/python">Spark NLP Python APIs</a></li></ul><h3>❤️ Community support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> For live discussion with the Spark NLP community and the team</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> Bug reports, feature requests, and contributions</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas, and show off how you use Spark NLP!</li><li><a href="https://medium.com/spark-nlp">Medium</a> Spark NLP articles</li><li>JohnSnowLabs official <a href="https://medium.com/john-snow-labs">Medium</a></li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> Spark NLP video tutorials</li></ul><h3>Installation</h3><p>Python</p><pre>#PyPI</pre><pre>pip install spark-nlp==5.1.1</pre><p>Spark Packages</p><p>spark-nlp on Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, and 3.4.x (Scala 2.12):</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp_2.12:5.1.1</pre><pre>pyspark --packages com.johnsnowlabs.nlp:spark-nlp_2.12:5.1.1</pre><p>GPU</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-gpu_2.12:5.1.1</pre><pre>pyspark --packages com.johnsnowlabs.nlp:spark-nlp-gpu_2.12:5.1.1</pre><p>Apple Silicon (M1 &amp; M2)</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-silicon_2.12:5.1.1</pre><pre>pyspark --packages com.johnsnowlabs.nlp:spark-nlp-silicon_2.12:5.1.1</pre><p>AArch64</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-aarch64_2.12:5.1.1</pre><pre>pyspark --packages com.johnsnowlabs.nlp:spark-nlp-aarch64_2.12:5.1.1</pre><p>Maven</p><p>spark-nlp on Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, and 3.4.x:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;5.1.1&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>com.johnsnowlabs.nlp spark-nlp_2.12 5.1.1 “ tabindex=”0&quot; role=”button” style=”box-sizing: border-box; position: relative; display: inline-block; font-size: 14px; font-weight: var( — base-text-weight-medium, 500); line-height: 20px; white-space: nowrap; vertical-align: middle; cursor: pointer; -webkit-user-select: none; border-width: 1px; border-style: solid; border-color: var( — button-default-borderColor-rest, var( — color-btn-border)); border-image: none; border-radius: 6px; appearance: none; color: var( — button-default-fgColor-rest, var( — color-btn-text)); background-color: var( — button-default-bgColor-rest, var( — color-btn-bg)); box-shadow: var( — button-default-shadow-resting, var( — color-btn-shadow)),var( — button-default-shadow-inset, var( — color-btn-inset-shadow)); transition: color 80ms cubic-bezier(0.33, 1, 0.68, 1), background-color, box-shadow, border-color; padding: 0px !important; margin: var( — base-size-8, 8px) !important;”&gt;</p><p>spark-nlp-gpu:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp-gpu_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;5.1.1&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>com.johnsnowlabs.nlp spark-nlp-gpu_2.12 5.1.1 “ tabindex=”0&quot; role=”button” style=”box-sizing: border-box; position: relative; display: inline-block; font-size: 14px; font-weight: var( — base-text-weight-medium, 500); line-height: 20px; white-space: nowrap; vertical-align: middle; cursor: pointer; -webkit-user-select: none; border-width: 1px; border-style: solid; border-color: var( — button-default-borderColor-rest, var( — color-btn-border)); border-image: none; border-radius: 6px; appearance: none; color: var( — button-default-fgColor-rest, var( — color-btn-text)); background-color: var( — button-default-bgColor-rest, var( — color-btn-bg)); box-shadow: var( — button-default-shadow-resting, var( — color-btn-shadow)),var( — button-default-shadow-inset, var( — color-btn-inset-shadow)); transition: color 80ms cubic-bezier(0.33, 1, 0.68, 1), background-color, box-shadow, border-color; padding: 0px !important; margin: var( — base-size-8, 8px) !important;”&gt;</p><p>spark-nlp-silicon:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp-silicon_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;5.1.1&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>com.johnsnowlabs.nlp spark-nlp-silicon_2.12 5.1.1 “ tabindex=”0&quot; role=”button” style=”box-sizing: border-box; position: relative; display: inline-block; font-size: 14px; font-weight: var( — base-text-weight-medium, 500); line-height: 20px; white-space: nowrap; vertical-align: middle; cursor: pointer; -webkit-user-select: none; border-width: 1px; border-style: solid; border-color: var( — button-default-borderColor-rest, var( — color-btn-border)); border-image: none; border-radius: 6px; appearance: none; color: var( — button-default-fgColor-rest, var( — color-btn-text)); background-color: var( — button-default-bgColor-rest, var( — color-btn-bg)); box-shadow: var( — button-default-shadow-resting, var( — color-btn-shadow)),var( — button-default-shadow-inset, var( — color-btn-inset-shadow)); transition: color 80ms cubic-bezier(0.33, 1, 0.68, 1), background-color, box-shadow, border-color; padding: 0px !important; margin: var( — base-size-8, 8px) !important;”&gt;</p><p>spark-nlp-aarch64:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp-aarch64_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;5.1.1&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>com.johnsnowlabs.nlp spark-nlp-aarch64_2.12 5.1.1 “ tabindex=”0&quot; role=”button” style=”box-sizing: border-box; position: relative; display: inline-block; font-size: 14px; font-weight: var( — base-text-weight-medium, 500); line-height: 20px; white-space: nowrap; vertical-align: middle; cursor: pointer; -webkit-user-select: none; border-width: 1px; border-style: solid; border-color: var( — button-default-borderColor-rest, var( — color-btn-border)); border-image: none; border-radius: 6px; appearance: none; color: var( — button-default-fgColor-rest, var( — color-btn-text)); background-color: var( — button-default-bgColor-rest, var( — color-btn-bg)); box-shadow: var( — button-default-shadow-resting, var( — color-btn-shadow)),var( — button-default-shadow-inset, var( — color-btn-inset-shadow)); transition: color 80ms cubic-bezier(0.33, 1, 0.68, 1), background-color, box-shadow, border-color; padding: 0px !important; margin: var( — base-size-8, 8px) !important;”&gt;</p><p>FAT JARs</p><ul><li>CPU on Apache Spark 3.x/3.1.x/3.2.x/3.3.x/3.4.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-assembly-5.1.1.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-assembly-5.1.1.jar</a></li><li>GPU on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x/3.4.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-gpu-assembly-5.1.1.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-gpu-assembly-5.1.1.jar</a></li><li>M1 on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x/3.4.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-silicon-assembly-5.1.1.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-silicon-assembly-5.1.1.jar</a></li><li>AArch64 on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x/3.4.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-aarch64-assembly-5.1.1.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-aarch64-assembly-5.1.1.jar</a></li></ul><h3>What’s Changed</h3><ul><li>fixed e5 modelhub card code sections by <a href="https://github.com/ahmedlone127">@ahmedlone127</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13950">#13950</a></li><li>fixing modelhub cards by <a href="https://github.com/ahmedlone127">@ahmedlone127</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13952">#13952</a></li><li>Models hub by <a href="https://github.com/maziyarpanahi">@maziyarpanahi</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13943">#13943</a></li><li>[SPARKNLP-906] Fix reading suffix by <a href="https://github.com/DevinTDHa">@DevinTDHa</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13945">#13945</a></li><li>Sparknlp 888 Add ONNX support to MPNet embeddings by <a href="https://github.com/ahmedlone127">@ahmedlone127</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13955">#13955</a></li><li>Adding ONNX Support to ALBERT Token and Sequence Classification and Question Answering annotators by <a href="https://github.com/danilojsl">@danilojsl</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13956">#13956</a></li><li>SPARKNLP-884 Enabling getVectors method by <a href="https://github.com/danilojsl">@danilojsl</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13957">#13957</a></li><li>[SPARKNLP-890] ONNX E5 MPnet example by <a href="https://github.com/DevinTDHa">@DevinTDHa</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13958">#13958</a></li><li>Models hub by <a href="https://github.com/maziyarpanahi">@maziyarpanahi</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13972">#13972</a></li><li>Fixing onnx saving path bug by <a href="https://github.com/ahmedlone127">@ahmedlone127</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13959">#13959</a></li><li>release/511-release-candidate by <a href="https://github.com/maziyarpanahi">@maziyarpanahi</a> in <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/13961">#13961</a></li></ul><p>Full Changelog: <a href="https://github.com/JohnSnowLabs/spark-nlp/compare/5.1.0...5.1.1">5.1.0…5.1.1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cef9c58a1d2d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-5-1-1-onnx-support-for-more-features-cef9c58a1d2d">Spark NLP 5.1.1: ONNX support for more features!</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark NLP 5.1.0: OpenAI Whisper, OpenAI Embeddings & Completion transformers, MPNet, and much more!]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-5-1-0-openai-whisper-openai-embeddings-completion-transformers-mpnet-and-much-more-98eb6f07f6ad?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/98eb6f07f6ad</guid>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[whisper]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 15:19:54 GMT</pubDate>
            <atom:updated>2023-08-28T15:19:54.974Z</atom:updated>
            <content:encoded><![CDATA[<h3>Spark NLP 5.1.0: OpenAI Whisper, OpenAI Embeddings &amp; Completion transformers, MPNet, E5 on ONNX , and much more!</h3><h3>📢 And RAG whispered to Spark NLP, you complete me!</h3><p>It’s a well-established principle: any LLM, whether open-source or proprietary, isn’t dependable without a RAG. And truly, there can’t be an effective RAG without an NLP library that is production-ready, natively distributed, state-of-the-art, and user-friendly. This holds true in our 5.1.0 release!</p><p><strong>Release Summary:<br></strong>We’re excited to unveil Spark NLP 🚀 5.1.0 with:</p><ul><li>New OpenAI Whisper, Embeddings and Completions!</li><li>Extended ONNX support for highly-rated E5 embeddings. Anticipate swifter inferences, seamless optimizations, and quantization for exporting LLM models.</li><li>MPNet, a cherished sentence-embedding LLM boasting 140+ ready-to-use models!</li><li>Cutting-edge BGE and GTE text embedding models lead the MTEB leaderboard, surpassing even the renowned OpenAI text-embedding-ada-002. We employ these models for text vectorization, pairing them with LLM models to ensure accuracy and prevent misinterpretations.</li><li>Unified Support for All Major Cloud Storage (Azure, GCP, and S3)</li><li>BART multi-lingual Zero-Shot multi-class/multi-label text classification</li><li>and more!</li></ul><p>We want to thank our community for their valuable feedback, feature requests, and contributions. Our <a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> now contains over 18,000+ free and truly open-source models &amp; pipelines. 🎉</p><h3>Don’t miss our free Webinar: <a href="https://www.youtube.com/watch?v=I_YpN3mgwqc">From GPT-4 to Llama-2: Supercharging State-of-the-Art Embeddings for Vector Databases</a></h3><h3>🔥 New Features</h3><h3>Spark NLP ❤️ ONNX (toujours)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yNNJL_wv1qDewNmH" /></figure><p>In Spark NLP 5.1.0, we’re persisting with our commitment to ONNX Runtime support. Following our introduction of ONNX Runtime in Spark NLP 5.0.0 — which has notably augmented the performance of models like BERT — we’re further integrating features to bolster model efficiency. Our endeavors include optimizing existing models and expanding our ONNX-compatible offerings. For a detailed overview of ONNX compatibility in Spark NLP, refer to <a href="https://github.com/JohnSnowLabs/spark-nlp/issues/13866">this issue</a>.</p><p>NEW: In the 5.1.0 release, we’ve extended ONNX support to the E5 embedding annotator and introduced 15 new E5 models in ONNX format. This includes both optimized and quantized versions. Impressively, the enhanced ONNX support and these new models showcase a performance boost ranging from 2.3x to 3.4x when compared to the TensorFlow versions released in the 5.0.0 update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t7PGwkx6jXBlDar_" /></figure><h3>OpenAI Whisper: Robust Speech Recognition via Large-Scale Weak Supervision</h3><p>NEW: Introducing WhisperForCTC annotator in Spark NLP 🚀. WhisperForCTC can load all state-of-the-art Whisper models inherited from OpenAI Whisper for Robust Speech Recognition. Whisper was trained and open-sourced that approaches human level robustness and accuracy on English speech recognition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7r0WVFGkgZ-xWKGI" /></figure><blockquote><em>We study the capabilities of speech processing systems trained simply to predict large amounts of transcripts of audio on the internet. When scaled to 680,000 hours of multilingual and multitask supervision, the resulting models generalize well to standard benchmarks and are often competitive with prior fully supervised results but in a zeroshot transfer setting without the need for any finetuning. When compared to humans, the models approach their accuracy and robustness. We are releasing models and inference code to serve as a foundation for further work on robust speech processing.<br>For more details, check out the </em><a href="https://cdn.openai.com/papers/whisper.pdf"><em>official paper</em></a></blockquote><pre>audio_assembler = AudioAssembler() \<br>    .setInputCol(&quot;audio_content&quot;) \<br>    .setOutputCol(&quot;audio_assembler&quot;)<br>speech_to_text = WhisperForCTC \<br>    .pretrained()\<br>    .setInputCols(&quot;audio_assembler&quot;) \<br>    .setOutputCol(&quot;text&quot;)<br>pipeline = Pipeline(stages=[<br>  audio_assembler,<br>  speech_to_text,<br>])</pre><h3>MPNet: Masked and Permuted Pre-training for Language Understanding</h3><p>NEW: Introducing MPNetEmbeddings annotator in Spark NLP 🚀. MPNetEmbeddings can load all state-of-the-art MPNet Models for Text Embeddings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PALCYIaME4NH9_nf" /></figure><blockquote><em>We propose MPNet, a novel pre-training method that inherits the advantages of BERT and XLNet and avoids their limitations. MPNet leverages the dependency among predicted tokens through permuted language modeling (vs. MLM in BERT), and takes auxiliary position information as input to make the model see a full sentence and thus reducing the position discrepancy (vs. PLM in XLNet). We pre-train MPNet on a large-scale dataset (over 160GB text corpora) and fine-tune on a variety of down-streaming tasks (GLUE, SQuAD, etc). Experimental results show that MPNet outperforms MLM and PLM by a large margin, and achieves better results on these tasks compared with previous state-of-the-art pre-trained methods (e.g., BERT, XLNet, RoBERTa) under the same model setting.<br></em><a href="https://arxiv.org/pdf/2004.09297.pdf"><em>MPNet: Masked and Permuted Pre-training for Language Understanding</em></a><em> by<br>Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, Tie-Yan Liu</em></blockquote><p>Available new state-of-the-art BGE, TGE, E5, and INSTRUCTOR models for Text Embeddings are currently dominating the top of the MTEB leaderboard positioning themselves way above OpenAI <a href="https://beta.openai.com/docs/guides/embeddings/types-of-embedding-models">text-embedding-ada-002</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GrxnS98EUDxO1aK_" /></figure><blockquote><em>Massive Text Embedding Benchmark (MTEB) Leaderboard. To submit, refer to the </em><a href="https://github.com/embeddings-benchmark/mteb#leaderboard"><em>MTEB GitHub repository</em></a><em> 🤗</em></blockquote><h3>New OpenAI Embeddings and Completions</h3><p>NEW: In Spark NLP 5.1.0, we’re thrilled to introduce the integration of OpenAI Embeddings and Completions transformers. By merging the prowess of OpenAI’s language model with the robust NLP processing capabilities of Spark NLP, we’ve created a powerful synergy. Specifically, with the newly introduced OpenAIEmbeddings and OpenAICompletion transformers, users can now make direct API calls to OpenAI&#39;s Embeddings and Completion endpoints right from an Apache Spark DataFrame. This enhancement promises to elevate the efficiency and versatility of data processing workflows within Spark NLP pipelines.</p><pre># to use OpenAI completions endpoint<br>document_assembler = DocumentAssembler() \<br>        .setInputCol(&quot;text&quot;) \<br>        .setOutputCol(&quot;document&quot;)<br>openai_completion = OpenAICompletion() \<br>       .setInputCols(&quot;document&quot;) \<br>       .setOutputCol(&quot;completion&quot;) \<br>       .setModel(&quot;text-davinci-003&quot;) \<br>       .setMaxTokens(50)<br># to use OpenAI embeddings endpoint<br>document_assembler = DocumentAssembler() \<br>        .setInputCol(&quot;text&quot;) \<br>        .setOutputCol(&quot;document&quot;)<br>openai_embeddings = OpenAIEmbeddings() \<br>       .setInputCols(&quot;document&quot;) \<br>       .setOutputCol(&quot;embeddings&quot;) \<br>       .setModel(&quot;text-embedding-ada-002&quot;)<br></pre><h3>Unified Support for All Major Cloud Storage</h3><p>In Spark NLP 5.1.0, we’re thrilled to announce a holistic integration of all major cloud and distributed file storage systems. Building on our existing support for AWS, DBFS, and HDFS, we&#39;ve now introduced seamless operations with Google Cloud Platform (GCP) and Azure. Here&#39;s a brief overview of what&#39;s been added and improved:</p><ul><li>Comprehensive Integration: We’ve successfully unified all externally supported file systems and cloud access, ensuring a consistent experience across platforms.</li><li>Enhanced Cloud Access: Undergoing refactoring, the cache_pretrained property now offers unified cloud access, making it easier to cache models from any supported platform.</li><li>New Azure Storage Support: We’ve integrated Azure dependencies, allowing for Azure support in all cloud operations, ensuring users of Microsoft’s cloud platform have a first-class experience.</li><li>New GCP Storage support: Users can now effortlessly export NER log files directly to GCP Storage. Additionally, importing HF models from GCP has been made straightforward.</li><li>Refinements and Fixes: We’ve relocated the Credentials component to the AWS package for better organization and addressed issues related to HDFS log and NER Graph loading.</li><li>Documentation: To help users get started and transition smoothly, comprehensive documentation has been added detailing the support for Azure, GCP, and S3 operations.</li></ul><p>We’re confident these updates will provide a smoother, more unified experience for users across all cloud platforms for the following features:</p><ul><li>Define a custom path for cache_pretrained directory</li><li>Store logs during training</li><li>Load TF graphs for NerDL annotator</li><li>Importing any HF model into Spark NLP</li></ul><h3>BART: New multi-lingual Zero-Shot Text Classification</h3><ul><li>NEW: Introducing BartForZeroShotClassification annotator for Zero-Shot Text Classification in Spark NLP 🚀. You can use the BartForZeroShotClassification annotator for text classification with your labels! 💯</li></ul><blockquote><em>Zero-Shot Learning (ZSL): Traditionally, ZSL most often referred to a fairly specific type of task: learning a classifier on one set of labels and then evaluating on a different set of labels that the classifier has never seen before. Recently, especially in NLP, it’s been used much more broadly to get a model to do something it wasn’t explicitly trained to do. A well-known example of this is in the </em><a href="https://pdfs.semanticscholar.org/9405/cc0d6169988371b2755e573cc28650d14dfe.pdf"><em>GPT-2 paper</em></a><em> where the authors evaluate a language model on downstream tasks like machine translation without fine-tuning on these tasks directly.</em></blockquote><p>Let’s see how easy it is to just use any set of labels our trained model has never seen via the setCandidateLabels() param:</p><pre>zero_shot_classifier = BartForZeroShotClassification \<br>    .pretrained() \<br>    .setInputCols([&quot;document&quot;, &quot;token&quot;]) \<br>    .setOutputCol(&quot;class&quot;) \<br>    .setCandidateLabels([&quot;urgent&quot;, &quot;mobile&quot;, &quot;travel&quot;, &quot;movie&quot;, &quot;music&quot;, &quot;sport&quot;, &quot;weather&quot;, &quot;technology&quot;])</pre><p>For Zero-Short Multi-class Text Classification:</p><pre>+----------------------------------------------------------------------------------------------------------------+--------+<br>|result                                                                                                          |result  |<br>+----------------------------------------------------------------------------------------------------------------+--------+<br>|[I have a problem with my iPhone that needs to be resolved asap!!]                                              |[mobile]|<br>|[Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app.]|[mobile]|<br>|[I have a phone and I love it!]                                                                                 |[mobile]|<br>|[I want to visit Germany and I am planning to go there next year.]                                              |[travel]|<br>|[Let&#39;s watch some movies tonight! I am in the mood for a horror movie.]                                         |[movie] |<br>|[Have you watched the match yesterday? It was a great game!]                                                    |[sport] |<br>|[We need to hurry up and get to the airport. We are going to miss our flight!]                                  |[urgent]|<br>+----------------------------------------------------------------------------------------------------------------+--------+</pre><p>For Zero-Short Multi-class Text Classification:</p><pre>+----------------------------------------------------------------------------------------------------------------+-----------------------------------+<br>|result                                                                                                          |result                             |<br>+----------------------------------------------------------------------------------------------------------------+-----------------------------------+<br>|[I have a problem with my iPhone that needs to be resolved asap!!]                                              |[urgent, mobile, movie, technology]|<br>|[Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app.]|[urgent, technology]               |<br>|[I have a phone and I love it!]                                                                                 |[mobile]                           |<br>|[I want to visit Germany and I am planning to go there next year.]                                              |[travel]                           |<br>|[Let&#39;s watch some movies tonight! I am in the mood for a horror movie.]                                         |[movie]                            |<br>|[Have you watched the match yesterday? It was a great game!]                                                    |[sport]                            |<br>|[We need to hurry up and get to the airport. We are going to miss our flight!]                                  |[urgent, travel]                   |<br>+----------------------------------------------------------------------------------------------------------------+-----------------------------------+</pre><ul><li>NEW: New BAAI general embedding (BGE) and General Text Embeddings (GTE) Models</li></ul><h3>⭐🐛 Improvements &amp; Bug Fixes</h3><ul><li>Fix max sentence length issue with E5Embeddings where it crashed with sequences larger than 512</li><li>Welcoming 3 new Databricks runtimes to our Spark NLP family:</li><li>Databricks 13.3 LTS</li><li>Databricks 13.3 LTS ML</li><li>Databricks 13.3 LTS ML GPU</li><li>Welcoming a new EMR 6.12.0 version with Apache Spark 3.4.0 support</li></ul><h3>💾 Models</h3><p>Spark NLP 5.1.0 comes with more than 4300+ new state-of-the-art pre-trained transformer models in multi-languages.</p><p>The complete list of all 18400+ models &amp; pipelines in 230+ languages is available on <a href="https://sparknlp.org/models">Models Hub</a></p><h3>📓 New Notebooks</h3><ul><li>NotebooksColabWhisper: Automatic Speech Recognition in Spark NLP</li><li>Import Whisper models (ONNX)</li><li>Import Whisper models (TF)</li><li>OpenAICompletion Example</li><li>OpenAIEmbeddings Example</li><li>Import Transformers from 🤗 into Spark NLP 🚀 with GCP</li><li>Import Transformers from 🤗 into Spark NLP 🚀 with Azure</li><li>Import Transformers from 🤗 into Spark NLP 🚀 with AWS</li><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import Transformers in Spark NLP</a></li><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Examples</a> for 100+ examples</li></ul><h3>📖 Documentation</h3><ul><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import models from TF Hub &amp; HuggingFace</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Notebooks</a></li><li><a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> with new models</li><li><a href="https://medium.com/spark-nlp">Spark NLP Articles</a></li><li><a href="https://nlp.johnsnowlabs.com/demo">Spark NLP in Action</a></li><li><a href="https://nlp.johnsnowlabs.com/docs/en/quickstart">Spark NLP Documentation</a></li><li><a href="https://nlp.johnsnowlabs.com/api">Spark NLP Scala APIs</a></li><li><a href="https://nlp.johnsnowlabs.com/api/python">Spark NLP Python APIs</a></li></ul><h3>❤️ Community support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> For live discussion with the Spark NLP community and the team</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> Bug reports, feature requests, and contributions</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas,<br>and show off how you use Spark NLP!</li><li><a href="https://medium.com/spark-nlp">Medium</a> Spark NLP articles</li><li>JohnSnowLabs official <a href="https://medium.com/john-snow-labs">Medium</a></li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> Spark NLP video tutorials</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98eb6f07f6ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-5-1-0-openai-whisper-openai-embeddings-completion-transformers-mpnet-and-much-more-98eb6f07f6ad">Spark NLP 5.1.0: OpenAI Whisper, OpenAI Embeddings &amp; Completion transformers, MPNet, and much more!</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark NLP 5.0: It’s All About That Search!]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-5-0-its-all-about-that-search-6f94f018a533?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f94f018a533</guid>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[onnx]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 07:38:42 GMT</pubDate>
            <atom:updated>2023-07-05T07:38:42.998Z</atom:updated>
            <content:encoded><![CDATA[<p>We are delighted to announce the release of Spark NLP 🚀 5.0.0, featuring the highly anticipated support for ONNX!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ayLgbGVkc-bjIty_-837lQ.png" /></figure><p>We are delighted to announce the release of Spark NLP 🚀 5.0.0, featuring the highly anticipated support for ONNX! From the start of 2023, we have been working tirelessly to ensure that the integration of ONNX is not just possible but also seamless for all our users. With this support, you can look forward to faster inference, automatic optimization, and quantization when exporting your LLM models. Additionally, we are also set to release an array of new LLM models fine-tuned specifically for chat and instruction, now that we have successfully integrated ONNX Runtime into Spark NLP 🚀.</p><p>We have introduced two state-of-the-art models for text embedding, INSTRUCTOR and E5 embeddings. Currently, these models are leading the way on the MTEB leaderboard, even outperforming the widely recognized OpenAI <a href="https://beta.openai.com/docs/guides/embeddings/types-of-embedding-models">text-embedding-ada-002</a>. These cutting-edge models are now being utilized in production environments to populate Vector Databases. In addition, they are being paired with LLM models like Falcon, serving to augment their existing knowledge base and reduce the chances of hallucinations.</p><p>We want to thank our community for their valuable feedback, feature requests, and contributions. Our <a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> now contains over 18,000+ free and truly open-source models &amp; pipelines. 🎉</p><h3>Spark NLP ❤️ ONNX</h3><p>Introducing support for ONNX Runtime in Spark NLP🚀. Serving as a high-performance inference engine, ONNX Runtime can handle machine learning models in the ONNX format and has been proven to significantly boost inference performance across a multitude of models.</p><p>Our integration of ONNX Runtime has already led to substantial improvements when serving our LLM models, including BERT. Furthermore, this integration empowers Spark NLP users to optimize their model performance. As users export their models to ONNX, they can utilize the built-in features provided by libraries such as onnx-runtime, transformers, optimum, and PyTorch. Notably, these libraries offer out-of-the-box capabilities for optimization and quantization, enhancing model efficiency and performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eF_sxdQGYs65LwcP.png" /><figcaption>Spark NLP has demonstrated a performance improvement of 2.11 to 7.44 times over Hugging Face</figcaption></figure><p>In the realm of Vector Databases, the quest for faster and more efficient Embeddings models has become an imperative pursuit. Models like BERT, DistilBERT, and DeBERTa have revolutionized natural language processing tasks by capturing intricate semantic relationships between words. However, their computational demands and slow inference times pose significant challenges in the game of Vector Databases.</p><p>In Vector Databases, the speed at which queries are processed and embeddings are retrieved directly impacts the overall performance and responsiveness of the system. As these databases store vast amounts of vectorized data, such as documents, sentences, or entities, swiftly retrieving relevant embeddings becomes paramount. It enables real-time applications like search engines, recommendation systems, sentiment analysis, and chat/instruct-like products similar to ChatGPT to deliver timely and accurate results, ensuring a seamless user experience.</p><p>Keeping this in mind, we’ve initiated ONNX support for the following annotators:</p><ul><li>We’ve introduced ONNX support for the BertEmbeddings annotator. Approximately 180 models of the same name have already been converted to the ONNX format to automatically benefit from the associated performance enhancements.</li><li>We’ve added ONNX support for the RoBertaEmbeddings annotator. Roughly 55 models of the same name have been imported in the ONNX format, thus allowing for automatic speed improvements.</li><li>ONNX support has been initiated for the DistilBertEmbeddings annotator. Around 25 models with the same name have been converted to the ONNX format, facilitating automatic speed enhancements.</li><li>We’ve incorporated ONNX support into the DeBertaEmbeddings annotator. About 12 models bearing the same name have been imported in the ONNX format, enabling them to automatically reap the benefits of speed improvements.</li></ul><p>We have successfully identified all existing models for these annotators on our Models Hub, converted them into the ONNX format, and re-uploaded them under the same names. This process was carried out to ensure a seamless transition for our community starting with Spark NLP 5.0.0. We will continue to import additional models in the ONNX format in the days ahead. To keep track of the ONNX compatibility with Spark NLP, follow this issue: <a href="https://github.com/JohnSnowLabs/spark-nlp/issues/13866">#13866</a>.</p><h3>INSTRUCTOR: Instruction-Finetuned Text Embeddings</h3><p>NEW: Introducing InstructorEmbeddings annotator in Spark NLP 🚀. InstructorEmbeddings can load new state-of-the-art INSTRUCTOR Models inherited from Google T5 for Text embedding.</p><p>This annotator is compatible with all the models trained/fine-tuned by using T5EncoderModel for PyTorch or TFT5EncoderModel for TensorFlow models in HuggingFace 🤗</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-NME1fBKSzvyf7em.png" /></figure><blockquote><em>Instructor👨‍🏫, an instruction-finetuned text embedding model that can generate text embeddings tailored to any task (e.g., classification, retrieval, clustering, text evaluation, etc.) and domains (e.g., science, finance, etc.) </em>by simply providing the task instruction, without any finetuning<em>. Instructor👨‍ achieves sota on 70 diverse embedding tasks!<br>For more details, check out the </em><a href="https://arxiv.org/abs/2212.09741"><em>official paper</em></a><em> and the </em><a href="https://instructor-embedding.github.io/"><em>project page</em></a><em>!</em></blockquote><p>NOTEBOOK: <a href="https://github.com/JohnSnowLabs/spark-nlp/blob/master/examples/python/annotation/text/english/sentence-embeddings/InstructorEmbeddings.ipynb">https://github.com/JohnSnowLabs/spark-nlp/blob/master/examples/python/annotation/text/english/sentence-embeddings/InstructorEmbeddings.ipynb</a></p><h3>E5: Text Embeddings by Weakly-Supervised Contrastive Pre-training</h3><p>NEW: Introducing E5Embeddings annotator in Spark NLP 🚀. E5Embeddings can load new state-of-the-art E5 Models based on BERT for Text Embeddings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WDPZ3fr4llBUmXd0.png" /></figure><blockquote><a href="https://arxiv.org/pdf/2212.03533.pdf"><em>Text Embeddings by Weakly-Supervised Contrastive Pre-training</em></a><em>.<br>Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022</em></blockquote><p>NOTEBOOK: <a href="https://github.com/JohnSnowLabs/spark-nlp/blob/master/examples/python/annotation/text/english/sentence-embeddings/E5Embeddings.ipynb">https://github.com/JohnSnowLabs/spark-nlp/blob/master/examples/python/annotation/text/english/sentence-embeddings/E5Embeddings.ipynb</a></p><h3>Our new state-of-the-art annotators for Text Embeddings are currently dominating the top of the MTEB leaderboard positioning themselves above OpenAI text-embedding-ada-002</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TmHxdM-nkSqLrCTj.png" /></figure><blockquote><em>Massive Text Embedding Benchmark (MTEB) Leaderboard. To submit, refer to the </em><a href="https://github.com/embeddings-benchmark/mteb#leaderboard"><em>MTEB GitHub repository</em></a><em> 🤗</em></blockquote><h3>Document Similarity Ranker by LSH techniques</h3><p>NEW: Introducing DocumentSimilarityRanker annotator in Spark NLP 🚀. DocumentSimilarityRanker is a new annotator that uses LSH techniques present in Spark ML lib to execute approximate nearest neighbors search on top of sentence embeddings, It aims to capture the semantic meaning of a document in a dense, continuous vector space and return it to the ranker search.</p><p>NOTEBOOK: <a href="https://github.com/JohnSnowLabs/spark-nlp/blob/master/examples/python/annotation/text/english/text-similarity/doc-sim-ranker/test_doc_sim_ranker.ipynb">https://github.com/JohnSnowLabs/spark-nlp/blob/master/examples/python/annotation/text/english/text-similarity/doc-sim-ranker/test_doc_sim_ranker.ipynb</a></p><ul><li>Welcoming 6 new Databricks runtimes to our Spark NLP family:</li><li>Databricks 13.1 LTS</li><li>Databricks 13.1 LTS ML</li><li>Databricks 13.1 LTS ML GPU</li><li>Databricks 13.2 LTS</li><li>Databricks 13.2 LTS ML</li><li>Databricks 13.2 LTS ML GPU</li><li>Welcome AWS EMR 6.11 version to our Spark NLP family</li><li>Fix BART issue with input longer than the maxInputLength</li></ul><h3>📖 Documentation</h3><ul><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import models from TF Hub &amp; HuggingFace</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Notebooks</a></li><li><a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> with new models</li><li><a href="https://medium.com/spark-nlp">Spark NLP Articles</a></li><li><a href="https://nlp.johnsnowlabs.com/demo">Spark NLP in Action</a></li><li><a href="https://nlp.johnsnowlabs.com/docs/en/quickstart">Spark NLP Documentation</a></li><li><a href="https://nlp.johnsnowlabs.com/api">Spark NLP Scala APIs</a></li><li><a href="https://nlp.johnsnowlabs.com/api/python">Spark NLP Python APIs</a></li></ul><h3>❤️ Community support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> For live discussion with the Spark NLP community and the team</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> Bug reports, feature requests, and contributions</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas,<br>and show off how you use Spark NLP!</li><li><a href="https://medium.com/spark-nlp">Medium</a> Spark NLP articles</li><li>JohnSnowLabs official <a href="https://medium.com/john-snow-labs">Medium</a></li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> Spark NLP video tutorials</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f94f018a533" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-5-0-its-all-about-that-search-6f94f018a533">Spark NLP 5.0: It’s All About That Search!</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark-NLP 4.4.0]]></title>
            <link>https://medium.com/spark-nlp/spark-nlp-4-4-0-fc233efe532?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc233efe532</guid>
            <category><![CDATA[zero-shot-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[spark-nlp]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[image-classification]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Sat, 15 Apr 2023 17:16:21 GMT</pubDate>
            <atom:updated>2023-04-15T17:22:06.996Z</atom:updated>
            <content:encoded><![CDATA[<h4>New BART for Text Translation &amp; Summarization, new ConvNeXT Transformer for Image Classification, new Zero-Shot Text Classification by BERT, more than 4000+ state-of-the-art models, and many more!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sh9jWIZeMond8YGLtOMLsg.png" /></figure><h3>📢 Overview</h3><p>We are thrilled to announce the release of Spark NLP 🚀 4.4.0! This release includes new features such as a New BART for NLG, translation, and comprehension; a new ConvNeXTTransformer for Image Classification, a new Zero-Shot Text Classification by BERT, 4000+new state-of-the-art models, and more enhancements and bug fixes.</p><p>We want to thank our community for their valuable feedback, feature requests, and contributions. Our <a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> now contains over 17,000+ free and truly open-source models &amp; pipelines. 🎉</p><h3>Spark NLP has a new home! <a href="https://sparknlp.org/">https://sparknlp.org</a> is where you can find all the documentation, models, and demos for Spark NLP. It aims to provide valuable resources to anyone interested in 100% open-source NLP solutions by using Spark NLP 🚀.</h3><blockquote><strong>Full release note</strong>: <a href="https://github.com/JohnSnowLabs/spark-nlp/releases/tag/4.4.0">https://github.com/JohnSnowLabs/spark-nlp/releases/tag/4.4.0</a></blockquote><h3>🔥 New Features</h3><h3>ConvNeXT Image Classification (By Facebook)</h3><p>NEW: Introducing ConvNextForImageClassification annotator in Spark NLP 🚀. ConvNextForImageClassification can load ConvNeXT models that compete favorably with Transformers in terms of accuracy and scalability, achieving 87.8% ImageNet top-1 accuracy and outperforming Swin Transformers on COCO detection and ADE20K segmentation, while maintaining the simplicity and efficiency of standard ConvNets.</p><p>This annotator is compatible with all the models trained/fine-tuned by using ConvNextForImageClassification for PyTorch or TFConvNextForImageClassification for TensorFlow models in HuggingFace 🤗</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c4ACnoEGkGpvlCPV" /></figure><blockquote><a href="https://arxiv.org/pdf/2201.03545.pdf"><em>A ConvNet: ImageNet-1K classification results for • ConvNets and ◦ vision Transformers. Each bubble’s area is proportional to FLOPs of a variant in a model family.</em></a><em> by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie.</em></blockquote><h3>BART for NLG, Translation, and Comprehension (By Facebook)</h3><p>NEW: Introducing BartTransformer annotator in Spark NLP 🚀. BartTransformer can load BART models fine-tuned for tasks like summarizations.</p><p>This annotator is compatible with all the models trained/fine-tuned by using BartForConditionalGeneration for PyTorch or TFBartForConditionalGeneration for TensorFlow models in HuggingFace 🤗</p><p>The abstract explains that Bart uses a standard seq2seq/machine translation architecture, similar to BERT’s bidirectional encoder and GPT’s left-to-right decoder. The pretraining task involves randomly shuffling the original sentences and replacing text spans with a single mask token. BART is effective for text generation and comprehension tasks, matching RoBERTa’s performance with similar training resources on GLUE and SQuAD. It also achieves new state-of-the-art results on various summarization, dialogue, and question-answering tasks with gains of up to 6 ROUGE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/0*6FbZhFzp1qFMDsQW" /></figure><blockquote><em>The Bart model was proposed in </em><a href="https://arxiv.org/abs/1910.13461"><em>BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension</em></a><em> by Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer</em></blockquote><h3>Zero-Shot for Text Classification by BERT</h3><p>NEW: Introducing BertForZeroShotClassification annotator for Zero-Shot Text Classification in Spark NLP 🚀. You can use the BertForZeroShotClassification annotator for text classification with your labels! 💯</p><blockquote><em>Zero-Shot Learning (ZSL): Traditionally, ZSL most often referred to a fairly specific type of task: learning a classifier on one set of labels and then evaluating on a different set of labels that the classifier has never seen before. Recently, especially in NLP, it’s been used much more broadly to get a model to do something it wasn’t explicitly trained to do. A well-known example of this is in the </em><a href="https://pdfs.semanticscholar.org/9405/cc0d6169988371b2755e573cc28650d14dfe.pdf"><em>GPT-2 paper</em></a><em> where the authors evaluate a language model on downstream tasks like machine translation without fine-tuning on these tasks directly.</em></blockquote><p>Let’s see how easy it is to just use any set of labels our trained model has never seen via the setCandidateLabels() param:</p><pre>zero_shot_classifier = BertForZeroShotClassification \<br>    .pretrained() \<br>    .setInputCols([&quot;document&quot;, &quot;token&quot;]) \<br>    .setOutputCol(&quot;class&quot;) \<br>    .setCandidateLabels([&quot;urgent&quot;, &quot;mobile&quot;, &quot;travel&quot;, &quot;movie&quot;, &quot;music&quot;, &quot;sport&quot;, &quot;weather&quot;, &quot;technology&quot;])</pre><p>For Zero-Short Multi-class Text Classification:</p><pre>+----------------------------------------------------------------------------------------------------------------+--------+<br>|result                                                                                                          |result  |<br>+----------------------------------------------------------------------------------------------------------------+--------+<br>|[I have a problem with my iPhone that needs to be resolved asap!!]                                              |[mobile]|<br>|[Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app.]|[mobile]|<br>|[I have a phone and I love it!]                                                                                 |[mobile]|<br>|[I want to visit Germany and I am planning to go there next year.]                                              |[travel]|<br>|[Let&#39;s watch some movies tonight! I am in the mood for a horror movie.]                                         |[movie] |<br>|[Have you watched the match yesterday? It was a great game!]                                                    |[sport] |<br>|[We need to hurry up and get to the airport. We are going to miss our flight!]                                  |[urgent]|<br>+----------------------------------------------------------------------------------------------------------------+--------+</pre><p>For Zero-Short Multi-class Text Classification:</p><pre>+----------------------------------------------------------------------------------------------------------------+-----------------------------------+<br>|result                                                                                                          |result                             |<br>+----------------------------------------------------------------------------------------------------------------+-----------------------------------+<br>|[I have a problem with my iPhone that needs to be resolved asap!!]                                              |[urgent, mobile, movie, technology]|<br>|[Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app.]|[urgent, technology]               |<br>|[I have a phone and I love it!]                                                                                 |[mobile]                           |<br>|[I want to visit Germany and I am planning to go there next year.]                                              |[travel]                           |<br>|[Let&#39;s watch some movies tonight! I am in the mood for a horror movie.]                                         |[movie]                            |<br>|[Have you watched the match yesterday? It was a great game!]                                                    |[sport]                            |<br>|[We need to hurry up and get to the airport. We are going to miss our flight!]                                  |[urgent, travel]                   |<br>+----------------------------------------------------------------------------------------------------------------+-----------------------------------+</pre><h3>⭐🐛 Improvements &amp; Bug Fixes</h3><ul><li>Add a new nerHasNoSchema param for NerConverter when labels coming from NerDLMOdel and NerCrfModel don&#39;t have any schema</li><li>Set custom entity name in Data2Chunk via setEntityName param</li><li>Fix loading WordEmbeddingsModel bug when loading a model from S3 via the cache_folder config</li><li>Fix the WordEmbeddingsModel bug failing when it&#39;s used with setEnableInMemoryStorage set to True and LightPipeline</li><li>Remove deprecated parameter enablePatternRegex from EntityRulerApproach &amp; EntityRulerModel</li><li>Welcoming 3 new Databricks runtimes to our Spark NLP family:</li><li>Databricks 12.2 LTS</li><li>Databricks 12.2 LTS ML</li><li>Databricks 12.2 LTS ML GPU</li><li>Deprecate Python 3.6 in Spark NLP 4.4.0</li></ul><h3>💾 Models</h3><p>Spark NLP 4.4.0 comes with more than 4300+ new state-of-the-art pre-trained transformer models in multi-languages.</p><p>The complete list of all 17000+ models &amp; pipelines in 230+ languages is available on <a href="https://sparknlp.org/models">Models Hub</a></p><h3>📖 Documentation</h3><ul><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import models from TF Hub &amp; HuggingFace</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples">Spark NLP Notebooks</a></li><li><a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a> with new models</li><li><a href="https://medium.com/spark-nlp">Spark NLP Articles</a></li><li><a href="https://nlp.johnsnowlabs.com/demo">Spark NLP in Action</a></li><li><a href="https://nlp.johnsnowlabs.com/docs/en/quickstart">Spark NLP Documentation</a></li><li><a href="https://nlp.johnsnowlabs.com/api">Spark NLP Scala APIs</a></li><li><a href="https://nlp.johnsnowlabs.com/api/python">Spark NLP Python APIs</a></li></ul><h3>Community support</h3><ul><li><a href="https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q">Slack</a> For live discussion with the Spark NLP community and the team</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp">GitHub</a> Bug reports, feature requests, and contributions</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas,<br>and show off how you use Spark NLP!</li><li><a href="https://medium.com/spark-nlp">Medium</a> Spark NLP articles</li><li><a href="https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos">YouTube</a> Spark NLP video tutorials</li></ul><h3>Installation</h3><p>Python</p><pre>pip install spark-nlp==4.4.0</pre><p>Spark Packages</p><p>spark-nlp on Apache Spark 3.0.x, 3.1.x, 3.2.x, and 3.3.x (Scala 2.12):</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp_2.12:4.4.0<br>pyspark --packages com.johnsnowlabs.nlp:spark-nlp_2.12:4.4.0</pre><p>GPU</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-gpu_2.12:4.4.0<br>pyspark --packages com.johnsnowlabs.nlp:spark-nlp-gpu_2.12:4.4.0</pre><p>Apple Silicon (M1 &amp; M2)</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-silicon_2.12:4.4.0<br>pyspark --packages com.johnsnowlabs.nlp:spark-nlp-silicon_2.12:4.4.0</pre><p>AArch64</p><pre>spark-shell --packages com.johnsnowlabs.nlp:spark-nlp-aarch64_2.12:4.4.0<br>pyspark --packages com.johnsnowlabs.nlp:spark-nlp-aarch64_2.12:4.4.0</pre><p>Maven</p><p>spark-nlp on Apache Spark 3.0.x, 3.1.x, 3.2.x, and 3.3.x:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;4.4.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>spark-nlp-gpu:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp-gpu_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;4.4.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>spark-nlp-silicon:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp-silicon_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;4.4.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>spark-nlp-aarch64:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.johnsnowlabs.nlp&lt;/groupId&gt;<br>    &lt;artifactId&gt;spark-nlp-aarch64_2.12&lt;/artifactId&gt;<br>    &lt;version&gt;4.4.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p><strong>FAT JARs</strong></p><ul><li>CPU on Apache Spark 3.x/3.1.x/3.2.x/3.3.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-assembly-4.4.0.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-assembly-4.4.0.jar</a></li><li>GPU on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-gpu-assembly-4.4.0.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-gpu-assembly-4.4.0.jar</a></li><li>M1 on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-silicon-assembly-4.4.0.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-silicon-assembly-4.4.0.jar</a></li><li>AArch64 on Apache Spark 3.0.x/3.1.x/3.2.x/3.3.x: <a href="https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-aarch64-assembly-4.4.0.jar">https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/jars/spark-nlp-aarch64-assembly-4.4.0.jar</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc233efe532" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/spark-nlp-4-4-0-fc233efe532">Spark-NLP 4.4.0</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[John Snow Labs Spark-NLP 4.2.0]]></title>
            <link>https://medium.com/spark-nlp/john-snow-labs-spark-nlp-4-2-0-78adac6e177d?source=rss-fe4b780b61e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/78adac6e177d</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[speech-recognition]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[spark-nlp]]></category>
            <dc:creator><![CDATA[Maziyar Panahi]]></dc:creator>
            <pubDate>Mon, 24 Oct 2022 15:22:23 GMT</pubDate>
            <atom:updated>2022-10-24T15:22:23.844Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wav2Vec2 for Automatic Speech Recognition (ASR), TAPAS for Table Question Answering, CamemBERT for Token Classification, new evaluation metrics for external datasets in all classifiers, much faster EntityRuler, over 3000+ state-of-the-art multi-lingual models &amp; pipelines, and many more!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uCdwm5c0nvk3x50YINzLAw.png" /></figure><h3>📢 Overview</h3><p>For the first time ever we are delighted to announce Automatic Speech Recognition (ASR) support in Spark NLP by using state-of-the-art Wav2Vec2 models at scale 🚀. This release also comes with Table Question Answering by TAPAS, CamemBERT for Token Classification, support for an external test dataset during training of all classifiers, much faster EntityRuler, 3000+ state-of-the-art models, and other enhancements and bug fixes!</p><p>We are also celebrating crossing 11000+ free and open-source models &amp; pipelines in our <a href="https://nlp.johnsnowlabs.com/models?edition=Spark+NLP">Models Hub</a>. 🎉 As always, we would like to thank our community for their feedback, questions, and feature requests.</p><h3>⭐ New Features &amp; improvements</h3><ul><li>NEW: Introducing Wav2Vec2ForCTC annotator in Spark NLP 🚀. Wav2Vec2ForCTC can load Wav2Vec2 models for the Automatic Speech Recognition (ASR) task. Wav2Vec2 is a multi-modal model, that combines speech and text. It&#39;s the first multi-modal model of its kind we welcome in Spark NLP. This annotator is compatible with all the models trained/fine-tuned by using Wav2Vec2ForCTC for PyTorch or TFWav2Vec2ForCTC for TensorFlow models in HuggingFace 🤗 (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12767">#12767</a>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*biyEE2Q9OrTXQYjq.png" /><figcaption><a href="https://arxiv.org/pdf/2006.11477.pdf"><em>wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations</em></a></figcaption></figure><ul><li>NEW: Introducing TapasForQuestionAnswering annotator in Spark NLP 🚀. TapasForQuestionAnswering can load TAPAS Models with a cell selection head and optional aggregation head on top for question-answering tasks on tables (linear layers on top of the hidden-states output to compute logits and optional logits_aggregation), e.g. for SQA, WTQ or WikiSQL-supervised tasks. TAPAS is a BERT-based model specifically designed (and pre-trained) for answering questions about tabular data. This annotator is compatible with all the models trained/fine-tuned by using TapasForQuestionAnswering for PyTorch or TFTapasForQuestionAnswering for TensorFlow models in HuggingFace 🤗 (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12777">#12777</a>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vfcxD9eRBK1FYh9F.png" /><figcaption><a href="https://aclanthology.org/2020.acl-main.398.pdf"><em>TAPAS: Weakly Supervised Table Parsing via Pre-training</em></a></figcaption></figure><ul><li>NEW: Introducing CamemBertForTokenClassification annotator in Spark NLP 🚀. CamemBertForTokenClassification can load CamemBERT Models with a token classification head on top (a linear layer on top of the hidden-states output) e.g. for Named-Entity-Recognition (NER) tasks. This annotator is compatible with all the models trained/fine-tuned by using CamembertForTokenClassification for PyTorch or TFCamembertForTokenClassification for TensorFlow in HuggingFace 🤗<br>(<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12752">#12752</a>)</li><li>Implementing setTestDataset to evaluate metrics on an external dataset during training of Text Classifiers in Spark NLP. This feature is similar to NerDLApproach where metrics are calculated on each Epoch and have been added to the following multi-class/multi-label text classifier annotators: ClassifierDLApproach, SentimentDLApproach, and MultiClassifierDLApproach (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12796">#12796</a>)</li><li>Refactoring and improving EntityRuler annotator inference to up to 24x faster especially when used with a long list of labels/entities. We speed up the inference process by implementing the Aho-Corasick algorithm to match patterns in a string. This requires the following changes when using EntityRuler <a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12634">#12634</a></li><li>Add support for S3 storage in the cache_folder where models are downloaded, extracted, and loaded from. Previously, we only supported all local file systems, HDFS, and DBFS. This new feature is especially useful for users on Kubernetes clusters with no access to HDFS or any other distributed file systems (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12707">#12707</a>)</li><li>Implementing lookaround functionalities in DocumentNormalizer annotator. Currently, DocumentNormalizer has both lookahead and lookbehind functionalities. To extend support for more complex normalizations, especially within the clinical text we are introducing the lookaround feature (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12735">#12735</a>)</li><li>Implementing setReplaceEntities param to NerOverwriter annotator to replace all the NER labels (entities) with the given new labels (entities) (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12745">#12745</a>)</li></ul><h3>Bug Fixes</h3><ul><li>Fix a bug in generating the NerDL graph by using TF v2. The previous graph generated by the TFGraphBuilderannotator resulted in an exception when the length of the sequence was 1. This issue has been resolved and the new graphs created by TFGraphBuilder won&#39;t have this issue anymore (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12636">#12636</a>)</li><li>Fix a bug introduced in the 4.0.0 release between Transformer-based Word Embeddings annotators. In the 4.0.0 release, the following annotators were migrated to BatchAnnotate to improve their performance, especially on GPU. However, a bug was introduced in sentence indices which when it is combined with SentenceEmbeddings for Text Classifications tasks (ClassifierDLApproach, SentimentDLApproach, and ClassifierDLApproach) resulted in low accuracy: AlbertEmbeddings, CamemBertEmbeddings, DeBertaEmbeddings, DistilBertEmbeddings, LongformerEmbeddings, RoBertaEmbeddings, XlmRoBertaEmbeddings, and XlnetEmbeddings (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12641">#12641</a>)</li><li>Add support for a list of questions and context in LightPipline. Previously, only one context and question at a time were supported in LightPipeline for Question Answering annotators. We have added support to fullAnnotate and annotate to receive two lists of questions and contexts (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12653">#12653</a>)</li><li>Fix division by zero exception in the GPT2Transformer annotator when the setDoSample param was set to true (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12661">#12661</a>)</li><li>Fix AttributeError when PretrainedPipeline is used in Python with ImageAssembler as one of the stages (<a href="https://github.com/JohnSnowLabs/spark-nlp/pull/12813">#12813</a>)</li></ul><h3>📓 New Notebooks</h3><ul><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">Import Transformers in Spark NLP</a></li><li>You can visit <a href="https://github.com/JohnSnowLabs/spark-nlp-workshop">Spark NLP Workshop</a> for 100+ examples</li></ul><h3>Models</h3><p>Spark NLP 4.2.0 comes with 3000+ state-of-the-art pre-trained transformer models in many languages.</p><h4>The complete list of all 11000+ models &amp; pipelines in 230+ languages is available on <a href="https://nlp.johnsnowlabs.com/models">Models Hub</a></h4><h3>📖 Documentation</h3><ul><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions/5669">TF Hub &amp; HuggingFace to Spark NLP</a></li><li><a href="https://nlp.johnsnowlabs.com/models">Models Hub</a> with new models</li><li><a href="https://nlp.johnsnowlabs.com/docs/en/quickstart">Spark NLP documentation</a></li><li><a href="https://nlp.johnsnowlabs.com/api">Spark NLP Scala APIs</a></li><li><a href="https://nlp.johnsnowlabs.com/api/python">Spark NLP Python APIs</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp-workshop">Spark NLP Workshop</a> notebooks</li><li><a href="https://medium.com/spark-nlp">Spark NLP publications</a></li><li><a href="https://nlp.johnsnowlabs.com/demo">Spark NLP in Action</a></li><li><a href="https://github.com/JohnSnowLabs/spark-nlp-workshop/tree/master/tutorials/Certification_Trainings/Public">Spark NLP training certification notebooks</a> for Google Colab and Databricks</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp-display">Spark NLP Display</a> for visualization of different types of annotations</li><li><a href="https://github.com/JohnSnowLabs/spark-nlp/discussions">Discussions</a> Engage with other community members, share ideas, and show off how you use Spark NLP!</li></ul><h3><a href="https://github.com/JohnSnowLabs/spark-nlp/releases/tag/4.2.0">Read the full release note</a></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78adac6e177d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spark-nlp/john-snow-labs-spark-nlp-4-2-0-78adac6e177d">John Snow Labs Spark-NLP 4.2.0</a> was originally published in <a href="https://medium.com/spark-nlp">spark-nlp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>