**[ [[cqp:introduction|Collection: Introduction to CQP]] ]** ===== Working with Concordances ===== For the following exercises, use functions beyond querying in CQP, such as sorting, sampling, randomizing and reducing. In addition, some of these exercises with require the use of positional attributes, like ''class'' or ''pos'', and structural attributes. Like before, you will also have to be familiar with generating frequencies lists, exporting concordances into a specific file formats. If you need help on how to work with concordances, have a look at [[cqp:concordances|this Wiki-page]]. ==== Exercise 1: Grouping by structural attributes ==== Query the BNC-BABY for the lemma //furthermore//. - Group the matches in the concordance by the structural attribute ''text_domain''. What is the most frequent text domain? - Group the matches in the concordance by the structural attribute ''text_publication_date''. What is the most frequent time period? ==== Exercise 2: An investigation of synonymy ==== Investigate the verbs //gather// and //collect// in the BNC. Explore the occurrence of the verbs in terms of their complementation patterns. - Set the context to 1 sentence. - Display the structural attribute ''text_id'' in your concordance. - Search for one verb (case-insensitive) at a time using a complex query, where you search for the lemma, and specifying the word form with either a pos- or class-tag. - Randomize the data, then reduce it to 50 concordance lines. - Export your concordance as txt-file, using the ''tidycwb.pl''. - Repeat these steps for the other verb. ==== Exercise 3: A labor of love ==== - Set the context to 60 characters. - Display the structural attributes ''text_id'' and ''text_n_s'' in your concordance. - Search for the lemma //love// as a verb in the BNC-BABY. - Save the concordance in a variable, randomize it (with the variable) and extract a sample of 50 concordances. - Generate a frequency list of all words directly following your match in the concordance (case-insensitive) and export that frequency list into a CSV-file, using the ''tidycwb.pl''. ==== Solutions ==== Find the solutions for the exercises here: [[cqp:practice-working-with-concordances-solutions|Working with Concordances – Solutions]]