Analyze and extract structured content from Word (.doc/.docx) files using MinerU. Returns Markdown with layout, headings, and structure preserved.
bash
npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest
bash
# Analyze a .docx file (requires token)
mineru-open-api extract report.docx -o ./out/
# Analyze a .doc file (requires token)
mineru-open-api extract report.doc -o ./out/
# Specify language
mineru-open-api extract report.docx --language en -o ./out/
Token required:
bash
mineru-open-api auth # Interactive token setup
export MINERU_TOKEN="your-token" # Or via environment variable
Create token at: https://mineru.net/apiManage/token
mineru-open-api auth or MINERU_TOKEN env)--language (default: ch, use en for English).doc (legacy Word format) is only supported by extract (requires token).docx supports both flash-extract (no token, quick) and extract (full features)-o <dir> to save to a file or directory