



Next: Contents Contents
The CQP Query Language Tutorial
(CWB version 2.2.b90)
Stefan Evert
stefan.evert@uos.de
Date: 10 July 2005
- Contents
- 1 Introduction
- 2 Basic CQP features
- 2.1 Getting started
- 2.2 Searching for words
- 2.3 Display options
- 2.4 Useful options
- 2.5 Accessing token-level annotations
- 2.6 Combinations of attribute constraints: Boolean expressions
- 2.7 Sequences of words: token-level regular expressions
- 2.8 Example: finding ``nearby'' words
- 2.9 Sorting and counting
- 3 Working with query results
- 3.1 Named query results
- 3.2 Saving data to disk
- 3.3 Anchor points
- 3.4 Frequency distributions
- 3.5 Set operations with named query results
- 3.6 The set target command
- 4 Labels and structural attributes
- 4.1 Using labels
- 4.2 Structural attributes
- 4.3 Structural attributes and XML
- 4.4 XML document structure
- 5 Advanced CQP features
- 5.1 The matching strategy
- 5.2 Word lists
- 5.3 Subqueries
- 5.4 The CQP macro language
- 5.5 CQP macro examples
- 5.6 Feature set attributes (GERMAN-LAW)
- 6 Undocumented CQP
- 6.1 Zero-width assertions
- 6.2 Labels and scope
- 6.3 Running CQP as a backend
- 6.4 Exchanging corpus positions with external programs
- 6.5 Generating frequency tables
- 6.6 Easter eggs
- A. Appendix
- A..1 Summary of regular expression syntax
- A..2 Part-of-speech tags and useful regular expressions
- A..3 Annotations of the tutorial corpora
- A..4 Reserved words in the CQP language
- About this document ...
Stefan Evert 2005-07-12