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