Theolex document processing
Project description
[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/) [![codecov](https://codecov.io/gh/THEOLEX-IO/legal_doc_processing/branch/master/graph/badge.svg)](https://codecov.io/gh/THEOLEX-IO/legal_doc_processing) [![Build Status](https://travis-ci.org/mtchavez/python-package-boilerplate.png?branch=master)](https://travis-ci.org/mtchavez/python-package-boilerplate) [![Requires.io](https://requires.io/github/mtchavez/python-package-boilerplate/requirements.svg?branch=master)](https://requires.io/github/mtchavez/python-package-boilerplate/requirements?branch=master) [![DeepSource](https://deepsource.io/gh/THEOLEX-IO/legal_doc_processing.svg/?label=active+issues&show_trend=true)](https://deepsource.io/gh/THEOLEX-IO/legal_doc_processing/?ref=repository-badge)
## Requirements
Package requirements are handled using pip. To install them do
` pip install -r requirements.txt `
## Tests
Testing is set up using [pytest](http://pytest.org) and coverage is handled with the pytest-cov plugin.
Run your tests with `pytest` in the root directory.
Coverage is ran by default and is set in the `pytest.ini` file. To see an html output of coverage open `htmlcov/index.html` after running the tests.
## Pipe steps:
Cleaning and feature engineering –> segmentation –> classification –> information extraction
## Usage:
`import legal_doc_processing as ldp`
### in case you have a text : `ld = ldp.LegalDoc(your_text)`
### in case you have a filepath : `ld = ldp.read_file(your_filepath)`
### make a prediction : `case = ld.predict_case()`
`defendant = ld.defendant()`
### make all predictions `preds = ld.predict_all()`
### after a predict “feature” or after predict_all method you can find your predictions as attributes : `case = ld.case`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for legal_doc_processing-0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5953e53425d00e09dc706352ca37c3aaa8b58a128d7675c5618aa4c897848fa5 |
|
MD5 | 0cb30fdc9312699d9633b78b4ec98e64 |
|
BLAKE2b-256 | 2d311cfeb7798abaf690fbd3e0c58516d6f307abd95618e2a82b2c11f67d269b |
Hashes for legal_doc_processing-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1470e766c0195780f8a69b826b0f768e5565ba53b242c6956cafd4345d2c005a |
|
MD5 | 93f287f87d33ce5905cf93d4c8b46f66 |
|
BLAKE2b-256 | 045563d051b0d8867a7958a77bae542ac0909e1a75b48c69864e6d40e6177143 |