Spark NLP Overview
- 31Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What license is Spark NLP released under?
Apache 2.0 license
Or swipe the card
31 cards
What license is Spark NLP released under?
Apache 2.0 license
Which programming languages does Spark NLP support?
Python, Java, Scala, and some R bindings
What underlying framework is Spark NLP built on?
Apache Spark
Can Spark NLP run on a single machine without a cluster?
Yes
What surveys indicate that Spark NLP is the most widely used NLP library in enterprise?
O'Reilly AI adoption in the enterprise survey (February 2019) and subsequent surveys in 2019 and 2020
List at least five core NLP functionalities provided by Spark NLP.
Document splitting, tokenization, stemming, lemmatization, part-of-speech tagging, dependency parsing, spell checking, named entity recognition (NER), sentiment analysis, emotion analysis, document classification
Does Spark NLP include built-in word embeddings? If so, name three examples.
Yes. Examples: BERT, ELMo, BioBERT (also ALBERT, ELECTRA, XLNet, ClinicalBERT, CovidBERT)
What types of text classification does Spark NLP support?
Multi-class and multi-label classification
How many languages does Spark NLP's language detection model support?
It achieves 97% accuracy for 32 languages and 99% accuracy for 22 languages.
What unique feature does Spark NLP's spell checker offer?
It leverages sentence context for corrections and can handle OCR input and custom patterns.
What are the three design goals of Spark NLP?
State-of-the-art accuracy, state-of-the-art performance (speed), and state-of-the-art scalability
What F1 score did Spark NLP achieve on the CoNLL-2003 NER benchmark?
93.3 F1 on the test set and 95.9 on the dev set using BERT Large
How does Spark NLP's out-of-the-box NER accuracy compare to spaCy?
Spark NLP achieves higher accuracy with default parameters across various embeddings, while spaCy's accuracy is lower (e.g., ~92% on dev set).
How many word embedding models does Spark NLP provide versus spaCy?
Spark NLP provides over 50 word embedding models; spaCy provides 3 pipelines with vectors and 4 transformer models.
What improvement in BERT embeddings performance did Spark NLP achieve?
Memory usage reduced by 30% and performance improved by over 70% with dynamic shapes.
How does BERT-Tiny compare to BERT-Base in size and speed?
BERT-Tiny is 24 times smaller and 28 times faster than BERT-Base.
What performance gain does GPU acceleration provide in Spark NLP?
40% to 50% faster in both training and prediction for TensorFlow-based tasks.
How does Intel MKL-optimized TensorFlow on Cascade Lake CPUs compare to GPU performance?
It can be 19% faster than GPU for training (e.g., French NER) and up to 46% cheaper.
Is any code change required to scale a Spark NLP pipeline from one node to a cluster?
No, zero code change is needed.
Is scaling in Spark NLP linear?
No, scaling is not linear; performance depends on the task, data size, and cluster tuning.
What were the single-node vs. 10-node benchmarks for tokenization and NER?
Tokenization: 340k words/sec (1 node) to 7M words/sec (10 nodes). NER: 38k words/sec (1 node) to 136k words/sec (10 nodes).
What were the BERT Base and BERT Tiny word-per-second benchmarks on 1 node vs. 10 nodes?
BERT Base: 19k words/sec (1 node) to 76k words/sec (10 nodes). BERT Tiny: 170k words/sec (1 node) to ~500k words/sec (10 nodes).
What are the three ways to use Spark NLP?
Pre-trained pipelines, pre-trained models, and training your own models.
How many pre-trained pipelines and models does Spark NLP offer?
Over 90 pre-trained pipelines (supporting up to 13 languages) and over 250 pre-trained models (supporting up to 46 languages).
What is a limitation of pre-trained pipelines?
They are not flexible; you cannot add or remove specific tasks, and they may include unnecessary computations.
What is a caveat of using pre-trained models?
Some models depend on specific embeddings (e.g., a NER model trained on BERT with 128 dims cannot use a BERT with 256 dims).
How can you train your own POS tagger in Spark NLP?
Use the Perceptron approach; convert data to the POS class format, and train on datasets from Universal Dependencies (over 100 languages).
What format is required for training a custom NER model?
CoNLL 2003 format
Example: Training a NER model with BERT on Google Colab took how long and achieved what F1?
16 minutes, 91% micro F1 on dev set and 90% on CoNLL eval.
What is the maximum number of classes supported in Spark NLP's multi-class classifier?
100 classes
How often does Spark NLP release updates?
One release every two weeks (over 73 releases in three years).

Ask anything
We've read this whole study set, so questions about it get the best answers.