spark-nlp 5.5.0rc1__tar.gz → 5.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of spark-nlp might be problematic. Click here for more details.

Files changed (262) hide show
  1. spark-nlp-5.5.2/PKG-INFO +345 -0
  2. spark-nlp-5.5.2/README.md +313 -0
  3. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/setup.py +1 -1
  4. spark-nlp-5.5.2/spark_nlp.egg-info/PKG-INFO +345 -0
  5. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/spark_nlp.egg-info/SOURCES.txt +6 -0
  6. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/__init__.py +12 -6
  7. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/__init__.py +1 -0
  8. spark-nlp-5.5.2/sparknlp/annotator/classifier_dl/bert_for_multiple_choice.py +161 -0
  9. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/__init__.py +1 -0
  10. spark-nlp-5.5.2/sparknlp/annotator/cv/blip_for_question_answering.py +172 -0
  11. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/__init__.py +1 -0
  12. spark-nlp-5.5.2/sparknlp/annotator/embeddings/auto_gguf_embeddings.py +538 -0
  13. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/nomic_embeddings.py +3 -3
  14. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/auto_gguf_model.py +17 -27
  15. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/cpm_transformer.py +5 -5
  16. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/nllb_transformer.py +4 -4
  17. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/phi3_transformer.py +4 -4
  18. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/qwen_transformer.py +3 -3
  19. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/__init__.py +1 -0
  20. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/image_assembler.py +11 -0
  21. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/light_pipeline.py +20 -9
  22. spark-nlp-5.5.2/sparknlp/base/prompt_assembler.py +207 -0
  23. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/internal/__init__.py +22 -0
  24. spark-nlp-5.5.2/sparknlp/reader/__init__.py +15 -0
  25. spark-nlp-5.5.2/sparknlp/reader/sparknlp_reader.py +121 -0
  26. spark-nlp-5.5.0rc1/PKG-INFO +0 -1357
  27. spark-nlp-5.5.0rc1/README.md +0 -1325
  28. spark-nlp-5.5.0rc1/spark_nlp.egg-info/PKG-INFO +0 -1357
  29. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/com/__init__.py +0 -0
  30. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/com/johnsnowlabs/__init__.py +0 -0
  31. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/com/johnsnowlabs/ml/__init__.py +0 -0
  32. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/com/johnsnowlabs/ml/ai/__init__.py +0 -0
  33. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/com/johnsnowlabs/nlp/__init__.py +0 -0
  34. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/setup.cfg +0 -0
  35. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/spark_nlp.egg-info/.uuid +0 -0
  36. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/spark_nlp.egg-info/dependency_links.txt +0 -0
  37. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/spark_nlp.egg-info/top_level.txt +0 -0
  38. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotation.py +0 -0
  39. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotation_audio.py +0 -0
  40. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotation_image.py +0 -0
  41. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/__init__.py +0 -0
  42. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/__init__.py +0 -0
  43. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/hubert_for_ctc.py +0 -0
  44. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/wav2vec2_for_ctc.py +0 -0
  45. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/whisper_for_ctc.py +0 -0
  46. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/chunk2_doc.py +0 -0
  47. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/chunker.py +0 -0
  48. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_question_answering.py +0 -0
  49. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_sequence_classification.py +0 -0
  50. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_token_classification.py +0 -0
  51. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_zero_shot_classification.py +0 -0
  52. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bart_for_zero_shot_classification.py +0 -0
  53. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_question_answering.py +0 -0
  54. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_sequence_classification.py +0 -0
  55. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_token_classification.py +0 -0
  56. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_zero_shot_classification.py +0 -0
  57. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_question_answering.py +0 -0
  58. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_sequence_classification.py +0 -0
  59. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_token_classification.py +0 -0
  60. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_zero_shot_classification.py +0 -0
  61. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/classifier_dl.py +0 -0
  62. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_question_answering.py +0 -0
  63. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_sequence_classification.py +0 -0
  64. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_token_classification.py +0 -0
  65. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_zero_shot_classification.py +0 -0
  66. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_question_answering.py +0 -0
  67. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_sequence_classification.py +0 -0
  68. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_token_classification.py +0 -0
  69. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_zero_shot_classification.py +0 -0
  70. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/longformer_for_question_answering.py +0 -0
  71. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/longformer_for_sequence_classification.py +0 -0
  72. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/longformer_for_token_classification.py +0 -0
  73. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/mpnet_for_question_answering.py +0 -0
  74. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/mpnet_for_sequence_classification.py +0 -0
  75. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/mpnet_for_token_classification.py +0 -0
  76. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/multi_classifier_dl.py +0 -0
  77. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_question_answering.py +0 -0
  78. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_sequence_classification.py +0 -0
  79. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_token_classification.py +0 -0
  80. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_zero_shot_classification.py +0 -0
  81. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/sentiment_dl.py +0 -0
  82. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/tapas_for_question_answering.py +0 -0
  83. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_question_answering.py +0 -0
  84. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_sequence_classification.py +0 -0
  85. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_token_classification.py +0 -0
  86. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_zero_shot_classification.py +0 -0
  87. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlnet_for_sequence_classification.py +0 -0
  88. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlnet_for_token_classification.py +0 -0
  89. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/coref/__init__.py +0 -0
  90. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/coref/spanbert_coref.py +0 -0
  91. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/clip_for_zero_shot_classification.py +0 -0
  92. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/convnext_for_image_classification.py +0 -0
  93. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/swin_for_image_classification.py +0 -0
  94. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/vision_encoder_decoder_for_image_captioning.py +0 -0
  95. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/vit_for_image_classification.py +0 -0
  96. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/date2_chunk.py +0 -0
  97. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/dependency/__init__.py +0 -0
  98. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/dependency/dependency_parser.py +0 -0
  99. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/dependency/typed_dependency_parser.py +0 -0
  100. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/document_character_text_splitter.py +0 -0
  101. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/document_normalizer.py +0 -0
  102. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/document_token_splitter.py +0 -0
  103. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/document_token_splitter_test.py +0 -0
  104. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/albert_embeddings.py +0 -0
  105. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/bert_embeddings.py +0 -0
  106. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/bert_sentence_embeddings.py +0 -0
  107. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/bge_embeddings.py +0 -0
  108. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/camembert_embeddings.py +0 -0
  109. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/chunk_embeddings.py +0 -0
  110. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/deberta_embeddings.py +0 -0
  111. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/distil_bert_embeddings.py +0 -0
  112. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/doc2vec.py +0 -0
  113. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/e5_embeddings.py +0 -0
  114. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/elmo_embeddings.py +0 -0
  115. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/instructor_embeddings.py +0 -0
  116. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/longformer_embeddings.py +0 -0
  117. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/mpnet_embeddings.py +0 -0
  118. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/mxbai_embeddings.py +0 -0
  119. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/roberta_embeddings.py +0 -0
  120. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/roberta_sentence_embeddings.py +0 -0
  121. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/sentence_embeddings.py +0 -0
  122. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/snowflake_embeddings.py +0 -0
  123. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/uae_embeddings.py +0 -0
  124. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/universal_sentence_encoder.py +0 -0
  125. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/word2vec.py +0 -0
  126. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/word_embeddings.py +0 -0
  127. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/xlm_roberta_embeddings.py +0 -0
  128. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/xlm_roberta_sentence_embeddings.py +0 -0
  129. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/xlnet_embeddings.py +0 -0
  130. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/er/__init__.py +0 -0
  131. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/er/entity_ruler.py +0 -0
  132. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/graph_extraction.py +0 -0
  133. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/keyword_extraction/__init__.py +0 -0
  134. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/keyword_extraction/yake_keyword_extraction.py +0 -0
  135. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ld_dl/__init__.py +0 -0
  136. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ld_dl/language_detector_dl.py +0 -0
  137. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/lemmatizer.py +0 -0
  138. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/__init__.py +0 -0
  139. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/big_text_matcher.py +0 -0
  140. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/date_matcher.py +0 -0
  141. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/multi_date_matcher.py +0 -0
  142. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/regex_matcher.py +0 -0
  143. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/text_matcher.py +0 -0
  144. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/n_gram_generator.py +0 -0
  145. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/__init__.py +0 -0
  146. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_approach.py +0 -0
  147. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_converter.py +0 -0
  148. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_crf.py +0 -0
  149. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_dl.py +0 -0
  150. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_overwriter.py +0 -0
  151. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/zero_shot_ner_model.py +0 -0
  152. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/normalizer.py +0 -0
  153. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/openai/__init__.py +0 -0
  154. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/openai/openai_completion.py +0 -0
  155. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/openai/openai_embeddings.py +0 -0
  156. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/param/__init__.py +0 -0
  157. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/param/classifier_encoder.py +0 -0
  158. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/param/evaluation_dl_params.py +0 -0
  159. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/pos/__init__.py +0 -0
  160. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/pos/perceptron.py +0 -0
  161. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/sentence/__init__.py +0 -0
  162. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/sentence/sentence_detector.py +0 -0
  163. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/sentence/sentence_detector_dl.py +0 -0
  164. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/sentiment/__init__.py +0 -0
  165. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/sentiment/sentiment_detector.py +0 -0
  166. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/sentiment/vivekn_sentiment.py +0 -0
  167. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/__init__.py +0 -0
  168. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/bart_transformer.py +0 -0
  169. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/gpt2_transformer.py +0 -0
  170. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/llama2_transformer.py +0 -0
  171. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/llama3_transformer.py +0 -0
  172. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/m2m100_transformer.py +0 -0
  173. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/marian_transformer.py +0 -0
  174. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/mistral_transformer.py +0 -0
  175. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/phi2_transformer.py +0 -0
  176. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/starcoder_transformer.py +0 -0
  177. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/t5_transformer.py +0 -0
  178. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/similarity/__init__.py +0 -0
  179. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/similarity/document_similarity_ranker.py +0 -0
  180. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/__init__.py +0 -0
  181. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/context_spell_checker.py +0 -0
  182. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/norvig_sweeting.py +0 -0
  183. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/symmetric_delete.py +0 -0
  184. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/stemmer.py +0 -0
  185. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/stop_words_cleaner.py +0 -0
  186. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/tf_ner_dl_graph_builder.py +0 -0
  187. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/token/__init__.py +0 -0
  188. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/token/chunk_tokenizer.py +0 -0
  189. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/token/recursive_tokenizer.py +0 -0
  190. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/token/regex_tokenizer.py +0 -0
  191. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/token/tokenizer.py +0 -0
  192. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/token2_chunk.py +0 -0
  193. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ws/__init__.py +0 -0
  194. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/annotator/ws/word_segmenter.py +0 -0
  195. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/audio_assembler.py +0 -0
  196. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/doc2_chunk.py +0 -0
  197. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/document_assembler.py +0 -0
  198. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/embeddings_finisher.py +0 -0
  199. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/finisher.py +0 -0
  200. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/graph_finisher.py +0 -0
  201. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/has_recursive_fit.py +0 -0
  202. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/has_recursive_transform.py +0 -0
  203. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/multi_document_assembler.py +0 -0
  204. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/recursive_pipeline.py +0 -0
  205. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/table_assembler.py +0 -0
  206. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/base/token_assembler.py +0 -0
  207. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/__init__.py +0 -0
  208. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/annotator_approach.py +0 -0
  209. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/annotator_model.py +0 -0
  210. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/annotator_properties.py +0 -0
  211. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/annotator_type.py +0 -0
  212. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/coverage_result.py +0 -0
  213. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/match_strategy.py +0 -0
  214. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/properties.py +0 -0
  215. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/read_as.py +0 -0
  216. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/recursive_annotator_approach.py +0 -0
  217. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/storage.py +0 -0
  218. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/common/utils.py +0 -0
  219. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/functions.py +0 -0
  220. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/internal/annotator_java_ml.py +0 -0
  221. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/internal/annotator_transformer.py +0 -0
  222. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/internal/extended_java_wrapper.py +0 -0
  223. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/internal/params_getters_setters.py +0 -0
  224. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/internal/recursive.py +0 -0
  225. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/logging/__init__.py +0 -0
  226. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/logging/comet.py +0 -0
  227. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/pretrained/__init__.py +0 -0
  228. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/pretrained/pretrained_pipeline.py +0 -0
  229. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/pretrained/resource_downloader.py +0 -0
  230. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/pretrained/utils.py +0 -0
  231. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/__init__.py +0 -0
  232. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/__init__.py +0 -0
  233. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/graph_builders.py +0 -0
  234. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/__init__.py +0 -0
  235. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/create_graph.py +0 -0
  236. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/dataset_encoder.py +0 -0
  237. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/ner_model.py +0 -0
  238. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/ner_model_saver.py +0 -0
  239. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/sentence_grouper.py +0 -0
  240. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/__init__.py +0 -0
  241. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/core_rnn_cell.py +0 -0
  242. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/fused_rnn_cell.py +0 -0
  243. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/gru_ops.py +0 -0
  244. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/lstm_ops.py +0 -0
  245. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/rnn.py +0 -0
  246. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/rnn_cell.py +0 -0
  247. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/__init__.py +0 -0
  248. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/graph_builders.py +0 -0
  249. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/__init__.py +0 -0
  250. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/create_graph.py +0 -0
  251. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/dataset_encoder.py +0 -0
  252. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/ner_model.py +0 -0
  253. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/ner_model_saver.py +0 -0
  254. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/sentence_grouper.py +0 -0
  255. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/conll.py +0 -0
  256. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/conllu.py +0 -0
  257. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/pos.py +0 -0
  258. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/pub_tator.py +0 -0
  259. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/spacy_to_annotation.py +0 -0
  260. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/training/tfgraphs.py +0 -0
  261. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/upload_to_hub.py +0 -0
  262. {spark-nlp-5.5.0rc1 → spark-nlp-5.5.2}/sparknlp/util.py +0 -0
