Query intro

The most basic query (no CQP) is just a word or a sequence of words, e.g.:

  • in will find all tokens whose normalized form is in
  • in the will find in followed by the (normalized form)

For more complex queries on different annotation levels, you can use CQP queries. Simple CQP queries for individual token annotations can look like this:

  • [word="nice"] will find all instances of the transcribed form nice
  • [norm="have"] will find all instances whose normalized form is have
  • [lemma="be"] will find all instances whose lemma is be

More complex CQP queries can combine one or several tokens, several properties of a single token, and/or use regular expressions, e.g.:

  • [lemma="klein"][pos="NN"] will find forms of the lemma klein followed by a token with POS tag NN (a noun)
  • [lemma="klein" & pos="ADJA"] will find forms of the lemma klein POS-tagged as ADJA (attributive adjective)
  • [norm="[Uu]n.+"] will find all instances whose normalized form matches the regular expression, i.e. words starting in Un or un

Custom annotation layers can be queried using CQP expressions for spans, e.g.:

  • <en=".*good.*"/> will find all spans whose English translation (en) contains with
  • <sup="laut.*"/> will find all spans annotated with something containing laut on the sup(rasegental) tier

You can add metadata restriction to a query, e.g.:

  • [norm="in"] within <Communication_type="television debate"/> will restrict the query to speech events whose metadata value for Communication type is television debate
  • [norm="in"] within <Role="Guest"/> will restrict the query to speakers whose metadata value for Role is Guest