Coder Social home page Coder Social logo

lapdftext-rules's Introduction

lapdftext-rules

A project to enable other developers to use the LA-PDFText system effectively by designing their own rule files.

Examine the /src/test/java/edu/isi/bmkeg/lapdf/general/TestTemplate.java file (as shown below).

This test will run the new edu.isi.bmkeg.lapdf.bin.DebugLapdfFeatures.main() command on the *.pdf file using the *.drl file.

package edu.isi.bmkeg.lapdf.general;

import java.io.File;
import java.net.URL;
import org.junit.Test;
import edu.isi.bmkeg.lapdf.LAPDFTextEpochCheck_BaseTest;
import edu.isi.bmkeg.utils.Converters;
import edu.isi.bmkeg.utils.springContext.BmkegProperties;

public class TestTemplate extends LAPDFTextEpochCheck_BaseTest
{
    @Test
    public void test_001() throws Exception {	
        this.runBlockifyClassifyImagify(
                 "edu/isi/bmkeg/lapdf/makki-2010-8-e1000441.pdf", 
                 "edu/isi/bmkeg/lapdf/general.drl"
        );
    }
}

The system creates three files in the ./target/test-classes/ subdirectory.

  1. An open-access *.xml file consisting of all chunks classified as non-headers and footers (including unclassified text).
  2. A directory with images for each page consisting of every block and their existing classification (with no words).
  3. A *.csv file with all the features for all the blocks precalculated. Reconfigure this file to create rules.

NOTE: This is intended as a vehicle of interaction. Please use develop your own rule files in this project as test cases and then issue a pull request so that we can incorporate them into our system. We hope to build up a catalog.

lapdftext-rules's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kinow

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.