INNER CODE UNIT · Python

_feed_one_document

yifanfeng97/Hyper-Extract · hyperextract/cli/cli.py:1327

def _feed_one_document(
    ka,
    output_path: Path,
    input: str,
    source: str | None,
    refeed: bool,
    store_doc: bool,
) -> bool:
    """Ingest one file or stdin into ``ka``. Returns False if skipped unchanged."""
    require_supported_text_input(input)
    text = read_input(input)
    console.print(
        f"[dim]Input {Path(input).name if input != '-' else 'stdin'}: "
        f"{len(text)} characters"
        f"{f' (source: {source})' if source else ''}[/dim]"
    )

    text_hash_to_record = None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…