Commit 4bf613e6 authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

new snippets from MWE

parent 2ce3719e
% Search for a given morphological feature
pattern { N [Gender=Fem] }
\ No newline at end of file
......@@ -2,7 +2,7 @@
% The node MWE indentifies the MWE and the node V the verb in it
pattern {
MWE [label="LVC.full"];
MWE -[MWE]-> V;
MWE [label="LVC.full"]; % each MWE is encoded as a new node with a "label" feature
MWE -[MWE]-> V; % the MWE node is linked to each token it contains with a special relation "MWE"
V[upos=VERB]
}
% MWE with 5 words
pattern {
MWE [label];
MWE -[MWE]-> N1; MWE -[MWE]-> N2; MWE -[MWE]-> N3; MWE -[MWE]-> N4; MWE -[MWE]-> N5;
N1 << N2; N2 << N3; N3 << N4; N4 << N5;
}
without { MWE -[MWE]-> X }
% Search for a MWE with a given 2 given phonological forms
pattern {
MWE [label]; % Search for a MWE node…
MWE -[MWE]-> N1; N1 [form="Word_1"]; % …which contains a token with phonological form "Word_1"…
MWE -[MWE]-> N2; N2 [form="Word_2"]; % …and a token with phonological form "Word_2"
}
% Note that this will also return MWE with other tokens than the two givens.
% See next examples for the usage of "without" clauses to avoid this.
\ No newline at end of file
% Search for a MWE with a given 2 given lemmas
pattern {
MWE [label]; % Search for a MWE node…
MWE -[MWE]-> N1; N1 [lemma="Lemma_1"]; % …which contains a token with "Lemma_1"…
MWE -[MWE]-> N2; N2 [lemma="Lemma_2"]; % …and a token with "Lemma_2"
}
% Note that this will also return MWE with other tokens than the two givens.
% See next examples for the usage of "without" clauses to avoid this.
\ No newline at end of file
% Search for a MWE with some morphological restrictions
pattern {
MWE [label]; % Search for a MWE node…
MWE -[MWE]-> N1; N1 [upos=VERB]; % …which contains a verbal token …
MWE -[MWE]-> N2; N2 [upos=NOUN, Number=Plur]; % …and a plural noun token."
}
% Search for a MWE with a given verb lemma
% The node MWE indentifies the MWE and the node V the verb in it
pattern {
MWE [label]; % Search for a MWE node…
MWE -[MWE]-> V; % …which contains a token V…
V[upos=VERB, lemma="Lemma_to_search"] % …with a given lemma
}
......@@ -17,6 +17,7 @@
<li><a href="#" snippet-file="basic/search_form.pat" class="inter">Search for a form</a></li>
<li><a href="#" snippet-file="basic/search_lemma.pat" class="inter">Search for a lemma</a></li>
<li><a href="#" snippet-file="basic/search_upos.pat" class="inter">Search for a POS</a></li>
<li><a href="#" snippet-file="basic/search_morph.pat" class="inter">Search for a morphological feature</a></li>
<li><a href="#" snippet-file="basic/search_rel.pat" class="inter">Search for a dependency relation</a></li>
<li><a href="#" snippet-file="basic/mixed.pat" class="inter">Search for both relations and tags</a></li>
<li><a href="#" snippet-file="basic/negation.pat" class="inter">Filter with NAP (Negative Application Patterns)</a></li>
......@@ -26,12 +27,15 @@
<div class="tab-pane active" id="step2">
<ul>
<li><a href="#" snippet-file="mwe/lvc_full.pat" class="inter">Search for MWE with label "LVC.full"</a></li>
<li><a href="#" clustering="MWE.label" snippet-file="mwe/all_clustered.pat" class="inter">Search for MWE, cluster by label</a></li>
<li><a href="#" snippet-file="mwe/mwe2.pat" class="inter">MWE with 2 words</a></li>
<li><a href="#" snippet-file="mwe/mwe3.pat" class="inter">MWE with 3 words</a></li>
<li><a href="#" snippet-file="mwe/mwe4.pat" class="inter">MWE with 4 words</a></li>
<li><a href="#" snippet-file="mwe/mwe5.pat" class="inter">MWE with 5 words</a></li>
<li><a href="#" snippet-file="mwe/mwe_verb.pat" class="inter">Search for MWE with a given verb</a></li>
<li><a href="#" snippet-file="mwe/mwe_2_forms.pat" class="inter">MWE with 2 given phonological forms</a></li>
<li><a href="#" snippet-file="mwe/mwe_2_lemmas.pat" class="inter">MWE with 2 given lemmas</a></li>
<li><a href="#" snippet-file="mwe/mwe_morph.pat" class="inter">MWE with some morphlogical constraint</a></li>
<li><a href="#" snippet-file="mwe/mwe2.pat" class="inter">MWE with exactly 2 words</a></li>
<li><a href="#" snippet-file="mwe/mwe3.pat" class="inter">MWE with exactly 3 words</a></li>
<li><a href="#" snippet-file="mwe/mwe4.pat" class="inter">MWE with exactly 4 words</a></li>
<li><a href="#" snippet-file="mwe/node_in_2_mwe.pat" class="inter">Search a node which is in two different MWE</a></li>
<li><a href="#" clustering="MWE.label" snippet-file="mwe/all_clustered.pat" class="inter">Search for MWE, cluster by label</a></li>
</ul>
</div>
......
Supports Markdown
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