This repository contains example code for using typless ability of pre-learning. Pre-learning ability allow developers to improve their customers experience. To use it you must upload previous invoice files of customer with attaching confirmed data. So for every row in database one request is should be done.
-
Register at typless
-
Log in
-
Click the Settings tab in the side navigation bar to get API key
-
Create a new document type named pre-learning-example:
- Click on the Documents tab in the side navigation bar
- Click on the +New button
- For the name set "pre-learning-example"
- For the OCR language select "English"
- Click on the Next button
- Leave fields as they are and click on the Confirm button
-
Pre-learning ability is not enabled on free plan - contact us to enable it for testing
-
Get code of the example project from this Github repository.
git clone https://github.com/typless/continuous_learning.git
Set the API key:
export API_KEY=YOUR_API_KEY_FROM_SETTINGS_TAB
To install requirements:
pip install -r requirements.txt
To use pre-learning ability with example database:
python pre_learning.py
To extract data from example invoice after pre-learning:
python extract_data.py