Skip to content

After running parsr.get_text(), where are the text files saved?  #664

@maxloopinmok

Description

@maxloopinmok

There are only 3 files in my directory for testing Parsr:

test.py
defaultConfig.json
sample.pdf 

This is my test.py code:

import os
from parsr_client import ParsrClient
parsr = ParsrClient('localhost:3001')
input_file = 'sample.pdf'
parsr.send_document(
    file_path=input_file,
    config_path='defaultConfig.json',
    document_name='sample',
    save_request_id=True)
parsr.get_text()

I copied defaultConfig.json from https://github.com/axa-group/Parsr/blob/master/server/defaultConfig.json.

Most of my test.py code is copied from https://pypi.org/project/parsr-client/.

First, I started docker in one terminal window: docker run -p 3001:3001 axarev/parsr
Then, I run this command in another terminal window: python3 test.py

In the docker's terminal window, the output printed at the terminal is as I've copied into this attached file: docker output.txt

However, I do not know where to find the output text file created after pdf text extraction on my Mac. Could someone enlighten me?

docker output.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions