AplikaceAplikace
Nastavení

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:manualy:kontext:novy_dotaz [2016/12/11 11:02] veronikapojarovaen:manualy:kontext:novy_dotaz [2020/12/22 12:21] – [Type of Query] michalskrabal
Line 5: Line 5:
 With the selection **Query → New query**, it is always possible to begin a new corpus search. By clicking on this option we abandon our previous query and any results produced with it, and we begin with a new search. The following text primarily deals with creating queries in single language corpora; the specifics of searching the parallel corpora [[en:cnk:intercorp|InterCorp]] are described in detail in the [[en:kurz:hledani_v_paralelnim_korpusu#paralelni_korpusy_v_rozhrani_kontext|bonus tutorial]] of the basic course on working with the CNC (Czech National Corpus). With the selection **Query → New query**, it is always possible to begin a new corpus search. By clicking on this option we abandon our previous query and any results produced with it, and we begin with a new search. The following text primarily deals with creating queries in single language corpora; the specifics of searching the parallel corpora [[en:cnk:intercorp|InterCorp]] are described in detail in the [[en:kurz:hledani_v_paralelnim_korpusu#paralelni_korpusy_v_rozhrani_kontext|bonus tutorial]] of the basic course on working with the CNC (Czech National Corpus).
  
-After clicking on the item New Query, a basic search menu appears for the user. Within this form it is possible to select a corpus in which the search will be conductedand the [[en:eebo:first_query#query_types|type of query]] which will be used. The query itself is inserted into the input line. Another part of the form is an interactive **international keyboard** for writing special characters (especially when searching in non-Czech texts and when inserting special characters of the Corpus Query Language, [[en:pojmy:cql|CQL]]). Previously used queries can be found under the link //Previous Queries//, located above the query line.+After clicking on the item New Query, a basic search menu appears for the user. Within this form it is possible to select a corpus in which the search will be conducted and enter a query in the input line below it. You can use the switch to activate the **Advanced query** function which works with the [[en:pojmy:cql|Corpus Query Language]]. The form also includes an interactive **international keyboard** for entering special characters (especially when searching in non-Czech texts and when inserting special characters of the CQL). Previously asked questions can be found either directly in the menu or using the **Recent queries** link above the query line. The last item in the toolbar above the line is **Query interpretation**where the user finds out how his/her query will be evaluated (i.e. translated into CQL) and whether this interpretation is in accordance with his/her intention. This function is not available when switching to advanced mode, but instead it is possible to directly insert interactively generated morphological tags (for corpora that are tagged in this way) or within conditions (see items **Insert tag** and **Insert within**). 
 + 
 +Every query can be specified further for the context in which the term is found and documents in which we want to search.  
 + 
 +Once the query has been typed, we may begin the search either by clicking on the **Search** button, or by pressing the Enter key, if the cursor is in the input line. 
 + 
 +===== Suggesting other variants of the input word ====== 
 + 
 +In the [[en:cnk:syn2020|SYN2020]] corpus, there is also a special add-on available for suggesting other possible variants of the input word. This is indicated by a blue background of the word and activated by Ctrl/Command + clicking on it. After selecting the individual variant, its (sub)lemma intepretation is changed in the queryThis is indicated by a red background of the **Query interpretation** option above the input line. 
 + 
 +E.g., when typing the word //filozof//, this add-on warns us that this lemma includes two sublemmata in SYN2020, namely spelling variants //filozof// and //filosof// (the same applies to derived words). It is then up to the user which variants to include in his/her query. Further examples of functionality of this add-on can be found [[cnk:syn2020:lemmatizace|here]]. 
 + 
 +The add-on is available for both simple and advanced query mode.
  
 ===== Corpus selection ===== ===== Corpus selection =====
Line 20: Line 32:
 **Example**: The user searches in the tab //All corpora// for a current version of the English section of the parallel corpus [[en:cnk:intercorp|InterCorp]]. He first selects the labels "InterCorp" a "current version ", the first 25 corpora which conform to the specified conditions appear on the list, although InterCorp contains many more languages. The corpora not displayed can be accessed with the help of further filtering, for example by typing part of the corpus name or language (please note that the names of the individual InterCorp versions are in English). After finding the desired corpus and clicking on it, the corpus becomes the current corpus for searching, and it is at the same time possible to mark it as favourite with a star. The corpus is added to the list of favourite corpora and can be accessed quickly and easily with a single click. **Example**: The user searches in the tab //All corpora// for a current version of the English section of the parallel corpus [[en:cnk:intercorp|InterCorp]]. He first selects the labels "InterCorp" a "current version ", the first 25 corpora which conform to the specified conditions appear on the list, although InterCorp contains many more languages. The corpora not displayed can be accessed with the help of further filtering, for example by typing part of the corpus name or language (please note that the names of the individual InterCorp versions are in English). After finding the desired corpus and clicking on it, the corpus becomes the current corpus for searching, and it is at the same time possible to mark it as favourite with a star. The corpus is added to the list of favourite corpora and can be accessed quickly and easily with a single click.
  
-===== Type of Query ===== +===== Specify parameters =====
- +
-**Query types** and their uses +
- +
-^ Query type ^ What it’s for ^ How it works ^ What it does ^ Examples ^ +
-^ Basic Query | for familiarization with the corpus| Searches for the expression as a node form regardless of case; in the case of a dictionary form (lemma), all of its possible forms are also searched for. | without [[en:pojmy:regularni_vyrazy|regular expressions]] (RE), [[wp>Case_sensitivity|case-insensitive]] | ''old house'' > //old house, older houses, oldest house…//\\ ''this time'' > //this time// | +
-^ Lemma | for the analysis of an entire paradigm/lexeme | Finds all forms associated with the given [[en:pojmy:lemma|lemma]]. | RE (it is possible to use regular expressions), case-sensitive, possibility of specifying word class | ''see'' > //see, saw, seen, seeing…//\\ ''new'' > //new, newer, newest…// | +
-^ Phrase | for a multiword combination in the given form | Finds the exact wording of a phrase. | RE, case-sensitive | ''black dog'' > //black dog//\\ ''new car'' > //new car//\\ ''newer car'' > //newer car// | +
-^ Node form | for the analysis of one specific form | Finds the exact form. | RE, case-in/sensitive (possible to select Match case) | ''cat'' > //cat//\\ ''cats'' > //cats//\\ ''cat.*'' > //cat, cats, Cats, CATS…// | +
-^ Character | searching for a string of characters anywhere within a word | Finds consecutive characters within the scope of one word. | RE, case-sensitive | ''pre'' > //prepare, supreme, appreciate…//\\ ''str'' > //industrial, strong, orchestra…//+
-^ CQL | searching for anything that can be found with the corpus manager | CQL is [[en:pojmy:dotazovaci_jazyk|Corpus Query Language]] (into which the KonText interface internally converts all of the previous types of queries). | RE, case-sensitive, [[en:pojmy:dotazovaci_jazyk|CQL]] syntax | ''[lemma=<nowiki>"</nowiki>see<nowiki>"</nowiki>]'' > //see, saw, seen, seeing…//\\ ''[word=<nowiki>"</nowiki>black<nowiki>"</nowiki>]'' > //black//\\  ''[lemma=<nowiki>"</nowiki>read<nowiki>"</nowiki>][tag=<nowiki>"</nowiki>N.*<nowiki>"</nowiki>]'' > //reading books, read something…//+
- +
- +
- +
-**Corpus selection** and **query type** can influence what the form looks like:  +
-  - Corpora which are not lemmatized, i.e. do not offer //lemma// as a [[en:eebo:first_query#query_types|query type]]. +
-  - Some query types (only those where it makes sense) allow for the user to specify whether the query should be assessed with respect to capitalization ([[wp>Case_sensitivity|case-sensitive]]), or without considering upper/lower case ([[wp>Case_sensitivity|case-insensitive]]). +
-  - In the case of the [[en:eebo:first_query#query_types|query types]] [[en:pojmy:lemma|lemma]] and [[en:pojmy:word]] it is also possible to specify word class (position attribute [[en:pojmy:pos|pos]]). +
-  - The [[en:pojmy:dotazovaci_jazyk|CQL]] query type also allows for the insertion of interactively generated [[en:pojmy:tag|morphological tags]] (with corpora which are tagged in this way) or conditions specifying texts in which the search is to be carried out (the condition [[en:pojmy:within]]). +
-  - A very specific way of inputting queries for [[en:kurz:hledani_v_paralelnim_korpusu|searches in parallel corpora]]. +
- +
-Once the query has been typed, we may begin the search either by clicking on the **Search** button, or by pressing the Enter key, if the cursor is in the input line. +
- +
-Every query can be specified further for the context in which the term is found and documents in which we want to search.+
  
 +When entering a query, you can specify some parameters too: in both modes the default positional attribute, nesides, in simple mode it is also available to match case and allow regular expressions.
 ===== Specify context ===== ===== Specify context =====
  
Line 72: Line 62:
 ====== Recent queries ====== ====== Recent queries ======
  
-The item displays an overview of the most recent queries used (a simplified list of previous queries is also accessible directly from the query form, via a link above the input line). By clicking on the link //use query//, we paste a previously specified constraints into the query form and we may either use it without any changes, or we may modify it further (e.g. change the corpus in which the query will be used, the query type, or we may specify the context).+The item displays an overview of the most recent queries used (a simplified list of previous queries is also accessible directly from the query form, via a link above the input line). These queries can be filtered according to the query type or the currently used corpus, and only archived queries can be viewed as well. By clicking on the link //Edit and search//, we paste a previously specified constraints into the query form and we may either use it without any changes, or we may modify it further (e.g. change the corpus in which the query will be used, the query type, or we may specify the context). By clicking on the //Archive// option, we can name the query and permanently save it to the query history archive for later reuse.
  
 ====== Word list ====== ====== Word list ======
Line 94: Line 84:
  
 <WRAP center round box 48%> <WRAP center round box 48%>
-**[[en:manualy:kontext:index|Menu]]**: [[en:manualy:kontext:novy_dotaz|Query]] • [[en:manualy:kontext:subkorpus|Corpora]] • [[en:manualy:kontext:ulozit|Save]] • [[en:manualy:kontext:konkordance|Concordance]] • [[en:manualy:kontext:filtr|Filter]] • [[en:manualy:kontext:frekvencni_distribuce|Frequency]] • [[[[en:manualy:kontext:kolokace|Collocation]] • [[en:manualy:kontext:moznosti_zobrazeni|View]] • [[en:manualy:kontext:napoveda|Help]]+**[[en:manualy:kontext:index|Menu]]**: [[en:manualy:kontext:novy_dotaz|Query]] • [[en:manualy:kontext:korpusy|Corpora]] • [[en:manualy:kontext:ulozit|Save]] • [[en:manualy:kontext:konkordance|Concordance]] • [[en:manualy:kontext:filtr|Filter]] • [[en:manualy:kontext:frekvence|Frequency]] • [[[[en:manualy:kontext:kolokace|Collocation]] • [[en:manualy:kontext:zobrazeni|View]] • [[en:manualy:kontext:napoveda|Help]]
 </WRAP> </WRAP>