Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unrecognized arguments" using positional arguments #425

Open
3raxton opened this issue Dec 14, 2024 · 1 comment
Open

"Unrecognized arguments" using positional arguments #425

3raxton opened this issue Dec 14, 2024 · 1 comment

Comments

@3raxton
Copy link

3raxton commented Dec 14, 2024

Hey @VikParuchuri, thanks for the great work on this, I appreciate it! I am working with marker and I am facing the following traceback regarding unrecognized arguments that I cannot resolve. The issue with this is that the input arguments are directly suggested by marker. I'm not sure how to proceed. Any insight helps, thank you!

Python version: 3.10.15

SUMN marker -h          
usage: marker [-h] [--chunk_idx CHUNK_IDX] [--num_chunks NUM_CHUNKS] [--max MAX]
              [--workers WORKERS] [--metadata_file METADATA_FILE]
              [--min_length MIN_LENGTH]
              in_folder out_folder

Convert multiple pdfs to markdown.

positional arguments:
  in_folder             Input folder with pdfs.
  out_folder            Output folder

options:
  -h, --help            show this help message and exit
  --chunk_idx CHUNK_IDX
                        Chunk index to convert
  --num_chunks NUM_CHUNKS
                        Number of chunks being processed in parallel
  --max MAX             Maximum number of pdfs to convert
  --workers WORKERS     Number of worker processes to use
  --metadata_file METADATA_FILE
                        Metadata json file to use for filtering
  --min_length MIN_LENGTH
                        Minimum length of pdf to convert
SUMN marker in_folder /Users/Prized/Desktop/un out_folder /Users/Prized/Desktop/un2  
usage: marker [-h] [--chunk_idx CHUNK_IDX] [--num_chunks NUM_CHUNKS] [--max MAX]
              [--workers WORKERS] [--metadata_file METADATA_FILE]
              [--min_length MIN_LENGTH]
              in_folder out_folder
marker: error: unrecognized arguments: out_folder /Users/Prized/Desktop/un2
@3raxton
Copy link
Author

3raxton commented Dec 14, 2024

A quick note, I have also tried the marker_single command with partial success but no output. When using this command, the traceback reveals an issue with my folder structure used by marker. I do not know how to proceed with this traceback.

marker_single /Users/Prized/Desktop/un.pdf output /Users/Prized/Desktop/un   
usage: marker_single [-h] [--max_pages MAX_PAGES] [--langs LANGS]
                     [--batch_multiplier BATCH_MULTIPLIER]
                     filename output
marker_single: error: unrecognized arguments: /Users/Prized/Desktop/un

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant