An open API service indexing awesome lists of open source software.

https://github.com/stabrise/scaledp-tutorials

Tutorials for ScaleDP library. ScaleDP is an Open-Source Library for Processing Documents in Apache Spark.
https://github.com/stabrise/scaledp-tutorials

ner nlp ocr ocr-python pdf spark

Last synced: 18 days ago
JSON representation

Tutorials for ScaleDP library. ScaleDP is an Open-Source Library for Processing Documents in Apache Spark.

Awesome Lists containing this project

README

        




ScaleDP



An Open-Source Library for Processing Documents in Apache Spark.



GitHub
StabRise

# ScaleDP Tutorials

[ScaleDP](https://github.com/StabRise/scaledp/) is a library for processing documents using Apache Spark.
And this repository contains jupyter notebooks with tutorials and examples of usage ScaleDP library.

ScaleDP includes the following features:

- Load PDF documents/Images
- Extract text from PDF documents/Images
- Extract text Images/PDF documents, OCR
- Zero-shot Data extraction from the Images/PDF documents using LLM
- Object detection over Images/PDF documents
- NER/LLM over Images/PDF documents
- Visualize results on the images
- Compatible with Spark PDF Datasource

## Table of Contents

We advise to run all examples through Google Colab for the easiest setup. Google Colab allows you to run it for free. All examples were tested using Google Colab, so it should be the most stable platform. However, any other cloud provider or local run should work.

| Chapter | Notebook |
|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1: QuickStart with ScaleDP | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/StabRise/scaledp-tutorials/blob/master/1.QuickStart.ipynb) |
| 2: Example of usage different OCR | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/StabRise/scaledp-tutorials/blob/master/2.Ocr.ipynb) |
| 3: NER Examples | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/StabRise/scaledp-tutorials/blob/master/3.Ner.ipynb) |
| 4: LLM NER Examples | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/StabRise/scaledp-tutorials/blob/master/4.LLMNer.ipynb) |
| 5: With Spark PDF | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/StabRise/scaledp-tutorials/blob/master/5.WithSparkPdf.ipynb) |

## Local Run

### Requirements

- Python 3.11
- Apache Spark 3.5 or higher
- Java 8, 11
- Tesseract 5.0 or higher
- Jupyter Lab | Google Colab

![](./images/ner_visualize.png)

![](./images/ner_visualize_1.png)