Skip to content

Commit

Permalink
Add CQP tutorial part 1 (originally by Elena Irimia)
Browse files Browse the repository at this point in the history
Change-Id: I428d8bc8c91afd495242e786225391b863c0566c
  • Loading branch information
Akron authored and hebasta committed Jun 3, 2024
1 parent 8681709 commit 51da002
Show file tree
Hide file tree
Showing 3 changed files with 431 additions and 0 deletions.
46 changes: 46 additions & 0 deletions kalamar.queries.dict
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,52 @@
focusempty => 'focus(der {[]} Mann)',
focusextension => 'focus(der alte und {[]})',
focusrelevance => 'focus(contains(er []{,10} sagte, {Baum}))'
},
cqp => {
simplesquote => "'Baum'",
simpledquote => '"Baum"',
re => '"(Tannen)?baum"',
simpleseq1 => '"der" "Baum"',
simpleseq2 => "'der' 'Baum'",
simplescflag => '"laufen"%c',
simplesidia1 => '"Fraulein"%d',
simplesegidia2 => '"Fraulein"%cd',
regexqu1 => '"It\'s"',
regexequ1 => '\'It\'\'s\'',
compsl1 => '[orth="Baum"]',
compsl2 => '"Baum"',
compsse => '[orth="l(au|ie)fen"%c]',
compsbase => '[base="Baum"]',
compspos => '[pos="ADJA"]',
compstoken1 => '[marmot/m="number":"pl"]',
compstoken2 => '[marmot/m=\'tense\':\'pres\']',
compstokenverb => '[orth=\'https://de.wikipedia.org\'%l]',
neg1 => '[pos!="ADJA"] "Haare"',
neg2 => '[!pos="ADJA"] "Haare"',
empseq => '[]',
spansegm => '<corenlp/c=NP>',
parseg => '[orth="laufe"%c & base="Lauf"]',
parsegamp1 => '[orth="laufe"%c & base!="Lauf"]',
parsegamp2 => '[base="laufen" | base="gehen"]',
parsegalt => '[base="laufen" | base="gehen"]',
parsegcb => '[(base="laufen" | base="gehen") & tt/pos="VVFIN"]',
parsegrb => '[(base="laufen" | base="gehen") & (tt/pos="VVFIN")]',
parsegneg1 => '[(!(base="laufen" | base="gehen")) & (tt/pos="VVFIN")]',
parsegneg2 => '[!(base="laufen") & !(base="gehen") & (tt/pos="VVFIN")]',
parsegneg3 => '[!base="laufen" & !base="gehen" & tt/pos="VVFIN"]',
parsegneg4 => '[base!="laufen" & base!="gehen" & tt/pos="VVFIN"]',
syntop1 => '"der" "alte" "Mann"',
syntop2 => '[orth="der"][orth="alte"][orth="Mann"]',
syntop3 => '[orth="der"][][orth="Mann"]',
posfirst1 => '<base/s=s>[orth="Der"]',
posfirst2 => '<s>[orth="Der"]',
posaend1 => '</base/s=s>[orth="Der"]',
posaend2 => '</s>[orth="Der"]',
posend1 => '[orth="Mann"]</base/s=s>',
posend2 => '[orth="Mann"]</s>',
posbbeg1 => '[orth="Mann"]<base/s=s>',
posbbeg2 => '[orth="Mann"]<s>',
posbbeg3 => '"für" []{20,25} "uns"</s>'
}
}
}
Expand Down
27 changes: 27 additions & 0 deletions templates/doc/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,33 @@
}
]
},
{
"title": "CQP",
"id": "cqp",
"class": "folded",
"items": [
{
"title": "Simple Segments",
"id": "#segments"
},
{
"title": "Complex Segments",
"id": "#complex"
},
{
"title": "Span Segments",
"id": "#spans"
},
{
"title": "Paradigmatic Operators",
"id": "#paradigmatic-operators"
},
{
"title": "Syntagmatic Operators",
"id": "#syntagmatic-operators"
}
]
},
{
"title": "Annis QL",
"id": "annis"
Expand Down
Loading

0 comments on commit 51da002

Please sign in to comment.