AplikaceAplikace
Nastavení

This is an old revision of the document!


Menu: Frequency

In the KonText interface menu the item Frequency includes the function for creating frequency distribution. With this function it is possible to get an overview of the types (e.g. of different words) in the search results, along with their frequency. If we wish to find all of the nouns in the genitive case and in the plural form, with this function we can determine which words occur in this particular case and number and how frequently. It is also possible to use frequency distribution to determine the frequency of both the previous and the following units, calculate lemmas in the concordance or determine the distribution of the wanted phenomenon across different text types and their groups (according to the genre, txtype etc.).

Frequency distribution includes both custom (general) settings and quick selection (both are available at the second level of menu).

The function New query → Word list which generally applies to the entire corpus (not only to the specific concordance) allows for similar functionality.

Quick selection of frequency distributions

Lemmas

Assesses the query (KWIC) and lists all of the different types of lemmas (attribute lemma), along with their frequency 1).

Node forms [A=a]

Assesses the query (KWIC) and lists all of the different forms (attribute word case insensitive), along with their frequency.

Doc IDs

Assesses the whole concordance and lists the text names (structural attributes name) in which the wanted phenomenon occurs, along with the frequency of this phenomenon in the individual texts.

Text types

Assesses the whole concordance and lists an overview of the structural attributes 2) which apply to the text type (structural attributes txtype_group, txtype, med, srclang), along with their frequency (the meaning of individual abbreviations is available at the list of abbreviations and codes).

Frequency list

The following example shows how to use frequency list when working with the SYN2020 corpus to search for a query of lemma dřevo ([lemma="dřevo"]): Frequency list of the words of lemma dřevo regardless of case and with a zero frequency limit (using a preset option Node forms [A=a]).

Table view

Frequency list of the words of lemma dřevo (including representations of confidency intervals)

Výchozím způsobem zobrazení je tabulka s uvedením absolutních a relativních frekvencí pro jednotlivé položky (včetně možnosti zobrazení konfidenčních intervalů).

Different kinds of information will appear by every word (attribute) displayed in the frequency list of lemma dřevo. The basic information is located in the frequency column and displays absolute frequency of a given item in the searched concordance (if the concordance was altered in some way before the frequency list was submitted - e.g. with filters - the frequency list will be altered accordingly). V seznamu se zobrazí všechny položky s alespoň jednotkovým výskytem. Chceme-li výpis zúžit, můžeme nastavit Minimální frekvenci na hodnotu, která vyhovuje konkrétní situaci.

Vedle sloupce s absolutní frekvencí se objevuje i položka i.p.m. Vyjadřuje relativní četnost zkoumaných jevů vzhledem k celkové velikosti korpusu. V našem případě se tvar dřevem objevuje v korpusu SYN2020 s absolutní četností 5 712, což představuje 46,89 výskytů na milion slov (i.p.m.).

Pro hodnoty absolutní i relativní frekvence lze pomocí další volby zobrazit i hodnoty konfidenčních intervalů, tj. rozsahy, v nichž by se dané frekvence (s pravděpodobností na určené konfidenční hladině) vyskytovaly v jiných, podobně sestavených korpusech srovnatelné velikosti. Konfidenční hladina je nastavena na 95 % a je možné ji uživatelsky změnit pomocí volby na 99 % nebo 90 %.

In the list to the left from the word, there are located links p/n which can be used for a quick display of positive or negative filter. By clicking on the p in the line displaying frequency for the word dřevem, we filter out this form from the current concordance,in the same way when n is activated, all of the occurrence of the given form will be eliminated from the current concordance.

After clicking on the heading of the column, the table will automatically be rearranged according to the selected column. This way it is possible to create a list that is arranged alphabetically (in addition to the usual list arranged according to the frequency).

Chart view

Grafické zobrazení umožňuje vizualizovat informace představené v předchozím oddílu (absolutní a relativní frekvence položek s jejich konfidenčními intervaly) do podoby dvou typů grafů: horizontálního sloupcového grafu a grafu typu “word cloud”.

