Commit 193e2334 authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

snippets for clustering

parent c009188a
......@@ -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">
......
% 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] }
% 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] }
% 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] }
% What are the possible values of the VerfForm feature for verbs and auxiliaries?
pattern { N[upos = VERB|AUX] }
......@@ -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">
......
% 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] }
% 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] }
% 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] }
% What are the possible values of the VerfForm feature for verbs and auxiliaries?
pattern { N[upos = VERB|AUX] }
......@@ -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>
......
......@@ -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">
......
% 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] }
% 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] }
% 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] }
% What are the possible values of the VerfForm feature for verbs and auxiliaries?
pattern { N[upos = VERB|AUX] }
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
<?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="&lt;mxfile modified=&quot;2019-09-29T08:49:06.300Z&quot; host=&quot;www.draw.io&quot; agent=&quot;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&quot; etag=&quot;FQzgH8zhDnllVzxuO02L&quot; version=&quot;12.0.0&quot; type=&quot;device&quot; pages=&quot;1&quot;&gt;&lt;diagram id=&quot;u853bdn5UjIrF4Jsk5Iq&quot; name=&quot;Page-1&quot;&gt;vVVNb6MwEP01HCMBJpQ9JmloL61WirI5e7EBtwZTYxayv34HbPPRJFIrdZsL9puxx/Pe08RBu6J7kLjKnwSh3PFd0jno3vF9L/B8+PTIWSORt9ZAJhkxSRNwYH+pAV2DNozQepGohOCKVUswEWVJE7XAsJSiXaalgi+rVjijF8AhwfwSPTGicoN64Y8p8EhZlpvSkX+nAwW2yaaTOsdEtDMI7R20k0IovSq6HeU9eZYXfS6+ER0fJmmpPnLgKfzZtG+bl1N3LMgxOgbu79XKqPMH88Y0bB6rzpYBuAXIhs22zZmihwonfaQFvQHLVcFh58ES15VWIGUdhaLblHG+E1zI4SIUxy78ADc1qVS0u9mMN1IE3qKioEqeIcUeWAf6iLGVh5Det5NIfmSYz2f6jCA2xsjGuyfuYGHo+wSV6FupjGPo+GuovHtH5foKlcE1KoP/RWVwhcqQq54HAU3NOQ3fGmEDq3oYHxtIiNZVNwWH+WDJm0CUpoMjZ1CY9d/n/ckWhPfrmjpyISnwrpba1UqKV2rFKkVJ3+lnIMxZVsI2AZ0o4NteRQaTZ2MCBSOE3zKLFE1Jemvcu6Z7Mzu9yAIxLhjvRf1FJcEltnnm8d5wi8KKib7aCgbX1/gJuUs/he6Fn5B7xU9j4if8BNtpgg6x2f8Q2v8D&lt;/diagram&gt;&lt;/mxfile&gt;"><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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment