spark-nlp 5.5.1__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 (259) hide show
  1. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/PKG-INFO +8 -8
  2. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/README.md +7 -7
  3. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/setup.py +1 -1
  4. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/spark_nlp.egg-info/PKG-INFO +8 -8
  5. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/spark_nlp.egg-info/SOURCES.txt +4 -0
  6. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/__init__.py +12 -6
  7. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/__init__.py +1 -0
  8. spark-nlp-5.5.2/sparknlp/annotator/cv/blip_for_question_answering.py +172 -0
  9. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/__init__.py +1 -0
  10. spark-nlp-5.5.2/sparknlp/annotator/embeddings/auto_gguf_embeddings.py +538 -0
  11. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/nomic_embeddings.py +3 -3
  12. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/auto_gguf_model.py +14 -24
  13. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/cpm_transformer.py +5 -5
  14. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/nllb_transformer.py +4 -4
  15. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/phi3_transformer.py +4 -4
  16. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/qwen_transformer.py +3 -3
  17. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/image_assembler.py +11 -0
  18. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/light_pipeline.py +20 -9
  19. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/internal/__init__.py +15 -0
  20. spark-nlp-5.5.2/sparknlp/reader/__init__.py +15 -0
  21. spark-nlp-5.5.2/sparknlp/reader/sparknlp_reader.py +121 -0
  22. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/com/__init__.py +0 -0
  23. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/com/johnsnowlabs/__init__.py +0 -0
  24. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/com/johnsnowlabs/ml/__init__.py +0 -0
  25. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/com/johnsnowlabs/ml/ai/__init__.py +0 -0
  26. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/com/johnsnowlabs/nlp/__init__.py +0 -0
  27. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/setup.cfg +0 -0
  28. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/spark_nlp.egg-info/.uuid +0 -0
  29. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/spark_nlp.egg-info/dependency_links.txt +0 -0
  30. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/spark_nlp.egg-info/top_level.txt +0 -0
  31. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotation.py +0 -0
  32. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotation_audio.py +0 -0
  33. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotation_image.py +0 -0
  34. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/__init__.py +0 -0
  35. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/__init__.py +0 -0
  36. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/hubert_for_ctc.py +0 -0
  37. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/wav2vec2_for_ctc.py +0 -0
  38. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/audio/whisper_for_ctc.py +0 -0
  39. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/chunk2_doc.py +0 -0
  40. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/chunker.py +0 -0
  41. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/__init__.py +0 -0
  42. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_question_answering.py +0 -0
  43. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_sequence_classification.py +0 -0
  44. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_token_classification.py +0 -0
  45. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/albert_for_zero_shot_classification.py +0 -0
  46. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bart_for_zero_shot_classification.py +0 -0
  47. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_multiple_choice.py +0 -0
  48. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_question_answering.py +0 -0
  49. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_sequence_classification.py +0 -0
  50. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_token_classification.py +0 -0
  51. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/bert_for_zero_shot_classification.py +0 -0
  52. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_question_answering.py +0 -0
  53. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_sequence_classification.py +0 -0
  54. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_token_classification.py +0 -0
  55. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/camembert_for_zero_shot_classification.py +0 -0
  56. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/classifier_dl.py +0 -0
  57. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_question_answering.py +0 -0
  58. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_sequence_classification.py +0 -0
  59. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_token_classification.py +0 -0
  60. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/deberta_for_zero_shot_classification.py +0 -0
  61. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_question_answering.py +0 -0
  62. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_sequence_classification.py +0 -0
  63. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_token_classification.py +0 -0
  64. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/distil_bert_for_zero_shot_classification.py +0 -0
  65. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/longformer_for_question_answering.py +0 -0
  66. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/longformer_for_sequence_classification.py +0 -0
  67. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/longformer_for_token_classification.py +0 -0
  68. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/mpnet_for_question_answering.py +0 -0
  69. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/mpnet_for_sequence_classification.py +0 -0
  70. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/mpnet_for_token_classification.py +0 -0
  71. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/multi_classifier_dl.py +0 -0
  72. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_question_answering.py +0 -0
  73. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_sequence_classification.py +0 -0
  74. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_token_classification.py +0 -0
  75. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/roberta_for_zero_shot_classification.py +0 -0
  76. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/sentiment_dl.py +0 -0
  77. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/tapas_for_question_answering.py +0 -0
  78. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_question_answering.py +0 -0
  79. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_sequence_classification.py +0 -0
  80. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_token_classification.py +0 -0
  81. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlm_roberta_for_zero_shot_classification.py +0 -0
  82. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlnet_for_sequence_classification.py +0 -0
  83. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/classifier_dl/xlnet_for_token_classification.py +0 -0
  84. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/coref/__init__.py +0 -0
  85. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/coref/spanbert_coref.py +0 -0
  86. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/clip_for_zero_shot_classification.py +0 -0
  87. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/convnext_for_image_classification.py +0 -0
  88. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/swin_for_image_classification.py +0 -0
  89. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/vision_encoder_decoder_for_image_captioning.py +0 -0
  90. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/cv/vit_for_image_classification.py +0 -0
  91. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/date2_chunk.py +0 -0
  92. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/dependency/__init__.py +0 -0
  93. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/dependency/dependency_parser.py +0 -0
  94. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/dependency/typed_dependency_parser.py +0 -0
  95. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/document_character_text_splitter.py +0 -0
  96. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/document_normalizer.py +0 -0
  97. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/document_token_splitter.py +0 -0
  98. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/document_token_splitter_test.py +0 -0
  99. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/albert_embeddings.py +0 -0
  100. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/bert_embeddings.py +0 -0
  101. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/bert_sentence_embeddings.py +0 -0
  102. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/bge_embeddings.py +0 -0
  103. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/camembert_embeddings.py +0 -0
  104. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/chunk_embeddings.py +0 -0
  105. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/deberta_embeddings.py +0 -0
  106. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/distil_bert_embeddings.py +0 -0
  107. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/doc2vec.py +0 -0
  108. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/e5_embeddings.py +0 -0
  109. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/elmo_embeddings.py +0 -0
  110. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/instructor_embeddings.py +0 -0
  111. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/longformer_embeddings.py +0 -0
  112. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/mpnet_embeddings.py +0 -0
  113. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/mxbai_embeddings.py +0 -0
  114. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/roberta_embeddings.py +0 -0
  115. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/roberta_sentence_embeddings.py +0 -0
  116. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/sentence_embeddings.py +0 -0
  117. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/snowflake_embeddings.py +0 -0
  118. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/uae_embeddings.py +0 -0
  119. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/universal_sentence_encoder.py +0 -0
  120. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/word2vec.py +0 -0
  121. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/word_embeddings.py +0 -0
  122. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/xlm_roberta_embeddings.py +0 -0
  123. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/xlm_roberta_sentence_embeddings.py +0 -0
  124. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/embeddings/xlnet_embeddings.py +0 -0
  125. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/er/__init__.py +0 -0
  126. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/er/entity_ruler.py +0 -0
  127. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/graph_extraction.py +0 -0
  128. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/keyword_extraction/__init__.py +0 -0
  129. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/keyword_extraction/yake_keyword_extraction.py +0 -0
  130. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ld_dl/__init__.py +0 -0
  131. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ld_dl/language_detector_dl.py +0 -0
  132. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/lemmatizer.py +0 -0
  133. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/__init__.py +0 -0
  134. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/big_text_matcher.py +0 -0
  135. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/date_matcher.py +0 -0
  136. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/multi_date_matcher.py +0 -0
  137. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/regex_matcher.py +0 -0
  138. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/matcher/text_matcher.py +0 -0
  139. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/n_gram_generator.py +0 -0
  140. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/__init__.py +0 -0
  141. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_approach.py +0 -0
  142. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_converter.py +0 -0
  143. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_crf.py +0 -0
  144. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_dl.py +0 -0
  145. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/ner_overwriter.py +0 -0
  146. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ner/zero_shot_ner_model.py +0 -0
  147. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/normalizer.py +0 -0
  148. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/openai/__init__.py +0 -0
  149. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/openai/openai_completion.py +0 -0
  150. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/openai/openai_embeddings.py +0 -0
  151. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/param/__init__.py +0 -0
  152. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/param/classifier_encoder.py +0 -0
  153. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/param/evaluation_dl_params.py +0 -0
  154. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/pos/__init__.py +0 -0
  155. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/pos/perceptron.py +0 -0
  156. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/sentence/__init__.py +0 -0
  157. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/sentence/sentence_detector.py +0 -0
  158. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/sentence/sentence_detector_dl.py +0 -0
  159. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/sentiment/__init__.py +0 -0
  160. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/sentiment/sentiment_detector.py +0 -0
  161. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/sentiment/vivekn_sentiment.py +0 -0
  162. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/__init__.py +0 -0
  163. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/bart_transformer.py +0 -0
  164. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/gpt2_transformer.py +0 -0
  165. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/llama2_transformer.py +0 -0
  166. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/llama3_transformer.py +0 -0
  167. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/m2m100_transformer.py +0 -0
  168. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/marian_transformer.py +0 -0
  169. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/mistral_transformer.py +0 -0
  170. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/phi2_transformer.py +0 -0
  171. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/starcoder_transformer.py +0 -0
  172. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/seq2seq/t5_transformer.py +0 -0
  173. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/similarity/__init__.py +0 -0
  174. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/similarity/document_similarity_ranker.py +0 -0
  175. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/__init__.py +0 -0
  176. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/context_spell_checker.py +0 -0
  177. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/norvig_sweeting.py +0 -0
  178. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/spell_check/symmetric_delete.py +0 -0
  179. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/stemmer.py +0 -0
  180. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/stop_words_cleaner.py +0 -0
  181. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/tf_ner_dl_graph_builder.py +0 -0
  182. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/token/__init__.py +0 -0
  183. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/token/chunk_tokenizer.py +0 -0
  184. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/token/recursive_tokenizer.py +0 -0
  185. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/token/regex_tokenizer.py +0 -0
  186. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/token/tokenizer.py +0 -0
  187. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/token2_chunk.py +0 -0
  188. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ws/__init__.py +0 -0
  189. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/annotator/ws/word_segmenter.py +0 -0
  190. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/__init__.py +0 -0
  191. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/audio_assembler.py +0 -0
  192. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/doc2_chunk.py +0 -0
  193. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/document_assembler.py +0 -0
  194. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/embeddings_finisher.py +0 -0
  195. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/finisher.py +0 -0
  196. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/graph_finisher.py +0 -0
  197. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/has_recursive_fit.py +0 -0
  198. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/has_recursive_transform.py +0 -0
  199. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/multi_document_assembler.py +0 -0
  200. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/prompt_assembler.py +0 -0
  201. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/recursive_pipeline.py +0 -0
  202. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/table_assembler.py +0 -0
  203. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/base/token_assembler.py +0 -0
  204. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/__init__.py +0 -0
  205. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/annotator_approach.py +0 -0
  206. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/annotator_model.py +0 -0
  207. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/annotator_properties.py +0 -0
  208. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/annotator_type.py +0 -0
  209. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/coverage_result.py +0 -0
  210. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/match_strategy.py +0 -0
  211. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/properties.py +0 -0
  212. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/read_as.py +0 -0
  213. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/recursive_annotator_approach.py +0 -0
  214. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/storage.py +0 -0
  215. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/common/utils.py +0 -0
  216. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/functions.py +0 -0
  217. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/internal/annotator_java_ml.py +0 -0
  218. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/internal/annotator_transformer.py +0 -0
  219. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/internal/extended_java_wrapper.py +0 -0
  220. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/internal/params_getters_setters.py +0 -0
  221. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/internal/recursive.py +0 -0
  222. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/logging/__init__.py +0 -0
  223. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/logging/comet.py +0 -0
  224. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/pretrained/__init__.py +0 -0
  225. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/pretrained/pretrained_pipeline.py +0 -0
  226. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/pretrained/resource_downloader.py +0 -0
  227. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/pretrained/utils.py +0 -0
  228. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/__init__.py +0 -0
  229. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/__init__.py +0 -0
  230. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/graph_builders.py +0 -0
  231. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/__init__.py +0 -0
  232. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/create_graph.py +0 -0
  233. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/dataset_encoder.py +0 -0
  234. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/ner_model.py +0 -0
  235. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/ner_model_saver.py +0 -0
  236. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/ner_dl/sentence_grouper.py +0 -0
  237. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/__init__.py +0 -0
  238. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/core_rnn_cell.py +0 -0
  239. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/fused_rnn_cell.py +0 -0
  240. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/gru_ops.py +0 -0
  241. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/lstm_ops.py +0 -0
  242. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/rnn.py +0 -0
  243. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders/tf2contrib/rnn_cell.py +0 -0
  244. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/__init__.py +0 -0
  245. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/graph_builders.py +0 -0
  246. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/__init__.py +0 -0
  247. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/create_graph.py +0 -0
  248. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/dataset_encoder.py +0 -0
  249. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/ner_model.py +0 -0
  250. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/ner_model_saver.py +0 -0
  251. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/_tf_graph_builders_1x/ner_dl/sentence_grouper.py +0 -0
  252. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/conll.py +0 -0
  253. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/conllu.py +0 -0
  254. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/pos.py +0 -0
  255. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/pub_tator.py +0 -0
  256. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/spacy_to_annotation.py +0 -0
  257. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/training/tfgraphs.py +0 -0
  258. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/upload_to_hub.py +0 -0
  259. {spark-nlp-5.5.1 → spark-nlp-5.5.2}/sparknlp/util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spark-nlp
3
- Version: 5.5.1
3
+ Version: 5.5.2
4
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
5
  Home-page: https://github.com/JohnSnowLabs/spark-nlp
6
6
  Author: John Snow Labs
@@ -95,7 +95,7 @@ $ java -version
95
95
  $ conda create -n sparknlp python=3.7 -y
96
96
  $ conda activate sparknlp
97
97
  # spark-nlp by default is based on pyspark 3.x
98
- $ pip install spark-nlp==5.5.1 pyspark==3.3.1
98
+ $ pip install spark-nlp==5.5.2 pyspark==3.3.1
99
99
  ```
100
100
 
101
101
  In Python console or Jupyter `Python3` kernel:
@@ -161,7 +161,7 @@ For a quick example of using pipelines and models take a look at our official [d
161
161
 
162
162
  ### Apache Spark Support
163
163
 
164
- Spark NLP *5.5.1* 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
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
165
 
166
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
167
  |-----------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
@@ -189,7 +189,7 @@ Find out more about 4.x `SparkNLP` versions in our official [documentation](http
189
189
 
190
190
  ### Databricks Support
191
191
 
192
- Spark NLP 5.5.1 has been tested and is compatible with the following runtimes:
192
+ Spark NLP 5.5.2 has been tested and is compatible with the following runtimes:
193
193
 
194
194
  | **CPU** | **GPU** |
195
195
  |--------------------|--------------------|
@@ -206,7 +206,7 @@ We are compatible with older runtimes. For a full list check databricks support
206
206
 
207
207
  ### EMR Support
208
208
 
209
- Spark NLP 5.5.1 has been tested and is compatible with the following EMR releases:
209
+ Spark NLP 5.5.2 has been tested and is compatible with the following EMR releases:
210
210
 
211
211
  | **EMR Release** |
212
212
  |--------------------|
@@ -237,7 +237,7 @@ deployed to Maven central. To add any of our packages as a dependency in your ap
237
237
  from our official documentation.
238
238
 
239
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.1r](https://github.com/maziyarpanahi/spark-nlp-starter)
240
+ projects [Spark NLP SBT S5.5.2r](https://github.com/maziyarpanahi/spark-nlp-starter)
241
241
 
242
242
  ### Python
243
243
 
@@ -282,7 +282,7 @@ In Spark NLP we can define S3 locations to:
282
282
 
283
283
  Please check [these instructions](https://sparknlp.org/docs/en/install#s3-integration) from our official documentation.
284
284
 
285
- ## Document5.5.1
285
+ ## Document5.5.2
286
286
 
287
287
  ### Examples
288
288
 
@@ -315,7 +315,7 @@ the Spark NLP library:
315
315
  keywords = {Spark, Natural language processing, Deep learning, Tensorflow, Cluster},
316
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
317
  }
318
- }5.5.1
318
+ }5.5.2
319
319
  ```
