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
464382c1
Commit
464382c1
authored
Sep 24, 2019
by
Bruno Guillaume
Browse files
add global snippets
parent
bb10adf1
Changes
8
Hide whitespace changes
Inline
Side-by-side
corpora_for_website/SUD-24/right_pane.html
View file @
464382c1
...
...
@@ -5,6 +5,7 @@
<li
class=
"active"
><a
class=
"grew-label"
href=
"#step1"
data-toggle=
"tab"
>
Snippets
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step2"
data-toggle=
"tab"
>
Complex edges
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step3"
data-toggle=
"tab"
>
n-grams
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step4"
data-toggle=
"tab"
>
Global
</a></li>
</ul>
</div>
...
...
@@ -47,5 +48,14 @@
</ul>
</div>
<div
class=
"tab-pane"
id=
"step4"
>
<ul>
<li><a
href=
"#"
snippet-file=
"../snippets_global/non_projective.pat"
class=
"inter"
>
Search for non projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/projective.pat"
class=
"inter"
>
Search for projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/other.pat"
class=
"inter"
>
Other global constraints
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/combined.pat"
class=
"inter"
>
Global constraints can be combined with other clauses
</a></li>
</ul>
</div>
</div>
\ No newline at end of file
corpora_for_website/UD-24/right_pane.html
View file @
464382c1
...
...
@@ -5,6 +5,7 @@
<li
class=
"active"
><a
class=
"grew-label"
href=
"#step1"
data-toggle=
"tab"
>
Snippets
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step2"
data-toggle=
"tab"
>
Examples
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step3"
data-toggle=
"tab"
>
n-grams
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step4"
data-toggle=
"tab"
>
Global
</a></li>
</ul>
</div>
...
...
@@ -45,5 +46,13 @@
</ul>
</div>
<div
class=
"tab-pane"
id=
"step4"
>
<ul>
<li><a
href=
"#"
snippet-file=
"../snippets_global/non_projective.pat"
class=
"inter"
>
Search for non projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/projective.pat"
class=
"inter"
>
Search for projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/other.pat"
class=
"inter"
>
Other global constraints
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/combined.pat"
class=
"inter"
>
Global constraints can be combined with other clauses
</a></li>
</ul>
</div>
</div>
\ No newline at end of file
corpora_for_website/UD-misc/right_pane.html
View file @
464382c1
...
...
@@ -5,6 +5,7 @@
<li
class=
"active"
><a
class=
"grew-label"
href=
"#step1"
data-toggle=
"tab"
>
Snippets
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step2"
data-toggle=
"tab"
>
Examples
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step3"
data-toggle=
"tab"
>
n-grams
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step4"
data-toggle=
"tab"
>
Global
</a></li>
</ul>
</div>
...
...
@@ -45,5 +46,13 @@
</ul>
</div>
<div
class=
"tab-pane"
id=
"step4"
>
<ul>
<li><a
href=
"#"
snippet-file=
"../snippets_global/non_projective.pat"
class=
"inter"
>
Search for non projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/projective.pat"
class=
"inter"
>
Search for projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/other.pat"
class=
"inter"
>
Other global constraints
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/combined.pat"
class=
"inter"
>
Global constraints can be combined with other clauses
</a></li>
</ul>
</div>
</div>
\ No newline at end of file
corpora_for_website/orfeo/right_pane.html
View file @
464382c1
...
...
@@ -4,6 +4,7 @@
<li
class=
"active"
><a
class=
"grew-label"
href=
"#step1"
data-toggle=
"tab"
>
Snippets
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step3"
data-toggle=
"tab"
>
n-grams
</a></li>
<li>
<a
class=
"grew-label"
href=
"#step4"
data-toggle=
"tab"
>
Global
</a></li>
</ul>
</div>
...
...
@@ -35,5 +36,15 @@
</ul>
</div>
<div
class=
"tab-pane"
id=
"step4"
>
<ul>
<li><a
href=
"#"
snippet-file=
"../snippets_global/non_projective.pat"
class=
"inter"
>
Search for non projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/projective.pat"
class=
"inter"
>
Search for projective structures
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/other.pat"
class=
"inter"
>
Other global constraints
</a></li>
<li><a
href=
"#"
snippet-file=
"../snippets_global/combined.pat"
class=
"inter"
>
Global constraints can be combined with other clauses
</a></li>
</ul>
</div>
</div>
\ No newline at end of file
corpora_for_website/snippets_global/combined.pat
0 → 100644
View file @
464382c1
% global can be used in conjunction with other clauses
% In the example below, we are looking for a non projective sentence with a specific word (in French for the example)
% Warning: the pattern may returns accidental occurences with both non-projectivity and the serached word in two different parts of the sentences.
global { is_not_projective }
pattern { N[lemma="dont"] }
corpora_for_website/snippets_global/non_projective.pat
0 → 100644
View file @
464382c1
% global filtering which keeps only non projective structures
global { is_not_projective }
corpora_for_website/snippets_global/other.pat
0 → 100644
View file @
464382c1
% other global constraints are available:
% * is_tree / is_not_tree
% * is_forest / is_not_forest
% * is_cyclic / is_not_cyclic
% See http://grew.fr/pattern/#global-pattern for more details
global { is_cyclic }
corpora_for_website/snippets_global/projective.pat
0 → 100644
View file @
464382c1
% global filtering which keeps only projective structures
global { is_projective }
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