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-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f85ed51c76fe5ebf8624c64fe6b1bfc2e5d876842bb44ea7b732d83471819143 |
|
MD5 | c85728f7c091fc133d3e3b839f3d6b0f |
|
BLAKE2b-256 | fa2043240e5e67f62c69ab10305267d1a9ea82a68cc12b29771cc1acebac57be |
Hashes for legal_doc_processing-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee5fbdcd58bda074f15a6898545d8af4a63d89580e92e79f474fdb40a93faac |
|
MD5 | 39324e266d3c6183b19d55de917211d1 |
|
BLAKE2b-256 | 1311f09b14a7e8e6b909424885c759c3d6b95fef98c536e0381b6504b0c8d1c7 |