blob: 2aa2f2e80369cb7f5bb6498a59a6a470cbf60301 [file] [log] [blame]
Nils Diewaldd7cb0eb2014-02-12 23:06:10 +00001bsp1: [base=foo]|([base=foo][base=bar])* meta author=Goethe&year=1815
2bsp1b: [base=foo]|([base=foo][base=bar]) meta author=Goethe&year=1815
3bsp2: ([base=foo]|[base=bar])[base=foobar]
4bsp3: shrink({[base=Mann]})
5bsp4: shrink({[base=foo]}[orth=bar])
6bsp5: shrink(1:[base=Der]{1:[base=Mann]})
7bsp6: [base=Katze]
8bsp7: [base!=Katze]
9bsp8: [!base=Katze]
10bsp9: [base=Katze&orth=Katzen]
11bsp10: [base=Katze][orth=und][orth=Hunde]
12bsp11: [!(base=Katze&orth=Katzen)]
13bsp12: contains(<np>,[base=Mann])
14bsp13: startswith(<np>,[!pos=Det])
15bsp13b: startswith(<np>,[pos=Det])
16bsp14: 'vers{2,3}uch'
17bsp15: [orth='vers.*ch']
18bsp16: [(base=bar|base=foo)&orth=foobar]
19bsp17: within(<np>,[base=Mann])
20
21// Based on KorAP-querySerialization/examples/
22cosmas3: "das /+w1:3 Buch" # word-distance constraint
23cosmas4: "das /+w1:3,s1 Buch" # combined word-distance and sent-distance constraint
24cosmas10: "Institut für $deutsche Sprache" # finds both
25cosmas16: "$wegen #IN(L) <s>" # finds 'wegen' at beginning of sentence, also when capitalised
26cosmas17: "#BED($wegen , +sa)" # equivalent to above
27cosmas20: "MORPH(V) #IN(R) #ELEM(S)" # e.g. subordinate clauses