Visualization type: bar


Ve výchozím nastavení se zobrazuje sloupcový graf s hodnotami relativních četností včetně konfidenčních intervalů na hladině 95 %.

Po rozkliknutí voleb nad grafem pomocí (+) je možné vlastnosti grafu upravit. Místo hodnot relativní četnosti lze zobrazit četnosti absolutní, dále lze omezit počet položek v grafu, seřadit položky podle abecedy namísto frekvenčního třídění a také exportovat graf jako obrázek.

Nakonec je možné graf přepnout do podoby grafu typu “word cloud”, který zobrazuje skupinu zkoumaných položek (v našem příkladů tvarů slov) ve velikostech poměrně odpovídající jejich četnostem. Pro tento typ grafu je v uživatelském nastavení relevantní pouze možnost exportu grafu a omezení počtu položek v grafu.

Visualization type: Word cloud


Custom settings of frequency distribution

The form which appears after clicking on the option Frequency distribution → Custom consists of two sections:

  1. form for multilevel frequency distribution (which can be used to analyze positional attributes) such as word, lemma, sublemma, tag, verbtag, etc.)
  2. form for frequency distribution according to the structure attributes (such as txtype, med or srclang)
  3. form for frequency distribution reflecting the two-attribute interrelationship (both positional and structure attributes)
Form for multilevel frequency distribution (positional attributes) FIXME

Frequency distribution according to the positional attributes

Multilevel frequency distribution enables us to calculate frequency distribution of any concordance position within the span of 6 positions to the left and 6 to the right from KWIC. At first it is necessary to select in the form which attribute we wish to calculate in frequency distribution (e.g. in new SYN corpora there are available positional attributes ) word, lemma, sublemma, tag, verbtag, lc, pos, case).

Afterwards, it is necessary to select whether frequency distribution should be calculated regardless of the letter case. Selection of the option case-insensitive causes that all of the items are interpreted as having lower case, regardless of what type of case they actually have in the corpus.

Form for frequency distribution according to structural attributes FIXME

In case of custom settings of frequency distribution, we do not need to restrict ourselves to KWIC only (unlike when working with quick selection). It can be calculated from any context position to the right or left from the wanted word. The item position in the form enables us to select not only positions from the left (the preceding) context (6L-1L), but also KWIC itself and positions to the right (the following) context (1R-6R). The numbering of the positions (according to both current and older notation) is summed up in the following table:

concordance místnosti . Byly z těžkého tmavého dřeva a zlověstně zaskřípaly . Poslepu jsem
position 6L 5L 4L 3L 2L 1L KWIC 1R 2R 3R 4R 5R 6R
position (older notation) -6 -5 -4 -3 -2 -1 KWIC 1 2 3 4 5 6

When determining the position of what should be the subject of calculation of frequency distribution, a problem might arise in case when the wanted KWIC is multi-word (e.g. when searching for a phrase dřevo a uhlí). In that case it is necessary to specify which position of KWIC will be the starting one for calculation (whether the right or left one). The item (Node) start at is used to perform this action. The following table sums up how the marking of contextual positions alters according to which end of the multi-word KWIC is selected as a starting point.

concordance znečišťování ovzduší . Moderní kotle na dřevo a uhlí splňují dnes všechny požadavky z hlediska
position (calculated from the left) 6L 5L 4L 3L 2L 1L KWIC 1R 2R 3R 4R 5R 6R 7R 8R
position (calculated from the right) 8L 7L 6L 5L 4L 3L 2L 1L KWIC 1R 2R 3R 4R 5R 6R

If we wish to create frequency distribution of not only individual units but also pairs of words (bigrams) or even longer phrases, we have to add another level of frequency distribution. Another line will be added to the form with the identical setting options.The quick option of frequency distribution Node forms represents an easier option. - if we apply it to multi-word KWIC (e.g. when searching for two consecutive adverbs such as pomalu a opatrně [tag="D.*"][word="a"][tag="D.*"]), the wanted multi-word expressions ordered according to frequency will appear without any complicated settings.

