Skip to content

Add option to render compact parse trees #200

@frreiss

Description

@frreiss

Right now tp.io.spacy.render_parse_tree() uses DisplaCy's large format to render parse trees. Bigger parse trees end up taking a lot of space. There should be an option to use the compact argument to use the more compact format with square arrows; see https://spacy.io/usage/visualizers#dep.

Compact rendering should be on by default for parse trees larger than 10 nodes or so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions