<commit_before>---
layout: base
title:  'Visualisation'
---

# Quick introduction

This online repository contains dependency annotation documentation
and visualizations, built using a combination of Jekyll, GitHub pages
and embedded brat visualizations. Here's a minimal example:

<div class="example" markdown="1">

An adjectival complement of a verb is an adjectival phrase which functions as the complement (see [ADJ]()).

~~~ sdparse
She looks very beautiful
acomp(looks, beautiful)
~~~

</div>

The text is [Markdown](http://daringfireball.net/projects/markdown/syntax)
(with optional inline HTML) and the data for the visualizations is
represented in either the Stanford Dependency or CoNLL-X format. For
example, the above visualization is generated from this input:

    An adjectival complement of a verb is an adjectival phrase which functions as the complement (see [ADJ]()).

    ~~~ sdparse
    She looks very beautiful
    acomp(looks, beautiful)
    ~~~

See the [links below](#more-information) for more information.

## How to contribute

See [here](contributing.html) for instructions on how to contribute to
this online documentation. [This page](embedsd.html) provides details
on how the visualized examples are created.

## More information:

The following sources of documentation provide further details:

- [Markdown](http://daringfireball.net/projects/markdown/syntax)
- [Github pages](https://pages.github.com/)
- [Embedded brat](http://brat.nlplab.org/embed.html)
- [Stanford Dependencies](http://nlp.stanford.edu/software/stanford-dependencies.shtml)

Further details are provided below.

# Automatic parse visualization

## Simple examples

A single tree in the Stanford Dependency format can be embedded using
the following syntax:

    ~~~ sdparse
    Dogs run
    nsubj(run, Dogs)
    ~~~

which results in this embedded visualization:

~~~ sdparse
Dogs run
nsubj(run, Dogs)
~~~

The CoNLL-X format is also supported. For example,

    ~~~ conllx
    1    Dogs   dog    _    NNS    _    2    nsubj
    2    run    run    _    VBP    _    0    ROOT
    ~~~

gives

~~~ conllx
1    Dogs   dog    _    NNS    _    2    nsubj
2    run    run    _    VBP    _    0    ROOT
~~~

You can have any number of visualizations on a page, and any
standard HTML content can be freely mixed with the visualizations.

## Alternative form

As an alternative to the `~~~` syntax, you can use the equivalent HTML<commit_msg>Mentioned CoNLL-U in the documentation of the visualizations.<commit_after>---
layout: base
title:  'Visualisation'
---

# Quick introduction

This online repository contains dependency annotation documentation
and visualizations, built using a combination of Jekyll, GitHub pages
and embedded brat visualizations. Here's a minimal example:

<div class="example" markdown="1">

An adjectival complement of a verb is an adjectival phrase which functions as the complement (see [ADJ]()).

~~~ sdparse
She looks very beautiful
acomp(looks, beautiful)
~~~

</div>

The text is [Markdown](http://daringfireball.net/projects/markdown/syntax)
(with optional inline HTML) and the data for the visualizations is
represented in either the Stanford Dependency or CoNLL-X format. For
example, the above visualization is generated from this input:

    An adjectival complement of a verb is an adjectival phrase which functions as the complement (see [ADJ]()).

    ~~~ sdparse
    She looks very beautiful
    acomp(looks, beautiful)
    ~~~

See the [links below](#more-information) for more information.

## How to contribute

See [here](contributing.html) for instructions on how to contribute to
this online documentation. [This page](embedsd.html) provides details
on how the visualized examples are created.

## More information:

The following sources of documentation provide further details:

- [Markdown](http://daringfireball.net/projects/markdown/syntax)
- [Github pages](https://pages.github.com/)
- [Embedded brat](http://brat.nlplab.org/embed.html)
- [Stanford Dependencies](http://nlp.stanford.edu/software/stanford-dependencies.shtml)

Further details are provided below.

# Automatic parse visualization

## Simple examples

A single tree in the Stanford Dependency format can be embedded using
the following syntax:

    ~~~ sdparse
    Dogs run
    nsubj(run, Dogs)
    ~~~

which results in this embedded visualization:

~~~ sdparse
Dogs run
nsubj(run, Dogs)
~~~

The CoNLL-X format is also supported. For example,

    ~~~ conllx
    1    Dogs   dog    _    NNS    _    2    nsubj
    2    run    run    _    VBP    _    0    ROOT
    ~~~

gives

~~~ conllx
1    Dogs   dog    _    NNS    _    2    nsubj
2    run    run    _    VBP    _    0    ROOT
~~~

Similarly, the new <a href="format.html">CoNLL-U format</a> is now supported as well:

    ~~~ conllu
    # I wrote the letter with a quill.
    1   Я         ja         PRON   _   Case=Nom|Number=Sing|Person=1|PronType=Prs        2   nsubj   _   I
    2   написал   napisat'   VERB   _   Gender=Masc|Number=Sing|VerbForm=Part|Voice=Act   0   root    _   wrote
    3   письмо    pis'mo     NOUN   _   Case=Acc|Gender=Neut|Number=Sing                  2   dobj    _   the-letter
    4   пером     pero       NOUN   _   Case=Ins|Gender=Neut|Number=Sing                  2   nmod    _   with-a-quill
    ~~~

~~~ conllu
# I wrote the letter with a quill.
1   Я         ja         PRON   _   Case=Nom|Number=Sing|Person=1|PronType=Prs        2   nsubj   _   I
2   написал   napisat'   VERB   _   Gender=Masc|Number=Sing|VerbForm=Part|Voice=Act   0   root    _   wrote
3   письмо    pis'mo     NOUN   _   Case=Acc|Gender=Neut|Number=Sing                  2   dobj    _   the-letter
4   пером     pero       NOUN   _   Case=Ins|Gender=Neut|Number=Sing                  2   nmod    _   with-a-quill
~~~

You can have any number of visualizations on a page, and any
standard HTML content can be freely mixed with the visualizations.

## Alternative form

As an alternative to the `~~~` syntax, you can use the equivalent HTML
{'fraction_non_alphanumeric': 0.0817140009965122, 'fraction_numerical': 0.005979073243647235, 'mean_word_length': 3.0389000670690813, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4393188', 'n_tokens_mistral': 1888, 'n_tokens_neox': 1783, 'n_words': 657}