1.2. Single Layer Search Tab

The Single Layer Search tab offers a more elaborate search than the Substring Search tab. The first thing that is different from the Substring Search tab is that the Single Layer Search tab has a query history. Clicking on the History roll-out menu, you can have a look at the previous queries made during that ongoing session. See the figure below.

Query History in Single Layer Search

Figure 1.7. Query History in Single Layer Search

Furthermore, this search tab offers different modes to restrict the search. The first mode allows you to choose the way in which the results are shown. There are four options:

The second mode offers the straightforward distinction between case sensitive and case insensitive search.

The third mode allows you to choose whether the annotation found should contain the search string (substring match), whether the annotation should exactly match the search string (exact match) or whether some regular expression should be used in the match (regular expression) [for further information about regular expressions see section 1.4 below]. This mode also contains another option, which is called variable match, but since it has little use here in the Single Layer Search, it will be thoroughly explained later on, when it comes to the Multiple Layer Search.

Finally, you can restrict the search to one tier in particular, choosing among tier types, tier names, participants or annotators (if present), all of which can appear in a decreasing order, from the most to the least used, if you check the option tier choice sort.

Wild cards and negation

When you choose an N-gram to be the form of the result, you can use two more options: a wild card and/or a negation. The wild card takes the form of a # sign. For instance, the search string the # man with the mode N-gram over annotations would return three annotations per hit: the first annotation contains the (or exactly matches it, if the mode exact match is chosen), the second annotation may contain anything due to the use of the wild card, and the third annotation contains, or exactly matches, man. If the mode N-gram within annotation is chosen, each hit contains one annotation. This one, in turn, contains the search string with all the possible combinations due to the # sign.

If you want to find N-grams where a hit matches anything but one string in particular, you can use the negation operator NOT(...), entering in brackets the search string not to be matched. For instance, the search string the NOT(strange) man would return 3-grams in the same way as described above, but the hits where the second annotation matches, or contains, strange are left out.