320
320
 
321
321
  ## Community support
@@ -63,7 +63,7 @@ $ java -version
63
63
  $ conda create -n sparknlp python=3.7 -y
64
64
  $ conda activate sparknlp
65
65
  # spark-nlp by default is based on pyspark 3.x
66
- $ pip install spark-nlp==5.5.1 pyspark==3.3.1
66
+ $ pip install spark-nlp==5.5.2 pyspark==3.3.1
67
67
  ```
68
68
 
69
69
  In Python console or Jupyter `Python3` kernel:
@@ -129,7 +129,7 @@ For a quick example of using pipelines and models take a look at our official [d
129
129
 
130
130
  ### Apache Spark Support
131
131
 
132
- Spark NLP *5.5.1* 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
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
133
 
134
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
135
  |-----------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
@@ -157,7 +157,7 @@ Find out more about 4.x `SparkNLP` versions in our official [documentation](http
157
157
 
158
158
  ### Databricks Support
159
159
 
160
- Spark NLP 5.5.1 has been tested and is compatible with the following runtimes:
160
+ Spark NLP 5.5.2 has been tested and is compatible with the following runtimes:
161
161
 
162
162
  | **CPU** | **GPU** |
163
163
  |--------------------|--------------------|
@@ -174,7 +174,7 @@ We are compatible with older runtimes. For a full list check databricks support
174
174
 
175
175
  ### EMR Support
176
176
 
177
- Spark NLP 5.5.1 has been tested and is compatible with the following EMR releases:
177
+ Spark NLP 5.5.2 has been tested and is compatible with the following EMR releases:
178
178
 
179
179
  | **EMR Release** |
180
180
  |--------------------|
@@ -205,7 +205,7 @@ deployed to Maven central. To add any of our packages as a dependency in your ap
205
205
  from our official documentation.
206
206
 
207
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.1r](https://github.com/maziyarpanahi/spark-nlp-starter)
208
+ projects [Spark NLP SBT S5.5.2r](https://github.com/maziyarpanahi/spark-nlp-starter)
209
209
 
210
210
  ### Python
211
211
 
@@ -250,7 +250,7 @@ In Spark NLP we can define S3 locations to:
250
250
 
251
251
  Please check [these instructions](https://sparknlp.org/docs/en/install#s3-integration) from our official documentation.
252
252
 
253
- ## Document5.5.1
253
+ ## Document5.5.2
254
254
 
255
255
  ### Examples
256
256
 
@@ -283,7 +283,7 @@ the Spark NLP library:
283
283
  keywords = {Spark, Natural language processing, Deep learning, Tensorflow, Cluster},
284
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
285
  }
286
- }5.5.1
286
+ }5.5.2
287
287
  ```
288
288
 
289
289
  ## Community support
@@ -41,7 +41,7 @@ setup(
41
41
  # project code, see
42
42
  # https://packaging.python.org/en/latest/single_source_version.html
43
43
 
44
- version='5.5.1', # Required
44
+ version='5.5.2', # Required
45
45
 
46
46
  # This is a one-line description or tagline of what your project does. This
47
47
  # corresponds to the 'Summary' metadata field:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spark-nlp
3
- Version: 5.5.1
3
+ Version: 5.5.2
4
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
5
  Home-page: https://github.com/JohnSnowLabs/spark-nlp
6
6
  Author: John Snow Labs
@@ -95,7 +95,7 @@ $ java -version
95
95
  $ conda create -n sparknlp python=3.7 -y
96
96
  $ conda activate sparknlp
97
97
  # spark-nlp by default is based on pyspark 3.x
98
- $ pip install spark-nlp==5.5.1 pyspark==3.3.1
98
+ $ pip install spark-nlp==5.5.2 pyspark==3.3.1
99
99
  ```
100
100
 
101
101
  In Python console or Jupyter `Python3` kernel:
@@ -161,7 +161,7 @@ For a quick example of using pipelines and models take a look at our official [d
161
161
 
162
162
  ### Apache Spark Support
163
163
 
164
- Spark NLP *5.5.1* 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
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
165
 
166
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
167
  |-----------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
@@ -189,7 +189,7 @@ Find out more about 4.x `SparkNLP` versions in our official [documentation](http
189
189
 
190
190
  ### Databricks Support
191
191
 
192
- Spark NLP 5.5.1 has been tested and is compatible with the following runtimes:
192
+ Spark NLP 5.5.2 has been tested and is compatible with the following runtimes:
193
193
 
194
194
  | **CPU** | **GPU** |
195
195
  |--------------------|--------------------|
@@ -206,7 +206,7 @@ We are compatible with older runtimes. For a full list check databricks support
206
206
 
207
207
  ### EMR Support
208
208
 
209
- Spark NLP 5.5.1 has been tested and is compatible with the following EMR releases:
209
+ Spark NLP 5.5.2 has been tested and is compatible with the following EMR releases:
210
210
 
211
211
  | **EMR Release** |
212
212
  |--------------------|
@@ -237,7 +237,7 @@ deployed to Maven central. To add any of our packages as a dependency in your ap
237
237
  from our official documentation.
238
238
 
239
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.1r](https://github.com/maziyarpanahi/spark-nlp-starter)
240
+ projects [Spark NLP SBT S5.5.2r](https://github.com/maziyarpanahi/spark-nlp-starter)
241
241
 
242
242
  ### Python
243
243
 
@@ -282,7 +282,7 @@ In Spark NLP we can define S3 locations to:
282
282
 
283
283
  Please check [these instructions](https://sparknlp.org/docs/en/install#s3-integration) from our official documentation.
284
284
 
285
- ## Document5.5.1
285
+ ## Document5.5.2
286
286
 
287
287
  ### Examples
288
288
 
@@ -315,7 +315,7 @@ the Spark NLP library:
315
315
  keywords = {Spark, Natural language processing, Deep learning, Tensorflow, Cluster},
316
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
317
  }
318
- }5.5.1
318
+ }5.5.2
319
319
  ```
320
320
 
321
321
  ## Community support
@@ -84,6 +84,7 @@ sparknlp/annotator/classifier_dl/xlnet_for_token_classification.py
84
84
  sparknlp/annotator/coref/__init__.py
85
85
  sparknlp/annotator/coref/spanbert_coref.py
86
86
  sparknlp/annotator/cv/__init__.py
87
+ sparknlp/annotator/cv/blip_for_question_answering.py
87
88
  sparknlp/annotator/cv/clip_for_zero_shot_classification.py
88
89
  sparknlp/annotator/cv/convnext_for_image_classification.py
89
90
  sparknlp/annotator/cv/swin_for_image_classification.py
@@ -94,6 +95,7 @@ sparknlp/annotator/dependency/dependency_parser.py
94
95
  sparknlp/annotator/dependency/typed_dependency_parser.py
95
96
  sparknlp/annotator/embeddings/__init__.py
96
97
  sparknlp/annotator/embeddings/albert_embeddings.py
98
+ sparknlp/annotator/embeddings/auto_gguf_embeddings.py
97
99
  sparknlp/annotator/embeddings/bert_embeddings.py
98
100
  sparknlp/annotator/embeddings/bert_sentence_embeddings.py
99
101
  sparknlp/annotator/embeddings/bge_embeddings.py
@@ -222,6 +224,8 @@ sparknlp/pretrained/__init__.py
222
224
  sparknlp/pretrained/pretrained_pipeline.py
223
225
  sparknlp/pretrained/resource_downloader.py
224
226
  sparknlp/pretrained/utils.py
227
+ sparknlp/reader/__init__.py
228
+ sparknlp/reader/sparknlp_reader.py
225
229
  sparknlp/training/__init__.py
226
230
  sparknlp/training/conll.py
227
231
  sparknlp/training/conllu.py
@@ -12,17 +12,20 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- import sys
16
15
  import subprocess
16
+ import sys
17
17
  import threading
18
+
19
+ from pyspark.conf import SparkConf
20
+ from pyspark.context import SparkContext
21
+ from pyspark.java_gateway import launch_gateway
18
22
  from pyspark.sql import SparkSession
23
+
19
24
  from sparknlp import annotator
20
25
  # Must be declared here one by one or else PretrainedPipeline will fail with AttributeError
21
26
  from sparknlp.base import DocumentAssembler, MultiDocumentAssembler, Finisher, EmbeddingsFinisher, TokenAssembler, \
22
27
  Doc2Chunk, AudioAssembler, GraphFinisher, ImageAssembler, TableAssembler
23
- from pyspark.conf import SparkConf
24
- from pyspark.context import SparkContext
25
- from pyspark.java_gateway import launch_gateway
28
+ from sparknlp.reader import SparkNLPReader
26
29
 
27
30
  sys.modules['com.johnsnowlabs.nlp.annotators'] = annotator
28
31
  sys.modules['com.johnsnsowlabs.nlp.annotators.tokenizer'] = annotator
@@ -129,7 +132,7 @@ def start(gpu=False,
129
132
  The initiated Spark session.
130
133
 
131
134
  """
132
- current_version = "5.5.1"
135
+ current_version = "5.5.2"
133
136
 
134
137
  if params is None:
135
138
  params = {}
@@ -301,6 +304,9 @@ def start(gpu=False,
301
304
  spark_session = start_without_realtime_output()
302
305
  return spark_session
303
306
 
307
+ def read(params=None):
308
+ spark_session = start()
309
+ return SparkNLPReader(spark_session, params)
304
310
 
305
311
  def version():
306
312
  """Returns the current Spark NLP version.
@@ -310,4 +316,4 @@ def version():
310
316
  str
311
317
  The current Spark NLP version.
312
318
  """
313
- return '5.5.1'
319
+ return '5.5.2'
@@ -16,3 +16,4 @@ from sparknlp.annotator.cv.swin_for_image_classification import *
16
16
  from sparknlp.annotator.cv.convnext_for_image_classification import *
17
17
  from sparknlp.annotator.cv.vision_encoder_decoder_for_image_captioning import *
18
18
  from sparknlp.annotator.cv.clip_for_zero_shot_classification import *
19
+ from sparknlp.annotator.cv.blip_for_question_answering import *
@@ -0,0 +1,172 @@
1
+ # Copyright 2017-2024 John Snow Labs
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from sparknlp.common import *
16
+
17
+ class BLIPForQuestionAnswering(AnnotatorModel,
18
+ HasBatchedAnnotateImage,
19
+ HasImageFeatureProperties,
20
+ HasEngine,
21
+ HasCandidateLabelsProperties,
22
+ HasRescaleFactor):
23
+ """BLIPForQuestionAnswering can load BLIP models for visual question answering.
24
+ The model consists of a vision encoder, a text encoder as well as a text decoder.
25
+ The vision encoder will encode the input image, the text encoder will encode the input question together
26
+ with the encoding of the image, and the text decoder will output the answer to the question.
27
+
28
+ Pretrained models can be loaded with :meth:`.pretrained` of the companion
29
+ object:
30
+
31
+ >>> visualQAClassifier = BLIPForQuestionAnswering.pretrained() \\
32
+ ... .setInputCols(["image_assembler"]) \\
33
+ ... .setOutputCol("answer")
34
+
35
+ The default model is ``"blip_vqa_base"``, if no name is
36
+ provided.
37
+
38
+ For available pretrained models please see the `Models Hub
39
+ <https://sparknlp.org/models?task=Question+Answering>`__.
40
+
41
+ To see which models are compatible and how to import them see
42
+ `Import Transformers into Spark NLP 🚀
43
+ <https://github.com/JohnSnowLabs/spark-nlp/discussions/5669>`_.
44
+
45
+ ====================== ======================
46
+ Input Annotation types Output Annotation type
47
+ ====================== ======================
48
+ ``IMAGE`` ``DOCUMENT``
49
+ ====================== ======================
50
+
51
+ Parameters
52
+ ----------
53
+ batchSize
54
+ Batch size. Large values allows faster processing but requires more
55
+ memory, by default 2
56
+ configProtoBytes
57
+ ConfigProto from tensorflow, serialized into byte array.
58
+ maxSentenceLength
59
+ Max sentence length to process, by default 50
60
+
61
+ Examples
62
+ --------
63
+ >>> import sparknlp
64
+ >>> from sparknlp.base import *
65
+ >>> from sparknlp.annotator import *
66
+ >>> from pyspark.ml import Pipeline
67
+ >>> image_df = SparkSessionForTest.spark.read.format("image").load(path=images_path)
68
+ >>> test_df = image_df.withColumn("text", lit("What's this picture about?"))
69
+ >>> imageAssembler = ImageAssembler() \\
70
+ ... .setInputCol("image") \\
71
+ ... .setOutputCol("image_assembler")
72
+ >>> visualQAClassifier = BLIPForQuestionAnswering.pretrained() \\
73
+ ... .setInputCols("image_assembler") \\
74
+ ... .setOutputCol("answer") \\
75
+ ... .setSize(384)
76
+ >>> pipeline = Pipeline().setStages([
77
+ ... imageAssembler,
78
+ ... visualQAClassifier
79
+ ... ])
80
+ >>> result = pipeline.fit(test_df).transform(test_df)
81
+ >>> result.select("image_assembler.origin", "answer.result").show(false)
82
+ +--------------------------------------+------+
83
+ |origin |result|
84
+ +--------------------------------------+------+
85
+ |[file:///content/images/cat_image.jpg]|[cats]|
86
+ +--------------------------------------+------+
87
+ """
88
+
89
+ name = "BLIPForQuestionAnswering"
90
+
91
+ inputAnnotatorTypes = [AnnotatorType.IMAGE]
92
+
93
+ outputAnnotatorType = AnnotatorType.DOCUMENT
94
+
95
+ configProtoBytes = Param(Params._dummy(),
96
+ "configProtoBytes",
97
+ "ConfigProto from tensorflow, serialized into byte array. Get with "
98
+ "config_proto.SerializeToString()",
99
+ TypeConverters.toListInt)
100
+
101
+ maxSentenceLength = Param(Params._dummy(),
102
+ "maxSentenceLength",
103
+ "Maximum sentence length that the annotator will process. Above this, the sentence is skipped",
104
+ typeConverter=TypeConverters.toInt)
105
+
106
+ def setMaxSentenceSize(self, value):
107
+ """Sets Maximum sentence length that the annotator will process, by
108
+ default 50.
109
+
110
+ Parameters
111
+ ----------
112
+ value : int
113
+ Maximum sentence length that the annotator will process
114
+ """
115
+ return self._set(maxSentenceLength=value)
116
+
117
+
118
+ @keyword_only
119
+ def __init__(self, classname="com.johnsnowlabs.nlp.annotators.cv.BLIPForQuestionAnswering",
120
+ java_model=None):
121
+ super(BLIPForQuestionAnswering, self).__init__(
122
+ classname=classname,
123
+ java_model=java_model
124
+ )
125
+ self._setDefault(
126
+ batchSize=2,
127
+ size=384,
128
+ maxSentenceLength=50
129
+ )
130
+
131
+ @staticmethod
132
+ def loadSavedModel(folder, spark_session):
133
+ """Loads a locally saved model.
134
+
135
+ Parameters
136
+ ----------
137
+ folder : str
138
+ Folder of the saved model
139
+ spark_session : pyspark.sql.SparkSession
140
+ The current SparkSession
141
+
142
+ Returns
143
+ -------
144
+ CLIPForZeroShotClassification
145
+ The restored model
146
+ """
147
+ from sparknlp.internal import _BLIPForQuestionAnswering
148
+ jModel = _BLIPForQuestionAnswering(folder, spark_session._jsparkSession)._java_obj
149
+ return BLIPForQuestionAnswering(java_model=jModel)
150
+
151
+ @staticmethod
152
+ def pretrained(name="blip_vqa_base", lang="en", remote_loc=None):
153
+ """Downloads and loads a pretrained model.
154
+
155
+ Parameters
156
+ ----------
157
+ name : str, optional
158
+ Name of the pretrained model, by default
159
+ "blip_vqa_tf"
160
+ lang : str, optional
161
+ Language of the pretrained model, by default "en"
162
+ remote_loc : str, optional
163
+ Optional remote address of the resource, by default None. Will use
164
+ Spark NLPs repositories otherwise.
165
+
166
+ Returns
167
+ -------
168
+ CLIPForZeroShotClassification
169
+ The restored model
170
+ """
171
+ from sparknlp.pretrained import ResourceDownloader
172
+ return ResourceDownloader.downloadModel(BLIPForQuestionAnswering, name, lang, remote_loc)
@@ -40,3 +40,4 @@ from sparknlp.annotator.embeddings.uae_embeddings import *
40
40
  from sparknlp.annotator.embeddings.mxbai_embeddings import *
41
41
  from sparknlp.annotator.embeddings.snowflake_embeddings import *
42
42
  from sparknlp.annotator.embeddings.nomic_embeddings import *
43
+ from sparknlp.annotator.embeddings.auto_gguf_embeddings import *