cqp:extending-queries-alternatives
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cqp:extending-queries-alternatives [2020/04/21 14:59] – external edit 127.0.0.1 | cqp:extending-queries-alternatives [2024/06/20 13:53] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **[ [[cqp: | ||
+ | ====== 3b. Extending simple queries: Combinations of attributes and values ====== | ||
+ | |||
+ | //This section introduces simple queries involving one token with more than one property, It presupposes that you have read [[cqp: | ||
+ | |||
+ | Recall that in Section 2, we searched for //love//, and that our queries always returned examples of the noun and the verb. However, when searching for a particular lemma or word form, we typically want to limit our query to a particular part of speech. We can do this by combining two attribute-value pairs in a single pair of square brackets using the ampersand symbol ''&'' | ||
+ | |||
+ | For example, to find //love// as a singular noun (one love, to cite Bob Marley' | ||
+ | |||
+ | [hw=" | ||
+ | |||
+ | Enter it at the prompt and hit '' | ||
+ | |||
+ | Or, we might be interested in whether the noun //love// can be used in the plural. Our query would look like this: | ||
+ | |||
+ | [hw=" | ||
+ | |||
+ | Again, run the query and look at the results. You will see, that the plural noun //loves// does indeed exist. | ||
+ | |||
+ | ===== Summary and outlook ===== | ||
+ | |||
+ | This section has shown you how to create concordances using combinations of attribute-value pairs. Building on this, you can look at the following sections in any order: | ||
+ | |||
+ | * [[cqp: | ||
+ | * [[cqp: | ||
+ | * [[cqp: | ||
+ | * [[cqp: | ||
+ | * [[cqp: | ||
+ | * [[cqp: | ||
+ | |||
+ | **[ Introduction to CQP: [[cqp: |