Skip to content

Latest commit

 

History

History
195 lines (145 loc) · 4.93 KB

sandbox.md

File metadata and controls

195 lines (145 loc) · 4.93 KB
layout title
base
Sandbox

Sandbox

This file is intended as a "sandbox" for trying out the editing features. Feel free to make changes by clicking the "edit page" link at the top. (You need to be a project member and logged in to GitHub for this to work.)

(Please note: this page is public and shared with others, and its contents will be regularly reset. Don't store anything you want to keep here.)


Some markdown

  • bulleted
  • list
  1. numbered
  2. list

Link: link text

header 1

header 2

header 3

italics and bold

inline code


Some visualizations

Just some tokens
Tokens/Noun with/Adpos POS/Noun
A dependency
det(dependency, A)
Alternative syntax
Dynamic visualization (click "edit!")
Example with error
det(no-such, token)

CoNLL-U example

1 I I PRON PRN Num=Sing|Per=1 2 nsubj _ _ 2-3 haven't _ _ _ _ _ _ _ _ 2 have have VERB VB Tens=Pres 0 root _ _ 3 not not ADV RB _ 2 neg _ _ 4 a a DET DT _ 5 det _ _ 5 clue clue NOUN NN Num=Sing 2 dobj _ _ 6 . . PUNCT . _ 2 punct _ _

What about secondary dependencies in the enhanced representation?

1 She _ PRON _ _ 2 nsubj _ _ 2 declared _ VERB _ _ 0 root _ _ 3 the _ DET _ _ 4 det _ _ 4 cake _ NOUN _ _ 2 dobj 5:nsubj _ 5 beautiful _ ADJ _ _ 2 xcomp _ _ 6 . _ PUNCT _ _ 2 punct _ _

Two sentences can be used to show the English translation of a foreign example:

# give the toys to the children
1 donner donner VERB _ VerbForm=Inf 0 root _ give
2 les le DET _ Definite=Def|Number=Plur 3 det _ the
3 jouets jouet NOUN _ Gender=Masc|Number=Plur 1 dobj _ toys
4-5 aux _ _ _ _ _ _ _ _
4 à à ADP _ _ 6 case _ to
5 les le DET _ Definite=Def|Number=Plur 6 det _ the
6 enfants enfant NOUN _ Gender=Masc|Number=Plur 1 nmod _ children

# now the parallel English tree
1 give donner VERB _ VerbForm=Inf 0 root _ give
2 the le DET _ Definite=Def|Number=Plur 3 det _ the
3 toys jouet NOUN _ Gender=Masc|Number=Plur 1 dobj _ toys
4 to à ADP _ _ 6 case _ to
5 the le DET _ Definite=Def|Number=Plur 6 det _ the
6 children enfant NOUN _ Gender=Masc|Number=Plur 1 nmod _ children

Simplified syntax + sentence label

# sentence-label long-label
1     I         I        PRON    PRN      Num=Sing|Per=1     2      nsubj _ _
2     have      have     VERB    VB       Tens=Pres          0      root _ _
Aדני/NOUN Aראה/VERB Aסרט/NOUN
nsubj(Aראה, Aדני)
dobj(Aראה, Aסרט)

Same without "A" (should trigger auto-insertion of "ˑ")

דני/NOUN ראה/VERB סרט/NOUN
nsubj(ראה, דני)
dobj(ראה, סרט)

Same sentence in CoNLL-U:

1     ˑדניˑ       _        NOUN    _      _     2      nsubj _ _
2     ˑראהˑ       _        VERB    _      _     0      root  _ _
3     ˑסרטˑ       _        NOUN    _      _     2      dobj  _ _

Without literal "ˑ" in input (should trigger auto-insertion)

1     דני       _        NOUN    _      _     2      nsubj _ _
2     ראה       _        VERB    _      _     0      root  _ _
3     סרט       _        NOUN    _      _     2      dobj  _ _

Does Arabic work as well?

1     ˑوَˑ       _        NOUN    _      _     2      nsubj _ _
2     ˑلاحَظَˑ       _        VERB    _      _     0      root  _ _
3     ˑالتَقْرِيرُˑ       _        NOUN    _      _     2      dobj  _ _

Without literal "ˑ" in input (should trigger auto-insertion)

1     وَ       _        NOUN    _      _     2      nsubj _ _
2     لاحَظَ       _        VERB    _      _     0      root  _ _
3     التَقْرِيرُ       _        NOUN    _      _     2      dobj  _ _
1     ‎דני       _        NOUN    _      _     2      nsubj _ _
2     ‎ראה       _        VERB    _      _     0      root  _ _
3     ‎סרט       _        NOUN    _      _     2      dobj  _ _

Some Jekyll

Finnish documentation for relations containing "cop"

{% for p in site.fi-dep %} {% if p.title contains "cop" %} {{ p.content }} {% endif %} {% endfor %}

Finnish documentation for relations with tag "case"

{% for p in site.fi-dep %} {% if p.tags contains "case" %} {{ p.content }} {% endif %} {% endfor %}