Provided that we are satisfied with the specification, we may begin the calculation by clicking on the Make frequency list button. All of the items with at least one occurrence will appear in the basic settings. If we wish to narrow the list down, we may set Frequency limit to the value which satisfies the situation.

Text Type frequency distribution

The settings of Text Type frequency distribution is located in the second part of the form. It is used only in those cases when the subject of the research depends on what text types do the occurrences in the concordance occur (if we are interested in txtype), srclang, medium etc.).

In the displayed list we may use the mouse to highlight the metainformation whose values we wish to calculate in the frequency distribution. If we select more than one value (by clicking on the Ctrl button), the search will result in more than one list - unlike in the previous case, this is not a multilevel analysis (in which the data from various levels combine), but successive launch of a number of different kinds of frequency distribution which results in a number of frequency lists.

Even in this form we may set the frequency limit, if we wish to restrict the number of results in the list. With the option Include categories with no hits it is also possible to display those attributes in the list which did not appear in the concordance. Lemma dřevo has not once appeared in the songs (txtype SON). Provided that this option is ticked, txtype SON will appear in the frequency distribution even with a zero frequency.

Usage example: frequency list according to text types

Frequency list of the text types and their groups of lemma dřevo

The following example shows how to use frequency list when working with the SYN2020 corpus to search for a query of lemma dřevo ([lemma="dřevo"]): Frequency distribution of the values of structural attributes txtype and txtype_group of lemma dřevo (excluding the values with zero frequency).

The summary of frequency list arranged according to the structural attributes has the same structure as the list arranged according to the positional attributes. Here, the i.p.m. value is of special importance. It conveys the relative frequency of phenomena displayed in the concordance in relation to the overall size of the corpus part with a given value of structural attribute. In our example, lemma dřevo appears in the corpus SYN2020 with a frequency of 3,566 in specialized literature. Considering the overall ratio of specialized literature in the corpus (33%), it accounts for 88.55 of instances per million of words (i.p.m.).

Just like the items, the structural attributes can also be rearranged in the table according to any column. This is especially useful when we need to know the order according to the relative frequency which allows for comparison of the number of occurrences even in the corpora of different sizes.

Two-attribute interrelationship frequency distribution

The last type of frequency distribution reflects the interrelationship of two selected attributes (positional as well as structural). As an example, we can look at which nominal adjectives (the so-called short forms, such as rád or schopen: [tag="AC..-.*"], excluding postprepositional forms of the type na živo) are prominent in three basic text type groups. First, choose the Two-attribute interrelationship in the Frequency option in the menu (under Custom) and select two attributes: first, choose lemma (displayed as rows in the table of results), and second, choose doc.txtype_group (among Text types, displayed as columns in the table). You can also adjust the minimal value or percentile of absolute or relative frequency.

After clicking on Make frequency list, a table of results is displayed summarizing the number of occurrences of the adjectives in three selected text type groups (fiction, non-fiction and journalistic texts), sorted by frequency. This default setting can be changed: you can re-sort the table by ipm, switch the orientation of rows and columns or opt for a list of attribute pairs. If you are an advanced user, you can also try to sort the rows based on three criteria (attribute value, the total of absolute/relative frequency in a row or in a column), set the confidence interval (CI) or temper with the color mapping (for further information, see the help question mark next to the Color mapping choice). If you choose the relative frequency display, you can also look at a graph with confidence intervals by clicking on the chart icon next to each variable.

Result of a 2D frequency distribution



Menu: QueryCorporaSaveConcordanceFilterFrequencyCollocationViewHelp

1)
This option is available only for the corpora that have been lemmatized
2)
The list of the structural attributes might vary depending on the type of corpus used. Accordingly, the result generated by this option might vary.