1. Home
  2. Explore
  3. Computer Science
  4. Spark NLP Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Spark NLP Overview

  • 43Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Library Overview
Spark NLP is an
licensed software library for Python, Java, and Scala.

43 questions

  1. 1
    Spark NLP is an
    _____
    licensed software library for Python, Java, and Scala.
    Hint

    This license allows both personal and commercial use.

    Answer

    Apache 2.0

  2. 2
    Every Spark NLP pipeline is also a
    _____
    pipeline.
    Hint

    Think about the underlying distributed computing framework.

    Answer

    Spark ML

  3. 3
    Spark NLP is the only open source NLP library that natively scales to a
    _____
    .
    Hint

    This allows processing on multiple machines for big data.

    Answer

    cluster

  4. 4
    Spark NLP can run on any Apache
    _____
    cluster.
    Hint

    The library is built on top of this distributed computing system.

    Answer

    Spark

  5. 5
    The three design goals of Spark NLP are state-of-the-art accuracy, performance/speed, and
    _____
    .
    Hint

    This goal ensures the library can handle large amounts of data across multiple machines.

    Answer

    scalability

  6. 6
    Spark NLP achieved a
    _____
    F1 score on the CoNLL-2003 test set for NER using BERT Large.
    Hint

    This score is a specific number after the decimal point.

    Answer

    93.3

  7. 7
    On the CoNLL-2003 dev set, Spark NLP achieved a
    _____
    F1 score using BERT Large.
    Hint

    This score is slightly higher than the test set score.

    Answer

    95.9

  8. 8
    In a comparison with spaCy, Spark NLP achieved higher accuracy with default parameters; spaCy reached almost
    _____
    F1 on a dev dataset.
    Hint

    This is a percentage value just below 93.

    Answer

    92%

  9. 9
    Spark NLP's classifiers can use over
    _____
    pre-trained word and sentence embeddings.
    Hint

    This number is between 80 and 100.

    Answer

    90

  10. 10
    Spark NLP's language detection achieves
    _____
    accuracy for 22 languages.
    Hint

    This is a very high percentage, almost perfect.

    Answer

    99%

  11. 11
    Spark NLP includes built-in
    _____
    and multi-label text classification.
    Hint

    This type of classification assigns each document to a single class among many.

    Answer

    multi-class

  12. 12
    Detecting toxic comments is an example of
    _____
    text classification.
    Hint

    This type allows multiple labels for a single document.

    Answer

    multi-label

  13. 13
    Spark NLP's language detection models are trained over
    _____
    Wikipedia pages.
    Hint

    This is a large number, in the millions.

    Answer

    8 million

  14. 14
    Spark NLP's spell checking model was initially created to handle bad inputs from
    _____
    .
    Hint

    This technology converts images of text into machine-readable text.

    Answer

    OCR

  15. 15
    Spark NLP comes with
    _____
    word embedding models right out of the box.
    Hint

    This is a round number, slightly more than 40.

    Answer

    50

  16. 16
    Spark NLP includes transformer models such as BERT, ALBERT, ELECTRA, XLNet, and
    _____
    .
    Hint

    This is another contextual embedding model, named after a famous character.

    Answer

    ELMO

  17. 17
    Tiny BERT is
    _____
    times smaller than BERT-Base.
    Hint

    This is the factor by which the model size is reduced.

    Answer

    24

  18. 18
    With implementing dynamic shapes, Spark NLP improved BERT embeddings memory by
    _____
    .
    Hint

    This is a percentage improvement in memory usage.

    Answer

    30%

  19. 19
    Spark NLP offers over
    _____
    pre-trained embeddings that can be used with classifiers.
    Hint

    This number is the same as the number of embeddings for classifiers.

    Answer

    90

  20. 20
    In early 2020, Spark NLP improved training speed by over
    _____
    when moving to TensorFlow 1.15.
    Hint

    This is a percentage improvement in speed.

    Answer

    60%

  21. 21
    Using GPU in Spark NLP can make tasks
    _____
    faster in both training and prediction.
    Hint

    This is a range of percentage improvement.

    Answer

    40-50%

  22. 22
    Using custom TensorFlow optimized for Intel (MKL), training French NER was
    _____
    faster than GPU.
    Hint

    This is a specific percentage, less than 20.

    Answer

    19%

  23. 23
    With dynamic shapes, Spark NLP improved BERT performance by
    _____
    .
    Hint

    This is a significant percentage improvement in speed.

    Answer

    70%

  24. 24
    On a single machine, Spark NLP can tokenize
    _____
    words per second.
    Hint

    This is a number in the hundreds of thousands.

    Answer

    340,000

  25. 25
    On a 10-node cluster, tokenization speed reaches
    _____
    words per second.
    Hint

    This is in the millions.

    Answer

    7 million

  26. 26
    For NER on a single machine, Spark NLP processes
    _____
    words per second.
    Hint

    This is a number in the tens of thousands.

    Answer

    38,000

  27. 27
    On a 10-node cluster, NER speed increases to
    _____
    words per second.
    Hint

    This is a number just over 100,000.

    Answer

    136,000

  28. 28
    For BERT embeddings on a single machine, Spark NLP processes
    _____
    words per second.
    Hint

    This is a number in the tens of thousands.

    Answer

    19,000

  29. 29
    Using BERT-Tiny on a single machine, Spark NLP processes
    _____
    words per second.
    Hint

    This is in the hundreds of thousands.

    Answer

    170,000

  30. 30
    On a 10-node cluster with BERT-Tiny, speed reaches almost
    _____
    words per second.
    Hint

    This is half a million.

    Answer

    500,000

  31. 31
    Spark NLP needs
    _____
    code change to scale a pipeline on a Spark cluster.
    Hint

    This means no modifications are required.

    Answer

    zero

  32. 32
    Scaling in Spark NLP is not
    _____
    ; it depends on task and cluster tuning.
    Hint

    This means adding more nodes does not give proportional speedup.

    Answer

    linear

  33. 33
    Spark NLP has over
    _____
    pre-trained pipelines supporting up to 13 languages.
    Hint

    This is a number in the nineties.

    Answer

    90

  34. 34
    Spark NLP offers over
    _____
    pre-trained models supporting up to 46 languages.
    Hint

    This is a number above 200.

    Answer

    250

  35. 35
    Spark NLP has over
    _____
    pre-trained models and pipelines in total.
    Hint

    This number is between 300 and 400.

    Answer

    330

  36. 36
    Pre-trained pipelines in Spark NLP work both online and
    _____
    .
    Hint

    They can be used without an internet connection.

    Answer

    offline

  37. 37
    Pre-trained models in Spark NLP are flexible and allow
    _____
    pipelines.
    Hint

    Users can build their own pipeline with only the needed components.

    Answer

    customized

  38. 38
    Some Spark NLP models depend on each other; for example, a NER model must use the same
    _____
    it was trained on.
    Hint

    This is a specific type of embedding that the NER model relies on.

    Answer

    BERT model

  39. 39
    Training your own POS tagger in Spark NLP uses the
    _____
    approach.
    Hint

    This is a type of machine learning algorithm for classification.

    Answer

    perceptron

  40. 40
    The acceptable format for training NER in Spark NLP is
    _____
    .
    Hint

    This is a common shared task format for named entity recognition.

    Answer

    CoNLL 2003

  41. 41
    Training NER with BERT on Google Colab achieved
    _____
    micro F1 on dev data.
    Hint

    This is a percentage in the low nineties.

    Answer

    91%

  42. 42
    Spark NLP's multi-class classifier supports up to
    _____
    classes.
    Hint

    This is a round number, one hundred.

    Answer

    100

  43. 43
    Spark NLP has had over
    _____
    releases in the past three years, with one release every two weeks.
    Hint

    This number is in the seventies.

    Answer

    73

1 of 43
Question 1 of 43

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent