Git Product home page Git Product logo

notebooks's Introduction

Deep Doctection Logo

A Document AI Package - Jupyter notebook tutorials

In this repo you will find jupyter notebooks that used to be in the main repo deepdoctection. If you encouter problems, feel free to open an issue in the deepdoctection repository.

In addition, the repo contains a folder with examples that are used in the notebooks.

Get_Started.ipynb:

  • Introduction to deepdoctection
  • Analyzer
  • Output structure: Page, Layouts, Tables
  • Saving and reading a parsed document

Pipelines.ipynb:

  • Pipelines
  • Analyzer configuration
  • Pipeline components
  • Layout detection models
  • OCR matching and reading order

Analyzer_Configuration.ipynb

  • Analyzer Configuration
  • How to change configuration
  • High level Configuration
  • Layout models
  • Table transformer
  • Custom model
  • Table segmentation
  • Text extraction
  • PDFPlumber
  • Tesseract
  • DocTr
  • AWS Textract
  • Word matching
  • Text ordering

Analyzer_with_Table_Transformer.ipynb:

  • Analyzer configuration for running Table Transformer
  • General configuration
  • Table segmentation

Custom_Pipeline.ipynb:

  • Model catalog and registries
  • Predictors
  • Instantiating Pipeline backbones
  • Instantiating Pipelines

Datasets_and_Eval.ipynb:

  • Creation of custom datasets
  • Evaluation
  • Fine tuning models

Data_structure.ipynb:

  • Diving deeper into the data structure
  • Page and Image
  • ObjectTypes
  • ImageAnnotation and sub categories
  • Adding an ImageAnnotation
  • Adding a ContainerAnnotation to an ImageAnnotation
  • Sub images from given ImageAnnotation

Using_LayoutLM_for_sequence_classification.ipynb:

  • Fine tuning LayoutLM for sequence classification on a custom dataset
  • Evaluation
  • Building and running a production pipeline

Running_pre_trained_models_from_other_libraries.ipynb

  • Installing and running pre-trained models provided by Layout-Parser
  • Adding new categories

The next three notebooks are experiments on a custom dataset for token classification that has been made available through Huggingface. It shows, how to train and evaluate each model of the LayoutLM family and how to track experiments with W&B.

Layoutlm_v1_on_custom_token_classification.ipynb

  • LayoutLMv1 for financial report NER
  • Defining object types
  • Visualization and display of ground truth
  • Defining Dataflow and Dataset
  • Defining a split and saving the split distribution as W&B artifact
  • LayoutLMv1 training
  • Further exploration of evaluation
  • Evaluation with confusion matrix
  • Visualizing predictions and ground truth
  • Evaluation on test set
  • Changing training parameters and settings

Layoutlm_v2_on_custom_token_classification.ipynb

  • LayoutLMv2 for financial report NER
  • Defining ObjectTypes, Dataset and Dataflow
  • Loading W&B artifact and building dataset split
  • Exporing the language distribustion across the split
  • Evaluation
  • LayoutXLM for financial report NER
  • Training XLM models on separate languages

Layoutlm_v3_on_custom_token_classification.ipynb

  • LayoutLMv3 for financial report NER
  • Evaluation
  • Conclusion

To use the notebooks deepdoctection must be installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.