02_browsing:04_queries:04_combined_queries
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | 02_browsing:04_queries:04_combined_queries [2022/06/27 09:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 2.4.4 Combined queries ====== | ||
+ | As shown above, you can query for individual tokens. But what if you need more detail, maybe from different [[02_browsing: | ||
+ | - The Italian token //io// used by only male informants | ||
+ | - Different spelling forms of the German token //was// used as a relative pronoun | ||
+ | - The French token //est-ce// followed by //que// | ||
+ | |||
+ | Before looking at how to build those queries, let us describe their structure: | ||
+ | - The first example describes a specific value for a token that is embedded in a message that fulfills specific criteria. We thus have two conditions on different layers (token and message). | ||
+ | - The second example describes a series of spelling variants as they are found on the token level. The same token has to have a specific value as a normalisation and a specific part of speech. We thus look only at tokens but with two different attributes (annotations for lemma and PoS). | ||
+ | - In the third example we look only at the layer of tokens, but we look at two different tokens that are in a specific relationship to one another, i.e. one is following the other directly. | ||
+ | |||
+ | |||
+ | The queries for these examples are the following: | ||
+ | - To find //io// written by males, we query for: '' | ||
+ | - In the second example we are looking for different spelling variants for the standard spelling //was//. There are two attributes that can be used to this aim. Manually processed messages have the standard spelling in the layer //gloss//, automatically processed messages use the [[01_corpus: | ||
+ | & # | ||
+ | - In the third example we look for two tokens, one directly following the other. Here, we could use one of the normalisations, | ||
+ | |||
+ | That much for the examples. But how can you remember all of these options? You do not have to, since ANNIS offers you lots of [[02_browsing: |