@@ -0,0 +1,345 @@
1
+ Metadata-Version: 2.1
2
+ Name: spark-nlp
3
+ Version: 5.5.2
4
+ Summary: John Snow Labs Spark NLP is a natural language processing library built on top of Apache Spark ML. It provides simple, performant & accurate NLP annotations for machine learning pipelines, that scale easily in a distributed environment.
5
+ Home-page: https://github.com/JohnSnowLabs/spark-nlp
6
+ Author: John Snow Labs
7
+ Keywords: NLP spark vision speech deep learning transformer tensorflow BERT GPT-2 Wav2Vec2 ViT
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Information Technology
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Operating System :: MacOS :: MacOS X
16
+ Classifier: Operating System :: Microsoft :: Windows
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.6
19
+ Classifier: Programming Language :: Python :: 3.7
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Classifier: Topic :: Software Development :: Internationalization
26
+ Classifier: Topic :: Software Development :: Localization
27
+ Classifier: Topic :: Software Development :: Build Tools
28
+ Classifier: Topic :: Text Processing :: Linguistic
29
+ Classifier: Topic :: Scientific/Engineering
30
+ Classifier: Typing :: Typed
31
+ Description-Content-Type: text/markdown
32
+
33
+ # Spark NLP: State-of-the-Art Natural Language Processing & LLMs Library
34
+
35
+ <p align="center">
36
+ <a href="https://github.com/JohnSnowLabs/spark-nlp/actions" alt="build">
37
+ <img src="https://github.com/JohnSnowLabs/spark-nlp/workflows/build/badge.svg" /></a>
38
+ <a href="https://github.com/JohnSnowLabs/spark-nlp/releases" alt="Current Release Version">
39
+ <img src="https://img.shields.io/github/v/release/JohnSnowLabs/spark-nlp.svg?style=flat-square&logo=github" /></a>
40
+ <a href="https://search.maven.org/artifact/com.johnsnowlabs.nlp/spark-nlp_2.12" alt="Maven Central">
41
+ <img src="https://maven-badges.herokuapp.com/maven-central/com.johnsnowlabs.nlp/spark-nlp_2.12/badge.svg" /></a>
42
+ <a href="https://badge.fury.io/py/spark-nlp" alt="PyPI version">
43
+ <img src="https://badge.fury.io/py/spark-nlp.svg" /></a>
44
+ <a href="https://anaconda.org/JohnSnowLabs/spark-nlp" alt="Anaconda-Cloud">
45
+ <img src="https://anaconda.org/johnsnowlabs/spark-nlp/badges/version.svg" /></a>
46
+ <a href="https://github.com/JohnSnowLabs/spark-nlp/blob/master/LICENSE" alt="License">
47
+ <img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /></a>
48
+ <a href="https://pypi.org/project/spark-nlp/" alt="PyPi downloads">
49
+ <img src="https://static.pepy.tech/personalized-badge/spark-nlp?period=total&units=international_system&left_color=grey&right_color=orange&left_text=pip%20downloads" /></a>
50
+ </p>
51
+
52
+ Spark NLP is a state-of-the-art Natural Language Processing library built on top of Apache Spark. It provides **simple**, **performant** & **accurate** NLP annotations for machine learning pipelines that **scale** easily in a distributed environment.
53
+
54
+ Spark NLP comes with **83000+** pretrained **pipelines** and **models** in more than **200+** languages.
55
+ It also offers tasks such as **Tokenization**, **Word Segmentation**, **Part-of-Speech Tagging**, Word and Sentence **Embeddings**, **Named Entity Recognition**, **Dependency Parsing**, **Spell Checking**, **Text Classification**, **Sentiment Analysis**, **Token Classification**, **Machine Translation** (+180 languages), **Summarization**, **Question Answering**, **Table Question Answering**, **Text Generation**, **Image Classification**, **Image to Text (captioning)**, **Automatic Speech Recognition**, **Zero-Shot Learning**, and many more [NLP tasks](#features).
56
+
57
+ **Spark NLP** is the only open-source NLP library in **production** that offers state-of-the-art transformers such as **BERT**, **CamemBERT**, **ALBERT**, **ELECTRA**, **XLNet**, **DistilBERT**, **RoBERTa**, **DeBERTa**, **XLM-RoBERTa**, **Longformer**, **ELMO**, **Universal Sentence Encoder**, **Llama-2**, **M2M100**, **BART**, **Instructor**, **E5**, **Google T5**, **MarianMT**, **OpenAI GPT2**, **Vision Transformers (ViT)**, **OpenAI Whisper**, **Llama**, **Mistral**, **Phi**, **Qwen2**, and many more not only to **Python** and **R**, but also to **JVM** ecosystem (**Java**, **Scala**, and **Kotlin**) at **scale** by extending **Apache Spark** natively.
58
+
59
+ ## Model Importing Support
60
+
61
+ Spark NLP provides easy support for importing models from various popular frameworks:
62
+
63
+ - **TensorFlow**
64
+ - **ONNX**
65
+ - **OpenVINO**
66
+ - **Llama.cpp (GGUF)**
67
+
68
+ This wide range of support allows you to seamlessly integrate models from different sources into your Spark NLP workflows, enhancing flexibility and compatibility with existing machine learning ecosystems.
69
+
70
+ ## Project's website
71
+
72
+ Take a look at our official Spark NLP page: [https://sparknlp.org/](https://sparknlp.org/) for user
73
+ documentation and examples
74
+
75
+ ## Features
76
+
77
+ - [Text Preprocessing](https://sparknlp.org/docs/en/features#text-preproccesing)
78
+ - [Parsing and Analysis](https://sparknlp.org/docs/en/features#parsing-and-analysis)
79
+ - [Sentiment and Classification](https://sparknlp.org/docs/en/features#sentiment-and-classification)
80
+ - [Embeddings](https://sparknlp.org/docs/en/features#embeddings)
81
+ - [Classification and Question Answering](https://sparknlp.org/docs/en/features#classification-and-question-answering-models)
82
+ - [Machine Translation and Generation](https://sparknlp.org/docs/en/features#machine-translation-and-generation)
83
+ - [Image and Speech](https://sparknlp.org/docs/en/features#image-and-speech)
84
+ - [Integration and Interoperability (ONNX, OpenVINO)](https://sparknlp.org/docs/en/features#integration-and-interoperability)
85
+ - [Pre-trained Models (36000+ in +200 languages)](https://sparknlp.org/docs/en/features#pre-trained-models)
86
+ - [Multi-lingual Support](https://sparknlp.org/docs/en/features#multi-lingual-support)
87
+
88
+ ## Quick Start
89
+
90
+ This is a quick example of how to use Spark NLP pre-trained pipeline in Python and PySpark:
91
+
92
+ ```sh
93
+ $ java -version
94
+ # should be Java 8 or 11 (Oracle or OpenJDK)
95
+ $ conda create -n sparknlp python=3.7 -y
96
+ $ conda activate sparknlp
97
+ # spark-nlp by default is based on pyspark 3.x
98
+ $ pip install spark-nlp==5.5.2 pyspark==3.3.1
99
+ ```
100
+
101
+ In Python console or Jupyter `Python3` kernel:
102
+
103
+ ```python
104
+ # Import Spark NLP
105
+ from sparknlp.base import *
106
+ from sparknlp.annotator import *
107
+ from sparknlp.pretrained import PretrainedPipeline
108
+ import sparknlp
109
+
110
+ # Start SparkSession with Spark NLP
111
+ # start() functions has 3 parameters: gpu, apple_silicon, and memory
112
+ # sparknlp.start(gpu=True) will start the session with GPU support
113
+ # sparknlp.start(apple_silicon=True) will start the session with macOS M1 & M2 support
114
+ # sparknlp.start(memory="16G") to change the default driver memory in SparkSession
115
+ spark = sparknlp.start()
116
+
117
+ # Download a pre-trained pipeline
118
+ pipeline = PretrainedPipeline('explain_document_dl', lang='en')
119
+
120
+ # Your testing dataset
121
+ text = """
122
+ The Mona Lisa is a 16th century oil painting created by Leonardo.
123
+ It's held at the Louvre in Paris.
124
+ """
125
+
126
+ # Annotate your testing dataset
127
+ result = pipeline.annotate(text)
128
+
129
+ # What's in the pipeline
130
+ list(result.keys())
131
+ Output: ['entities', 'stem', 'checked', 'lemma', 'document',
132
+ 'pos', 'token', 'ner', 'embeddings', 'sentence']
133
+
134
+ # Check the results
135
+ result['entities']
136
+ Output: ['Mona Lisa', 'Leonardo', 'Louvre', 'Paris']
137
+ ```
138
+
139
+ For more examples, you can visit our dedicated [examples](https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples) to showcase all Spark NLP use cases!
140
+
141
+ ### Packages Cheatsheet
142
+
143
+ This is a cheatsheet for corresponding Spark NLP Maven package to Apache Spark / PySpark major version:
144
+
145
+ | Apache Spark | Spark NLP on CPU | Spark NLP on GPU | Spark NLP on AArch64 (linux) | Spark NLP on Apple Silicon |
146
+ |-------------------------|--------------------|----------------------------|--------------------------------|--------------------------------------|
147
+ | 3.0/3.1/3.2/3.3/3.4/3.5 | `spark-nlp` | `spark-nlp-gpu` | `spark-nlp-aarch64` | `spark-nlp-silicon` |
148
+ | Start Function | `sparknlp.start()` | `sparknlp.start(gpu=True)` | `sparknlp.start(aarch64=True)` | `sparknlp.start(apple_silicon=True)` |
149
+
150
+ NOTE: `M1/M2` and `AArch64` are under `experimental` support. Access and support to these architectures are limited by the
151
+ community and we had to build most of the dependencies by ourselves to make them compatible. We support these two
152
+ architectures, however, they may not work in some environments.
153
+
154
+ ## Pipelines and Models
155
+
156
+ For a quick example of using pipelines and models take a look at our official [documentation](https://sparknlp.org/docs/en/install#pipelines-and-models)
157
+
158
+ #### Please check out our Models Hub for the full list of [pre-trained models](https://sparknlp.org/models) with examples, demo, benchmark, and more
159
+
160
+ ## Platform and Ecosystem Support
161
+
162
+ ### Apache Spark Support
163
+
164
+ Spark NLP *5.5.2* has been built on top of Apache Spark 3.4 while fully supports Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, 3.4.x, and 3.5.x
165
+
166
+ | Spark NLP | Apache Spark 3.5.x | Apache Spark 3.4.x | Apache Spark 3.3.x | Apache Spark 3.2.x | Apache Spark 3.1.x | Apache Spark 3.0.x | Apache Spark 2.4.x | Apache Spark 2.3.x |
167
+ |-----------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
168
+ | 5.5.x | YES | YES | YES | YES | YES | YES | NO | NO |
169
+ | 5.4.x | YES | YES | YES | YES | YES | YES | NO | NO |
170
+ | 5.3.x | YES | YES | YES | YES | YES | YES | NO | NO |
171
+ | 5.2.x | YES | YES | YES | YES | YES | YES | NO | NO |
172
+ | 5.1.x | Partially | YES | YES | YES | YES | YES | NO | NO |
173
+ | 5.0.x | YES | YES | YES | YES | YES | YES | NO | NO |
174
+
175
+ Find out more about `Spark NLP` versions from our [release notes](https://github.com/JohnSnowLabs/spark-nlp/releases).
176
+
177
+ ### Scala and Python Support
178
+
179
+ | Spark NLP | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10| Scala 2.11 | Scala 2.12 |
180
+ |-----------|------------|------------|------------|------------|------------|------------|------------|
181
+ | 5.5.x | NO | YES | YES | YES | YES | NO | YES |
182
+ | 5.4.x | NO | YES | YES | YES | YES | NO | YES |
183
+ | 5.3.x | NO | YES | YES | YES | YES | NO | YES |
184
+ | 5.2.x | NO | YES | YES | YES | YES | NO | YES |
185
+ | 5.1.x | NO | YES | YES | YES | YES | NO | YES |
186
+ | 5.0.x | NO | YES | YES | YES | YES | NO | YES |
187
+
188
+ Find out more about 4.x `SparkNLP` versions in our official [documentation](https://sparknlp.org/docs/en/install#apache-spark-support)
189
+
190
+ ### Databricks Support
191
+
192
+ Spark NLP 5.5.2 has been tested and is compatible with the following runtimes:
193
+
194
+ | **CPU** | **GPU** |
195
+ |--------------------|--------------------|
196
+ | 14.1 / 14.1 ML | 14.1 ML & GPU |
197
+ | 14.2 / 14.2 ML | 14.2 ML & GPU |
198
+ | 14.3 / 14.3 ML | 14.3 ML & GPU |
199
+ | 15.0 / 15.0 ML | 15.0 ML & GPU |
200
+ | 15.1 / 15.0 ML | 15.1 ML & GPU |
201
+ | 15.2 / 15.0 ML | 15.2 ML & GPU |
202
+ | 15.3 / 15.0 ML | 15.3 ML & GPU |
203
+ | 15.4 / 15.0 ML | 15.4 ML & GPU |
204
+
205
+ We are compatible with older runtimes. For a full list check databricks support in our official [documentation](https://sparknlp.org/docs/en/install#databricks-support)
206
+
207
+ ### EMR Support
208
+
209
+ Spark NLP 5.5.2 has been tested and is compatible with the following EMR releases:
210
+
211
+ | **EMR Release** |
212
+ |--------------------|
213
+ | emr-6.13.0 |
214
+ | emr-6.14.0 |
215
+ | emr-6.15.0 |
216
+ | emr-7.0.0 |
217
+ | emr-7.1.0 |
218
+ | emr-7.2.0 |
219
+
220
+ We are compatible with older EMR releases. For a full list check EMR support in our official [documentation](https://sparknlp.org/docs/en/install#emr-support)
221
+
222
+ Full list of [Amazon EMR 6.x releases](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-6x.html)
223
+ Full list of [Amazon EMR 7.x releases](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-7x.html)
224
+
225
+ NOTE: The EMR 6.1.0 and 6.1.1 are not supported.
226
+
227
+ ## Installation
228
+
229
+ ### Command line (requires internet connection)
230
+
231
+ To install spark-nlp packages through command line follow [these instructions](https://sparknlp.org/docs/en/install#command-line) from our official documentation
232
+
233
+ ### Scala
234
+
235
+ Spark NLP supports Scala 2.12.15 if you are using Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, and 3.4.x versions. Our packages are
236
+ deployed to Maven central. To add any of our packages as a dependency in your application you can follow [these instructions](https://sparknlp.org/docs/en/install#scala-and-java)
237
+ from our official documentation.
238
+
239
+ If you are interested, there is a simple SBT project for Spark NLP to guide you on how to use it in your
240
+ projects [Spark NLP SBT S5.5.2r](https://github.com/maziyarpanahi/spark-nlp-starter)
241
+
242
+ ### Python
243
+
244
+ Spark NLP supports Python 3.7.x and above depending on your major PySpark version.
245
+ Check all available installations for Python in our official [documentation](https://sparknlp.org/docs/en/install#python)
246
+
247
+ ### Compiled JARs
248
+
249
+ To compile the jars from source follow [these instructions](https://sparknlp.org/docs/en/compiled#jars) from our official documenation
250
+
251
+ ## Platform-Specific Instructions
252
+
253
+ For detailed instructions on how to use Spark NLP on supported platforms, please refer to our official documentation:
254
+
255
+ | Platform | Supported Language(s) |
256
+ |-------------------------|-----------------------|
257
+ | [Apache Zeppelin](https://sparknlp.org/docs/en/install#apache-zeppelin) | Scala, Python |
258
+ | [Jupyter Notebook](https://sparknlp.org/docs/en/install#jupter-notebook) | Python |
259
+ | [Google Colab Notebook](https://sparknlp.org/docs/en/install#google-colab-notebook) | Python |
260
+ | [Kaggle Kernel](https://sparknlp.org/docs/en/install#kaggle-kernel) | Python |
261
+ | [Databricks Cluster](https://sparknlp.org/docs/en/install#databricks-cluster) | Scala, Python |
262
+ | [EMR Cluster](https://sparknlp.org/docs/en/install#emr-cluster) | Scala, Python |
263
+ | [GCP Dataproc Cluster](https://sparknlp.org/docs/en/install#gcp-dataproc) | Scala, Python |
264
+
265
+ ### Offline
266
+
267
+ Spark NLP library and all the pre-trained models/pipelines can be used entirely offline with no access to the Internet.
268
+ Please check [these instructions](https://sparknlp.org/docs/en/install#s3-integration) from our official documentation
269
+ to use Spark NLP offline
270
+
271
+ ## Advanced Settings
272
+
273
+ You can change Spark NLP configurations via Spark properties configuration.
274
+ Please check [these instructions](https://sparknlp.org/docs/en/install#sparknlp-properties) from our official documentation.
275
+
276
+ ### S3 Integration
277
+
278
+ In Spark NLP we can define S3 locations to:
279
+
280
+ - Export log files of training models
281
+ - Store tensorflow graphs used in `NerDLApproach`
282
+
283
+ Please check [these instructions](https://sparknlp.org/docs/en/install#s3-integration) from our official documentation.
284
+
285
+ ## Document5.5.2
286
+
287
+ ### Examples
288
+
289
+ Need more **examples**? Check out our dedicated [Spark NLP Examples](https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples)
290
+ repository to showcase all Spark NLP use cases!
291
+
292
+ Also, don't forget to check [Spark NLP in Action](https://sparknlp.org/demo) built by Streamlit.
293
+
294
+ #### All examples: [spark-nlp/examples](https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples)
295
+
296
+ ### FAQ
297
+
298
+ [Check our Articles and Videos page here](https://sparknlp.org/learn)
299
+
300
+ ### Citation
301
+
302
+ We have published a [paper](https://www.sciencedirect.com/science/article/pii/S2665963821000063) that you can cite for
303
+ the Spark NLP library:
304
+
305
+ ```bibtex
306
+ @article{KOCAMAN2021100058,
307
+ title = {Spark NLP: Natural language understanding at scale},
308
+ journal = {Software Impacts},
309
+ pages = {100058},
310
+ year = {2021},
311
+ issn = {2665-9638},
312
+ doi = {https://doi.org/10.1016/j.simpa.2021.100058},
313
+ url = {https://www.sciencedirect.com/science/article/pii/S2665963.2.300063},
314
+ author = {Veysel Kocaman and David Talby},
315
+ keywords = {Spark, Natural language processing, Deep learning, Tensorflow, Cluster},
316
+ abstract = {Spark NLP is a Natural Language Processing (NLP) library built on top of Apache Spark ML. It provides simple, performant & accurate NLP annotations for machine learning pipelines that can scale easily in a distributed environment. Spark NLP comes with 1100+ pretrained pipelines and models in more than 192+ languages. It supports nearly all the NLP tasks and modules that can be used seamlessly in a cluster. Downloaded more than 2.7 million times and experiencing 9x growth since January 2020, Spark NLP is used by 54% of healthcare organizations as the world’s most widely used NLP library in the enterprise.}
317
+ }
318
+ }5.5.2
319
+ ```
320
+
321
+ ## Community support
322
+
323
+ - [Slack](https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q) For live discussion with the Spark NLP community and the team
324
+ - [GitHub](https://github.com/JohnSnowLabs/spark-nlp) Bug reports, feature requests, and contributions
325
+ - [Discussions](https://github.com/JohnSnowLabs/spark-nlp/discussions) Engage with other community members, share ideas,
326
+ and show off how you use Spark NLP!
327
+ - [Medium](https://medium.com/spark-nlp) Spark NLP articles
328
+ - [YouTube](https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos) Spark NLP video tutorials
329
+
330
+ ## Contributing
331
+
332
+ We appreciate any sort of contributions:
333
+
334
+ - ideas
335
+ - feedback
336
+ - documentation
337
+ - bug reports
338
+ - NLP training and testing corpora
339
+ - Development and testing
340
+
341
+ Clone the repo and submit your pull-requests! Or directly create issues in this repo.
342
+
343
+ ## John Snow Labs
344
+
345
+ [http://johnsnowlabs.com](http://johnsnowlabs.com)
@@ -0,0 +1,313 @@
1
+ # Spark NLP: State-of-the-Art Natural Language Processing & LLMs Library
2
+
3
+ <p align="center">
4
+ <a href="https://github.com/JohnSnowLabs/spark-nlp/actions" alt="build">
5
+ <img src="https://github.com/JohnSnowLabs/spark-nlp/workflows/build/badge.svg" /></a>
6
+ <a href="https://github.com/JohnSnowLabs/spark-nlp/releases" alt="Current Release Version">
7
+ <img src="https://img.shields.io/github/v/release/JohnSnowLabs/spark-nlp.svg?style=flat-square&logo=github" /></a>
8
+ <a href="https://search.maven.org/artifact/com.johnsnowlabs.nlp/spark-nlp_2.12" alt="Maven Central">
9
+ <img src="https://maven-badges.herokuapp.com/maven-central/com.johnsnowlabs.nlp/spark-nlp_2.12/badge.svg" /></a>
10
+ <a href="https://badge.fury.io/py/spark-nlp" alt="PyPI version">
11
+ <img src="https://badge.fury.io/py/spark-nlp.svg" /></a>
12
+ <a href="https://anaconda.org/JohnSnowLabs/spark-nlp" alt="Anaconda-Cloud">
13
+ <img src="https://anaconda.org/johnsnowlabs/spark-nlp/badges/version.svg" /></a>
14
+ <a href="https://github.com/JohnSnowLabs/spark-nlp/blob/master/LICENSE" alt="License">
15
+ <img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /></a>
16
+ <a href="https://pypi.org/project/spark-nlp/" alt="PyPi downloads">
17
+ <img src="https://static.pepy.tech/personalized-badge/spark-nlp?period=total&units=international_system&left_color=grey&right_color=orange&left_text=pip%20downloads" /></a>
18
+ </p>
19
+
20
+ Spark NLP is a state-of-the-art Natural Language Processing library built on top of Apache Spark. It provides **simple**, **performant** & **accurate** NLP annotations for machine learning pipelines that **scale** easily in a distributed environment.
21
+
22
+ Spark NLP comes with **83000+** pretrained **pipelines** and **models** in more than **200+** languages.
23
+ It also offers tasks such as **Tokenization**, **Word Segmentation**, **Part-of-Speech Tagging**, Word and Sentence **Embeddings**, **Named Entity Recognition**, **Dependency Parsing**, **Spell Checking**, **Text Classification**, **Sentiment Analysis**, **Token Classification**, **Machine Translation** (+180 languages), **Summarization**, **Question Answering**, **Table Question Answering**, **Text Generation**, **Image Classification**, **Image to Text (captioning)**, **Automatic Speech Recognition**, **Zero-Shot Learning**, and many more [NLP tasks](#features).
24
+
25
+ **Spark NLP** is the only open-source NLP library in **production** that offers state-of-the-art transformers such as **BERT**, **CamemBERT**, **ALBERT**, **ELECTRA**, **XLNet**, **DistilBERT**, **RoBERTa**, **DeBERTa**, **XLM-RoBERTa**, **Longformer**, **ELMO**, **Universal Sentence Encoder**, **Llama-2**, **M2M100**, **BART**, **Instructor**, **E5**, **Google T5**, **MarianMT**, **OpenAI GPT2**, **Vision Transformers (ViT)**, **OpenAI Whisper**, **Llama**, **Mistral**, **Phi**, **Qwen2**, and many more not only to **Python** and **R**, but also to **JVM** ecosystem (**Java**, **Scala**, and **Kotlin**) at **scale** by extending **Apache Spark** natively.
26
+
27
+ ## Model Importing Support
28
+
29
+ Spark NLP provides easy support for importing models from various popular frameworks:
30
+
31
+ - **TensorFlow**
32
+ - **ONNX**
33
+ - **OpenVINO**
34
+ - **Llama.cpp (GGUF)**
35
+
36
+ This wide range of support allows you to seamlessly integrate models from different sources into your Spark NLP workflows, enhancing flexibility and compatibility with existing machine learning ecosystems.
37
+
38
+ ## Project's website
39
+
40
+ Take a look at our official Spark NLP page: [https://sparknlp.org/](https://sparknlp.org/) for user
41
+ documentation and examples
42
+
43
+ ## Features
44
+
45
+ - [Text Preprocessing](https://sparknlp.org/docs/en/features#text-preproccesing)
46
+ - [Parsing and Analysis](https://sparknlp.org/docs/en/features#parsing-and-analysis)
47
+ - [Sentiment and Classification](https://sparknlp.org/docs/en/features#sentiment-and-classification)
48
+ - [Embeddings](https://sparknlp.org/docs/en/features#embeddings)
49
+ - [Classification and Question Answering](https://sparknlp.org/docs/en/features#classification-and-question-answering-models)
50
+ - [Machine Translation and Generation](https://sparknlp.org/docs/en/features#machine-translation-and-generation)
51
+ - [Image and Speech](https://sparknlp.org/docs/en/features#image-and-speech)
52
+ - [Integration and Interoperability (ONNX, OpenVINO)](https://sparknlp.org/docs/en/features#integration-and-interoperability)
53
+ - [Pre-trained Models (36000+ in +200 languages)](https://sparknlp.org/docs/en/features#pre-trained-models)
54
+ - [Multi-lingual Support](https://sparknlp.org/docs/en/features#multi-lingual-support)
55
+
56
+ ## Quick Start
57
+
58
+ This is a quick example of how to use Spark NLP pre-trained pipeline in Python and PySpark:
59
+
60
+ ```sh
61
+ $ java -version
62
+ # should be Java 8 or 11 (Oracle or OpenJDK)
63
+ $ conda create -n sparknlp python=3.7 -y
64
+ $ conda activate sparknlp
65
+ # spark-nlp by default is based on pyspark 3.x
66
+ $ pip install spark-nlp==5.5.2 pyspark==3.3.1
67
+ ```
68
+
69
+ In Python console or Jupyter `Python3` kernel:
70
+
71
+ ```python
72
+ # Import Spark NLP
73
+ from sparknlp.base import *
74
+ from sparknlp.annotator import *
75
+ from sparknlp.pretrained import PretrainedPipeline
76
+ import sparknlp
77
+
78
+ # Start SparkSession with Spark NLP
79
+ # start() functions has 3 parameters: gpu, apple_silicon, and memory
80
+ # sparknlp.start(gpu=True) will start the session with GPU support
81
+ # sparknlp.start(apple_silicon=True) will start the session with macOS M1 & M2 support
82
+ # sparknlp.start(memory="16G") to change the default driver memory in SparkSession
83
+ spark = sparknlp.start()
84
+
85
+ # Download a pre-trained pipeline
86
+ pipeline = PretrainedPipeline('explain_document_dl', lang='en')
87
+
88
+ # Your testing dataset
89
+ text = """
90
+ The Mona Lisa is a 16th century oil painting created by Leonardo.
91
+ It's held at the Louvre in Paris.
92
+ """
93
+
94
+ # Annotate your testing dataset
95
+ result = pipeline.annotate(text)
96
+
97
+ # What's in the pipeline
98
+ list(result.keys())
99
+ Output: ['entities', 'stem', 'checked', 'lemma', 'document',
100
+ 'pos', 'token', 'ner', 'embeddings', 'sentence']
101
+
102
+ # Check the results
103
+ result['entities']
104
+ Output: ['Mona Lisa', 'Leonardo', 'Louvre', 'Paris']
105
+ ```
106
+
107
+ For more examples, you can visit our dedicated [examples](https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples) to showcase all Spark NLP use cases!
108
+
109
+ ### Packages Cheatsheet
110
+
111
+ This is a cheatsheet for corresponding Spark NLP Maven package to Apache Spark / PySpark major version:
112
+
113
+ | Apache Spark | Spark NLP on CPU | Spark NLP on GPU | Spark NLP on AArch64 (linux) | Spark NLP on Apple Silicon |
114
+ |-------------------------|--------------------|----------------------------|--------------------------------|--------------------------------------|
115
+ | 3.0/3.1/3.2/3.3/3.4/3.5 | `spark-nlp` | `spark-nlp-gpu` | `spark-nlp-aarch64` | `spark-nlp-silicon` |
116
+ | Start Function | `sparknlp.start()` | `sparknlp.start(gpu=True)` | `sparknlp.start(aarch64=True)` | `sparknlp.start(apple_silicon=True)` |
117
+
118
+ NOTE: `M1/M2` and `AArch64` are under `experimental` support. Access and support to these architectures are limited by the
119
+ community and we had to build most of the dependencies by ourselves to make them compatible. We support these two
120
+ architectures, however, they may not work in some environments.
121
+
122
+ ## Pipelines and Models
123
+
124
+ For a quick example of using pipelines and models take a look at our official [documentation](https://sparknlp.org/docs/en/install#pipelines-and-models)
125
+
126
+ #### Please check out our Models Hub for the full list of [pre-trained models](https://sparknlp.org/models) with examples, demo, benchmark, and more
127
+
128
+ ## Platform and Ecosystem Support
129
+
130
+ ### Apache Spark Support
131
+
132
+ Spark NLP *5.5.2* has been built on top of Apache Spark 3.4 while fully supports Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, 3.4.x, and 3.5.x
133
+
134
+ | Spark NLP | Apache Spark 3.5.x | Apache Spark 3.4.x | Apache Spark 3.3.x | Apache Spark 3.2.x | Apache Spark 3.1.x | Apache Spark 3.0.x | Apache Spark 2.4.x | Apache Spark 2.3.x |
135
+ |-----------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
136
+ | 5.5.x | YES | YES | YES | YES | YES | YES | NO | NO |
137
+ | 5.4.x | YES | YES | YES | YES | YES | YES | NO | NO |
138
+ | 5.3.x | YES | YES | YES | YES | YES | YES | NO | NO |
139
+ | 5.2.x | YES | YES | YES | YES | YES | YES | NO | NO |
140
+ | 5.1.x | Partially | YES | YES | YES | YES | YES | NO | NO |
141
+ | 5.0.x | YES | YES | YES | YES | YES | YES | NO | NO |
142
+
143
+ Find out more about `Spark NLP` versions from our [release notes](https://github.com/JohnSnowLabs/spark-nlp/releases).
144
+
145
+ ### Scala and Python Support
146
+
147
+ | Spark NLP | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10| Scala 2.11 | Scala 2.12 |
148
+ |-----------|------------|------------|------------|------------|------------|------------|------------|
149
+ | 5.5.x | NO | YES | YES | YES | YES | NO | YES |
150
+ | 5.4.x | NO | YES | YES | YES | YES | NO | YES |
151
+ | 5.3.x | NO | YES | YES | YES | YES | NO | YES |
152
+ | 5.2.x | NO | YES | YES | YES | YES | NO | YES |
153
+ | 5.1.x | NO | YES | YES | YES | YES | NO | YES |
154
+ | 5.0.x | NO | YES | YES | YES | YES | NO | YES |
155
+
156
+ Find out more about 4.x `SparkNLP` versions in our official [documentation](https://sparknlp.org/docs/en/install#apache-spark-support)
157
+
158
+ ### Databricks Support
159
+
160
+ Spark NLP 5.5.2 has been tested and is compatible with the following runtimes:
161
+
162
+ | **CPU** | **GPU** |
163
+ |--------------------|--------------------|
164
+ | 14.1 / 14.1 ML | 14.1 ML & GPU |
165
+ | 14.2 / 14.2 ML | 14.2 ML & GPU |
166
+ | 14.3 / 14.3 ML | 14.3 ML & GPU |
167
+ | 15.0 / 15.0 ML | 15.0 ML & GPU |
168
+ | 15.1 / 15.0 ML | 15.1 ML & GPU |
169
+ | 15.2 / 15.0 ML | 15.2 ML & GPU |
170
+ | 15.3 / 15.0 ML | 15.3 ML & GPU |
171
+ | 15.4 / 15.0 ML | 15.4 ML & GPU |
172
+
173
+ We are compatible with older runtimes. For a full list check databricks support in our official [documentation](https://sparknlp.org/docs/en/install#databricks-support)
174
+
175
+ ### EMR Support
176
+
177
+ Spark NLP 5.5.2 has been tested and is compatible with the following EMR releases:
178
+
179
+ | **EMR Release** |
180
+ |--------------------|
181
+ | emr-6.13.0 |
182
+ | emr-6.14.0 |
183
+ | emr-6.15.0 |
184
+ | emr-7.0.0 |
185
+ | emr-7.1.0 |
186
+ | emr-7.2.0 |
187
+
188
+ We are compatible with older EMR releases. For a full list check EMR support in our official [documentation](https://sparknlp.org/docs/en/install#emr-support)
189
+
190
+ Full list of [Amazon EMR 6.x releases](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-6x.html)
191
+ Full list of [Amazon EMR 7.x releases](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-7x.html)
192
+
193
+ NOTE: The EMR 6.1.0 and 6.1.1 are not supported.
194
+
195
+ ## Installation
196
+
197
+ ### Command line (requires internet connection)
198
+
199
+ To install spark-nlp packages through command line follow [these instructions](https://sparknlp.org/docs/en/install#command-line) from our official documentation
200
+
201
+ ### Scala
202
+
203
+ Spark NLP supports Scala 2.12.15 if you are using Apache Spark 3.0.x, 3.1.x, 3.2.x, 3.3.x, and 3.4.x versions. Our packages are
204
+ deployed to Maven central. To add any of our packages as a dependency in your application you can follow [these instructions](https://sparknlp.org/docs/en/install#scala-and-java)
205
+ from our official documentation.
206
+
207
+ If you are interested, there is a simple SBT project for Spark NLP to guide you on how to use it in your
208
+ projects [Spark NLP SBT S5.5.2r](https://github.com/maziyarpanahi/spark-nlp-starter)
209
+
210
+ ### Python
211
+
212
+ Spark NLP supports Python 3.7.x and above depending on your major PySpark version.
213
+ Check all available installations for Python in our official [documentation](https://sparknlp.org/docs/en/install#python)
214
+
215
+ ### Compiled JARs
216
+
217
+ To compile the jars from source follow [these instructions](https://sparknlp.org/docs/en/compiled#jars) from our official documenation
218
+
219
+ ## Platform-Specific Instructions
220
+
221
+ For detailed instructions on how to use Spark NLP on supported platforms, please refer to our official documentation:
222
+
223
+ | Platform | Supported Language(s) |
224
+ |-------------------------|-----------------------|
225
+ | [Apache Zeppelin](https://sparknlp.org/docs/en/install#apache-zeppelin) | Scala, Python |
226
+ | [Jupyter Notebook](https://sparknlp.org/docs/en/install#jupter-notebook) | Python |
227
+ | [Google Colab Notebook](https://sparknlp.org/docs/en/install#google-colab-notebook) | Python |
228
+ | [Kaggle Kernel](https://sparknlp.org/docs/en/install#kaggle-kernel) | Python |
229
+ | [Databricks Cluster](https://sparknlp.org/docs/en/install#databricks-cluster) | Scala, Python |
230
+ | [EMR Cluster](https://sparknlp.org/docs/en/install#emr-cluster) | Scala, Python |
231
+ | [GCP Dataproc Cluster](https://sparknlp.org/docs/en/install#gcp-dataproc) | Scala, Python |
232
+
233
+ ### Offline
234
+
235
+ Spark NLP library and all the pre-trained models/pipelines can be used entirely offline with no access to the Internet.
236
+ Please check [these instructions](https://sparknlp.org/docs/en/install#s3-integration) from our official documentation
237
+ to use Spark NLP offline
238
+
239
+ ## Advanced Settings
240
+
241
+ You can change Spark NLP configurations via Spark properties configuration.
242
+ Please check [these instructions](https://sparknlp.org/docs/en/install#sparknlp-properties) from our official documentation.
243
+
244
+ ### S3 Integration
245
+
246
+ In Spark NLP we can define S3 locations to:
247
+
248
+ - Export log files of training models
249
+ - Store tensorflow graphs used in `NerDLApproach`
250
+
251
+ Please check [these instructions](https://sparknlp.org/docs/en/install#s3-integration) from our official documentation.
252
+
253
+ ## Document5.5.2
254
+
255
+ ### Examples
256
+
257
+ Need more **examples**? Check out our dedicated [Spark NLP Examples](https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples)
258
+ repository to showcase all Spark NLP use cases!
259
+
260
+ Also, don't forget to check [Spark NLP in Action](https://sparknlp.org/demo) built by Streamlit.
261
+
262
+ #### All examples: [spark-nlp/examples](https://github.com/JohnSnowLabs/spark-nlp/tree/master/examples)
263
+
264
+ ### FAQ
265
+
266
+ [Check our Articles and Videos page here](https://sparknlp.org/learn)
267
+
268
+ ### Citation
269
+
270
+ We have published a [paper](https://www.sciencedirect.com/science/article/pii/S2665963821000063) that you can cite for
271
+ the Spark NLP library:
272
+
273
+ ```bibtex
274
+ @article{KOCAMAN2021100058,
275
+ title = {Spark NLP: Natural language understanding at scale},
276
+ journal = {Software Impacts},
277
+ pages = {100058},
278
+ year = {2021},
279
+ issn = {2665-9638},
280
+ doi = {https://doi.org/10.1016/j.simpa.2021.100058},
281
+ url = {https://www.sciencedirect.com/science/article/pii/S2665963.2.300063},
282
+ author = {Veysel Kocaman and David Talby},
283
+ keywords = {Spark, Natural language processing, Deep learning, Tensorflow, Cluster},
284
+ abstract = {Spark NLP is a Natural Language Processing (NLP) library built on top of Apache Spark ML. It provides simple, performant & accurate NLP annotations for machine learning pipelines that can scale easily in a distributed environment. Spark NLP comes with 1100+ pretrained pipelines and models in more than 192+ languages. It supports nearly all the NLP tasks and modules that can be used seamlessly in a cluster. Downloaded more than 2.7 million times and experiencing 9x growth since January 2020, Spark NLP is used by 54% of healthcare organizations as the world’s most widely used NLP library in the enterprise.}
285
+ }
286
+ }5.5.2
287
+ ```
288
+
289
+ ## Community support
290
+
291
+ - [Slack](https://join.slack.com/t/spark-nlp/shared_invite/zt-198dipu77-L3UWNe_AJ8xqDk0ivmih5Q) For live discussion with the Spark NLP community and the team
292
+ - [GitHub](https://github.com/JohnSnowLabs/spark-nlp) Bug reports, feature requests, and contributions
293
+ - [Discussions](https://github.com/JohnSnowLabs/spark-nlp/discussions) Engage with other community members, share ideas,
294
+ and show off how you use Spark NLP!
295
+ - [Medium](https://medium.com/spark-nlp) Spark NLP articles
296
+ - [YouTube](https://www.youtube.com/channel/UCmFOjlpYEhxf_wJUDuz6xxQ/videos) Spark NLP video tutorials
297
+
298
+ ## Contributing
299
+
300
+ We appreciate any sort of contributions:
301
+
302
+ - ideas
303
+ - feedback
304
+ - documentation
305
+ - bug reports
306
+ - NLP training and testing corpora
307
+ - Development and testing
308
+
309
+ Clone the repo and submit your pull-requests! Or directly create issues in this repo.
310
+
311
+ ## John Snow Labs
312
+
313
+ [http://johnsnowlabs.com](http://johnsnowlabs.com)