INNER CODE UNIT · Python

show

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

def show(ka_path: str = typer.Argument(..., help="Knowledge Abstract directory")):
    """Visualize Knowledge Abstract using OntoSight."""
    logger.info("command=show ka_path=%s", ka_path)
    path = validate_ka_with_data(ka_path)

    template, lang = get_template_from_ka(path)

    console.print(f"[blue]Template:[/blue] {template}")
    console.print(f"[blue]Language:[/blue] {lang}")
    console.print()

    validate_config()

    with console.status("[bold blue]Loading Knowledge Abstract..."):
        try:
            ka = Template.create(template, lang)
            ka.load(path)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…