JE
jerryjliu/semtools_parseout
parseout
A simple wrapper for semtools parse that copies parsed markdown files to a specified output directory.
Install
mkdir -p ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/jerryjliu/semtools_parseout/main/parseout -o ~/.local/bin/parseout
chmod +x ~/.local/bin/parseoutMake sure ~/.local/bin is on your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc
source ~/.zshrcUsage
parseout <out_dir> <files...>Examples
# Parse a single PDF
parseout ./parsed document.pdf
# Parse multiple PDFs
parseout ./parsed scotus_118/*.pdfHow it works
parseout calls parse under the hood, which outputs parsed markdown files to ~/.parse/. This wrapper copies those files to your specified output directory.
Requirements
- semtools installed with
parsecommand available