blob: 8ebdbdc4b65d4499df835712141948491905334b [file] [log] [blame]
Marc Kupietzd6dfdf02019-12-06 09:53:34 +01001<html>
2<p>
Marc Kupietzb37bd842024-04-05 11:22:30 +02003 DeReKoVecs (Fankhauser & Kupietz 2022, 2017, 2019; Kupietz et al. 2018) is the new open lab of the Corpus Linguistics group at IDS Mannheim. Similar to the
Marc Kupietzd6dfdf02019-12-06 09:53:34 +01004 Collocation Database <a href="http://corpora.ids-mannheim.de/">CCDB</a> (Keibel &amp; Belica 2007, Belica 2011), DeReKoVecs serves for investigating and comparing
5 of measurements, dimension reduction procedures, visualizations etc., to track down detailed paradigmatic and syntagmatic relations
Marc Kupietz014220c2024-08-28 15:33:43 +02006 between words based on their use in very large corpora such as the German Reference Corpus DeReKo (Kupietz et al. 2010, 2018) or the Reference Corpus of the Contemporary Romanian Language CoRoLa (Barbu Mititelu et al. 2018, Cristea et al. 2017).
Marc Kupietzd6dfdf02019-12-06 09:53:34 +01007</p>
8<p>
9 The models used here are based on an extension of word2vec (Mikolov et al. 2013), wang2vec (Ling et al. 2015)
10 and on the other hand on simple co-occurence counts and analysis methods that operate on these.
11</p>
Marc Kupietz565274e2026-09-06 13:17:17 +020012<h3>Queries</h3>
13<p>
14 Several word forms separated by blanks are added into one query vector, i.e. the search is
15 around the centre of the alternatives, while a &ldquo;|&rdquo; separates several independent
16 searches. Beyond that, &ldquo;+&rdquo; and &ldquo;-&rdquo; do arithmetic in the vector space:
17 <span class="mono">König - Mann + Frau</span> searches the neighbours of the position
18 vec(König) - vec(Mann) + vec(Frau) rather than the position of a single word. A sign is an
19 operator only at the beginning of a token, so hyphenated words such as
20 <span class="mono">Nord-Süd-Dialog</span> remain searchable.
21</p>
22<p>
23 The syntagmatic view follows along. The predictive score of a candidate is
24 \(\sigma(q \cdot u)\), which is linear in \(q\) before the sigmoid, so an expression
25 yields the contexts that the computed position predicts &ndash; for &ldquo;König - Mann +
26 Frau&rdquo; the ones König and Frau predict but Mann does not. The positive terms are
27 averaged rather than summed, so that the values stay in the range a single word form
28 occupies: the sigmoid is informative over a narrow range only, and the strongest collocates
29 of a single word already sit at the top of it. A balanced analogy (+1 -1 +1) is one term and
30 is therefore on the same scale as a single word form.
31</p>
32<p>
33 The count based collocators, in contrast, remain restricted to a single word form: they are
34 looked up per node in the co-occurrence database and cannot be computed from the query
35 vector. Operands that are not in the vocabulary are named above the result and left out of
36 the computation.
37</p>
38
Marc Kupietz1e00eb82026-09-04 16:38:30 +020039<h3>Effective window size and auto focus</h3>
40<p>
41 The association measures LL, MI, MI², MI³ and nPMI are not computed over the whole context
42 window, but only over the <em>attested positions</em>, i.e. those positions in which the
43 collocate occurs at least once. The expected frequency is based on this effective window,
44 which rates a collocate occurring in few positions higher than one spread over many, and thus
45 helps to tell actual collocations from words that merely occur in the same contexts. Note
46 that the values are therefore not directly comparable to those of tools that always compute
47 with a fixed window size.
48</p>
49<p>
50 LDaf, in contrast, is the <em>auto focus</em> score (Belica), i.e. the highest value that any
51 – not necessarily contiguous – selection of positions reaches, an idea also known from the
52 collocation database <a href="http://corpora.ids-mannheim.de/">CCDB</a>. As its denominator
53 grows with the width of the selection, it rewards pairs whose co-occurrences are
54 concentrated, which is why it usually orders collocates most usefully and is used as the
55 default order here. It is Dice-like, but not Log-Dice, so it is not on the same scale as LD
56 and can be higher or lower than it. Both can be read off the auto-focus column of the
57 collocation table, where the attested positions are marked with ◽ and those selected by the
58 auto focus with ◾. LD itself does not depend on any window.
59</p>
60
Marc Kupietzd6dfdf02019-12-06 09:53:34 +010061<h3>Disclaimer</h3>
62<p>
Marc Kupietzd68f5c32024-08-23 11:50:32 +020063 Please note that – unlike e.g. <a href="https://korap.ids-mannheim.de/">KorAP</a> – we cannot operate DeReKoVecs
Marc Kupietzd6dfdf02019-12-06 09:53:34 +010064 as a service with high reliability. DeReKoVecs is only intended as a glass laboratory.
65 Things can change unannounced at any time and even a complete breakdown over a longer period of time cannot be excluded with certainty.
66 If you would like to use DeReKoVecs for your own research in the longer term, please contact us.
67</p>
Marc Kupietz5b8aaf72026-09-04 19:21:22 +020068<h3>Changes</h3>
69<p>
Marc Kupietz565274e2026-09-06 13:17:17 +020070 <strong>2026-09-06</strong>
71
Marc Kupietz21fcd5f2026-09-06 13:17:29 +020072 The search field understands vector arithmetic (see <em>Queries</em> above) for
73 paradigmatic and predictive syntagmatic analyses; the latter used to consider only
74 the first word form, and have also gained a max(z) column.
Marc Kupietz565274e2026-09-06 13:17:17 +020075</p>
76<p>
Marc Kupietz5b8aaf72026-09-04 19:21:22 +020077 <strong>2026-09-04</strong>
78
Marc Kupietz1e00eb82026-09-04 16:38:30 +020079 Log-Dice (LD) is now computed exactly as defined by Rychlý (2008),
80 \(14 + \log_2 \frac{2f_{1,2}}{f_1 + f_2}\), without the window size factor that used to be
81 applied to \(f_1\). Values are therefore higher than before, by up to \(\log_2\) of the
82 window size, and directly comparable to those of other tools such as Sketch Engine.
Marc Kupietz92507652026-09-04 17:59:18 +020083 LL changes as well: its contingency table is now scaled with the window size as a whole
Marc Kupietz5b8aaf72026-09-04 19:21:22 +020084 rather than in its row total alone.
Marc Kupietz1e00eb82026-09-04 16:38:30 +020085 LDaf is unchanged, as is the order of the collocates: it is the auto focus score, which
86 keeps the window size factor deliberately, since that is what makes it sensitive to how
Marc Kupietz92507652026-09-04 17:59:18 +020087 concentrated a pair is. MI, MI², MI³ and nPMI are unaffected, as they only need the
88 expected co-occurrence frequency, which is unchanged.
Marc Kupietz5b8aaf72026-09-04 19:21:22 +020089</p>
90
91<h3>Scheduled Downtimes and Announcements</h3>
92<dl id="downtimes">
93 <dt></dt><dd></dd>
Marc Kupietz9ae184c2023-11-04 18:21:54 +010094</dl>
Marc Kupietzd6dfdf02019-12-06 09:53:34 +010095</html>