Commit 478e171a authored by bguillaum's avatar bguillaum
Browse files

add generic n-grams snippets

git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/semagramme/grew_web@9170 7838e531-6607-4d57-9587-6c381814729c
parent 2a88c95f
% Search for the bigram of categories: DET, NOUN
match { N1 [cat=DET]; N2 [cat=NOUN]; N1 < N2 }
% Search for the bigram of lemmas
match { N1 [lemma="lemma1"]; N2 [lemma="lemma2"]; N1 < N2 }
% Search for the bigram of words
match { N1 [phon="word1"]; N2 [phon="word2"]; N1 < N2 }
% Search for the bigram of categories: DET, ADJ, NOUN
match { N1 [cat=DET]; N2 [cat=ADJ]; N3 [cat=NOUN]; N1 < N2; N2 < N3 }
% Search for the trigram of lemmas
match { N1 [lemma="lemma1"]; N2 [lemma="lemma2"]; N3 [lemma="lemma3"]; N1 < N2; N2 < N3 }
% Search for the trigram of words
match { N1 [phon="word1"]; N2 [phon="word2"]; N3 [phon="word3"]; N1 < N2; N2 < N3 }
% Search for the bigram of categories: DET, ADJ, ADJ, NOUN
match { N1 [cat=DET]; N2 [cat=ADJ]; N3 [cat=ADJ]; N4 [cat=NOUN]; N1 < N2; N2 < N3; N3 < N4 }
% Search for the 4-gram of lemmas
match { N1 [lemma="lemma1"]; N2 [lemma="lemma2"]; N3 [lemma="lemma3"]; N4 [lemma="lemma4"]; N1 < N2; N2 < N3; N3 < N4 }
% Search for the 4-gram of words
match { N1 [phon="word1"]; N2 [phon="word2"]; N3 [phon="word3"]; N4 [phon="word4"]; N1 < N2; N2 < N3; N3 < N4 }
......@@ -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="#step2" data-toggle="tab">Examples</a></li>
<li> <a class="grew-label" href="#step3" data-toggle="tab">n-grams</a></li>
</ul>
</div>
......@@ -28,4 +29,19 @@
</ul>
</div>
<div class="tab-pane" id="step3">
<ul>
<li><a href="#" snippet-file="n-grams/2-gram-phon.pat" class="inter">Search for a bigrams of words</a></li>
<li><a href="#" snippet-file="n-grams/2-gram-lemma.pat" class="inter">Search for a bigrams of lemmas</a></li>
<li><a href="#" snippet-file="n-grams/2-gram-cat.pat" class="inter">Search for a bigrams of categories</a></li>
<li><a href="#" snippet-file="n-grams/3-gram-phon.pat" class="inter">Search for a trigrams of words</a></li>
<li><a href="#" snippet-file="n-grams/3-gram-lemma.pat" class="inter">Search for a trigrams of lemmas</a></li>
<li><a href="#" snippet-file="n-grams/3-gram-cat.pat" class="inter">Search for a trigrams of categories</a></li>
<li><a href="#" snippet-file="n-grams/4-gram-phon.pat" class="inter">Search for a 4-grams of words</a></li>
<li><a href="#" snippet-file="n-grams/4-gram-lemma.pat" class="inter">Search for a 4-grams of lemmas</a></li>
<li><a href="#" snippet-file="n-grams/4-gram-cat.pat" class="inter">Search for a 4-grams of categories</a></li>
</ul>
</div>
</div>
\ 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