Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grew
grew_match
Commits
193e2334
Commit
193e2334
authored
Sep 29, 2019
by
Bruno Guillaume
Browse files
snippets for clustering
parent
c009188a
Changes
20
Hide whitespace changes
Inline
Side-by-side
corpora_for_website/SUD-24/right_pane.html
View file @
193e2334
...
...
@@ -14,11 +14,18 @@
<ul>
<li><a
href=
"#"
snippet-file=
"snippets/search_form.pat"
class=
"inter"
>
Search for a form
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_lemma.pat"
class=
"inter"
>
Search for a lemma (does not exist in all languages)
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_upos.pat"
class=
"inter"
>
Search for a
tag
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_upos.pat"
class=
"inter"
>
Search for a
POS (upos)
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_rel.pat"
class=
"inter"
>
Search for a dependency relation
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/mixed.pat"
class=
"inter"
>
Search for both relations and tags
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/negation.pat"
class=
"inter"
>
Filter with NAP (Negative Application Patterns)
</a></li>
</ul>
<h4><object
type=
"image/svg+xml"
data=
"icon/new.svg"
width=
"35"
height=
"35"
></object>
Results can be clustered:
</h4>
<ul>
<li><a
href=
"#"
clustering=
"GOV.upos"
snippet-file=
"snippets/clust_upos.pat"
class=
"inter"
>
By upos
</a></li>
<li><a
href=
"#"
clustering=
"N.lemma"
snippet-file=
"snippets/clust_lemma.pat"
class=
"inter"
>
By lemma
</a></li>
<li><a
href=
"#"
clustering=
"N.VerbForm"
snippet-file=
"snippets/clust_verbform.pat"
class=
"inter"
>
By other feature
</a></li>
<li><a
href=
"#"
clustering=
"e"
snippet-file=
"snippets/clust_edge.pat"
class=
"inter"
>
By edge label
</a></li>
</ul>
</div>
<div
class=
"tab-pane"
id=
"step2"
>
...
...
corpora_for_website/SUD-24/snippets/clust_edge.pat
0 → 100644
View file @
193e2334
% What are the dependency relations between a VERB and a NOUN?
% NOTE: it is required to give a name ('e' here) to the edge to make reference to if as a cluster key
pattern { e: GOV -> DEP; GOV[upos=VERB]; DEP[upos=NOUN] }
corpora_for_website/SUD-24/snippets/clust_lemma.pat
0 → 100644
View file @
193e2334
% What are the lemmas of auxiliaries?
% The clustering key N.lemmas returns a clustering of the results for each possible lemma of an auxiliary
pattern { N [upos = AUX] }
corpora_for_website/SUD-24/snippets/clust_upos.pat
0 → 100644
View file @
193e2334
% What are the upos of NOUN governors?
% The pattern below searches for a GOV node which has a dependent DEP with upos NOUN
% The clustering key GOV.upos returns a clustering of the results for each possible upos of the GOV node
pattern { GOV -> DEP; DEP [upos=NOUN] }
corpora_for_website/SUD-24/snippets/clust_verbform.pat
0 → 100644
View file @
193e2334
% What are the possible values of the VerfForm feature for verbs and auxiliaries?
pattern { N[upos = VERB|AUX] }
corpora_for_website/UD-24/right_pane.html
View file @
193e2334
...
...
@@ -16,11 +16,18 @@
<ul>
<li><a
href=
"#"
snippet-file=
"snippets/search_form.pat"
class=
"inter"
>
Search for a form
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_lemma.pat"
class=
"inter"
>
Search for a lemma (does not exist in all languages)
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_upos.pat"
class=
"inter"
>
Search for a
tag
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_upos.pat"
class=
"inter"
>
Search for a
POS (upos)
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_rel.pat"
class=
"inter"
>
Search for a dependency relation
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/mixed.pat"
class=
"inter"
>
Search for both relations and tags
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/negation.pat"
class=
"inter"
>
Filter with NAP (Negative Application Patterns)
</a></li>
</ul>
<h4><object
type=
"image/svg+xml"
data=
"icon/new.svg"
width=
"35"
height=
"35"
></object>
Results can be clustered:
</h4>
<ul>
<li><a
href=
"#"
clustering=
"GOV.upos"
snippet-file=
"snippets/clust_upos.pat"
class=
"inter"
>
By upos
</a></li>
<li><a
href=
"#"
clustering=
"N.lemma"
snippet-file=
"snippets/clust_lemma.pat"
class=
"inter"
>
By lemma
</a></li>
<li><a
href=
"#"
clustering=
"N.VerbForm"
snippet-file=
"snippets/clust_verbform.pat"
class=
"inter"
>
By other feature
</a></li>
<li><a
href=
"#"
clustering=
"e"
snippet-file=
"snippets/clust_edge.pat"
class=
"inter"
>
By edge label
</a></li>
</ul>
</div>
<div
class=
"tab-pane"
id=
"step2"
>
...
...
corpora_for_website/UD-24/snippets/clust_edge.pat
0 → 100644
View file @
193e2334
% What are the dependency relations between a VERB and a NOUN?
% NOTE: it is required to give a name ('e' here) to the edge to make reference to if as a cluster key
pattern { e: GOV -> DEP; GOV[upos=VERB]; DEP[upos=NOUN] }
corpora_for_website/UD-24/snippets/clust_lemma.pat
0 → 100644
View file @
193e2334
% What are the lemmas of auxiliaries?
% The clustering key N.lemmas returns a clustering of the results for each possible lemma of an auxiliary
pattern { N [upos = AUX] }
corpora_for_website/UD-24/snippets/clust_upos.pat
0 → 100644
View file @
193e2334
% What are the upos of NOUN governors?
% The pattern below searches for a GOV node which has a dependent DEP with upos NOUN
% The clustering key GOV.upos returns a clustering of the results for each possible upos of the GOV node
pattern { GOV -> DEP; DEP [upos=NOUN] }
corpora_for_website/UD-24/snippets/clust_verbform.pat
0 → 100644
View file @
193e2334
% What are the possible values of the VerfForm feature for verbs and auxiliaries?
pattern { N[upos = VERB|AUX] }
corpora_for_website/UD-misc/parseme/right_pane.html
View file @
193e2334
...
...
@@ -15,7 +15,7 @@
<ul>
<li><a
href=
"#"
snippet-file=
"../snippets/search_form.pat"
class=
"inter"
>
Search for a form
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/search_lemma.pat"
class=
"inter"
>
Search for a lemma (does not exist in all languages)
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/search_upos.pat"
class=
"inter"
>
Search for a
tag
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/search_upos.pat"
class=
"inter"
>
Search for a
POS (upos)
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/search_rel.pat"
class=
"inter"
>
Search for a dependency relation
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/mixed.pat"
class=
"inter"
>
Search for both relations and tags
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/negation.pat"
class=
"inter"
>
Filter with NAP (Negative Application Patterns)
</a></li>
...
...
corpora_for_website/UD-misc/right_pane.html
View file @
193e2334
...
...
@@ -16,11 +16,18 @@
<ul>
<li><a
href=
"#"
snippet-file=
"snippets/search_form.pat"
class=
"inter"
>
Search for a form
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_lemma.pat"
class=
"inter"
>
Search for a lemma (does not exist in all languages)
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_upos.pat"
class=
"inter"
>
Search for a
tag
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_upos.pat"
class=
"inter"
>
Search for a
POS (upos)
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_rel.pat"
class=
"inter"
>
Search for a dependency relation
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/mixed.pat"
class=
"inter"
>
Search for both relations and tags
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/negation.pat"
class=
"inter"
>
Filter with NAP (Negative Application Patterns)
</a></li>
</ul>
<h4><object
type=
"image/svg+xml"
data=
"icon/new.svg"
width=
"35"
height=
"35"
></object>
Results can be clustered:
</h4>
<ul>
<li><a
href=
"#"
clustering=
"GOV.upos"
snippet-file=
"snippets/clust_upos.pat"
class=
"inter"
>
By upos
</a></li>
<li><a
href=
"#"
clustering=
"N.lemma"
snippet-file=
"snippets/clust_lemma.pat"
class=
"inter"
>
By lemma
</a></li>
<li><a
href=
"#"
clustering=
"N.VerbForm"
snippet-file=
"snippets/clust_verbform.pat"
class=
"inter"
>
By other feature
</a></li>
<li><a
href=
"#"
clustering=
"e"
snippet-file=
"snippets/clust_edge.pat"
class=
"inter"
>
By edge label
</a></li>
</ul>
</div>
<div
class=
"tab-pane"
id=
"step2"
>
...
...
corpora_for_website/UD-misc/snippets/clust_edge.pat
0 → 100644
View file @
193e2334
% What are the dependency relations between a VERB and a NOUN?
% NOTE: it is required to give a name ('e' here) to the edge to make reference to if as a cluster key
pattern { e: GOV -> DEP; GOV[upos=VERB]; DEP[upos=NOUN] }
corpora_for_website/UD-misc/snippets/clust_lemma.pat
0 → 100644
View file @
193e2334
% What are the lemmas of auxiliaries?
% The clustering key N.lemmas returns a clustering of the results for each possible lemma of an auxiliary
pattern { N [upos = AUX] }
corpora_for_website/UD-misc/snippets/clust_upos.pat
0 → 100644
View file @
193e2334
% What are the upos of NOUN governors?
% The pattern below searches for a GOV node which has a dependent DEP with upos NOUN
% The clustering key GOV.upos returns a clustering of the results for each possible upos of the GOV node
pattern { GOV -> DEP; DEP [upos=NOUN] }
corpora_for_website/UD-misc/snippets/clust_verbform.pat
0 → 100644
View file @
193e2334
% What are the possible values of the VerfForm feature for verbs and auxiliaries?
pattern { N[upos = VERB|AUX] }
corpora_for_website/UD-misc/sud/right_pane.html
View file @
193e2334
...
...
@@ -13,7 +13,7 @@
<ul>
<li><a
href=
"#"
snippet-file=
"../snippets/search_form.pat"
class=
"inter"
>
Search for a form
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/search_lemma.pat"
class=
"inter"
>
Search for a lemma
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/search_upos.pat"
class=
"inter"
>
Search for a
tag
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets/search_upos.pat"
class=
"inter"
>
Search for a
POS (upos)
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_rel.pat"
class=
"inter"
>
Search for a SUD relation
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/search_under.pat"
class=
"inter"
>
Search for an underspecified SUD relation
</a></li>
<li><a
href=
"#"
snippet-file=
"snippets/fail.pat"
class=
"inter"
>
Search for a UD relation not converted
</a></li>
...
...
corpora_for_website/sequoia/parseme-check/right_pane.html
View file @
193e2334
...
...
@@ -16,7 +16,7 @@
<ul>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_form.pat"
class=
"inter"
>
Search for a form
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_lemma.pat"
class=
"inter"
>
Search for a lemma
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_upos.pat"
class=
"inter"
>
Search for a
tag
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_upos.pat"
class=
"inter"
>
Search for a
POS (upos)
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_rel.pat"
class=
"inter"
>
Search for a dependency relation
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/mixed.pat"
class=
"inter"
>
Search for both relations and tags
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/negation.pat"
class=
"inter"
>
Filter with NAP (Negative Application Patterns)
</a></li>
...
...
corpora_for_website/sequoia/parseme/right_pane.html
View file @
193e2334
...
...
@@ -15,7 +15,7 @@
<ul>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_form.pat"
class=
"inter"
>
Search for a form
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_lemma.pat"
class=
"inter"
>
Search for a lemma (does not exist in all languages)
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_upos.pat"
class=
"inter"
>
Search for a
tag
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_upos.pat"
class=
"inter"
>
Search for a
POS (upos)
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/search_rel.pat"
class=
"inter"
>
Search for a dependency relation
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/mixed.pat"
class=
"inter"
>
Search for both relations and tags
</a></li>
<li><a
href=
"#"
snippet-file=
"../surf/snippets/negation.pat"
class=
"inter"
>
Filter with NAP (Negative Application Patterns)
</a></li>
...
...
icon/new.svg
0 → 100644
View file @
193e2334
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
version=
"1.1"
width=
"342px"
height=
"321px"
viewBox=
"-0.5 -0.5 342 321"
content=
"<mxfile modified="2019-09-29T08:49:06.300Z" host="www.draw.io" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36" etag="FQzgH8zhDnllVzxuO02L" version="12.0.0" type="device" pages="1"><diagram id="u853bdn5UjIrF4Jsk5Iq" name="Page-1">vVVNb6MwEP01HCMBJpQ9JmloL61WirI5e7EBtwZTYxayv34HbPPRJFIrdZsL9puxx/Pe08RBu6J7kLjKnwSh3PFd0jno3vF9L/B8+PTIWSORt9ZAJhkxSRNwYH+pAV2DNozQepGohOCKVUswEWVJE7XAsJSiXaalgi+rVjijF8AhwfwSPTGicoN64Y8p8EhZlpvSkX+nAwW2yaaTOsdEtDMI7R20k0IovSq6HeU9eZYXfS6+ER0fJmmpPnLgKfzZtG+bl1N3LMgxOgbu79XKqPMH88Y0bB6rzpYBuAXIhs22zZmihwonfaQFvQHLVcFh58ES15VWIGUdhaLblHG+E1zI4SIUxy78ADc1qVS0u9mMN1IE3qKioEqeIcUeWAf6iLGVh5Det5NIfmSYz2f6jCA2xsjGuyfuYGHo+wSV6FupjGPo+GuovHtH5foKlcE1KoP/RWVwhcqQq54HAU3NOQ3fGmEDq3oYHxtIiNZVNwWH+WDJm0CUpoMjZ1CY9d/n/ckWhPfrmjpyISnwrpba1UqKV2rFKkVJ3+lnIMxZVsI2AZ0o4NteRQaTZ2MCBSOE3zKLFE1Jemvcu6Z7Mzu9yAIxLhjvRf1FJcEltnnm8d5wi8KKib7aCgbX1/gJuUs/he6Fn5B7xU9j4if8BNtpgg6x2f8Q2v8D</diagram></mxfile>"
><defs/><g><ellipse
cx=
"184"
cy=
"179"
rx=
"140"
ry=
"140"
fill=
"#ff0000"
stroke=
"#000000"
pointer-events=
"none"
/><ellipse
cx=
"184"
cy=
"179"
rx=
"120"
ry=
"120"
fill=
"#ffff33"
stroke=
"#000000"
pointer-events=
"none"
/><g
transform=
"translate(56.5,38.5)rotate(-27,113,107)"
><switch><foreignObject
style=
"overflow:visible;"
pointer-events=
"all"
width=
"226"
height=
"214"
requiredFeatures=
"http://www.w3.org/TR/SVG11/feature#Extensibility"
><div
xmlns=
"http://www.w3.org/1999/xhtml"
style=
"display: inline-block; font-size: 180px; font-family: Verdana; color: rgb(0, 0, 0); line-height: 1.2; vertical-align: top; width: 226px; white-space: nowrap; overflow-wrap: normal; font-weight: bold; text-align: center;"
><div
xmlns=
"http://www.w3.org/1999/xhtml"
style=
"display:inline-block;text-align:inherit;text-decoration:inherit;white-space:normal;"
><font
style=
"font-size: 85px"
color=
"#ff0000"
>
NEW
</font></div></div></foreignObject><text
x=
"113"
y=
"197"
fill=
"#000000"
text-anchor=
"middle"
font-size=
"180px"
font-family=
"Verdana"
font-weight=
"bold"
>
[Not supported by viewer]
</text></switch></g></g></svg>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment