-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathstitching.lyx
2320 lines (1833 loc) · 50.2 KB
/
stitching.lyx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\begin_preamble
\usepackage{url}
\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "times" "default"
\font_sans "helvet" "default"
\font_typewriter "courier" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle true
\papersize default
\use_geometry false
\use_package amsmath 2
\use_package amssymb 2
\use_package cancel 1
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 0
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Stitching Together Vector Spaces
\end_layout
\begin_layout Author
Linas Vepštas
\end_layout
\begin_layout Date
Draft of 17 June 2018 - First Draft
\end_layout
\begin_layout Abstract
Applying machine learning to linguistics to extract both syntax and semantics,
ideally via unsupervised algorithms is the goal of an incresingly popular
quest.
At this time, vector-space based approaches seem to be the best suited
for this, and are thus increasingly commonplace and quite popular.
This includes systems such as word2vec and and GloVe as exemplars.
These systems fall short, however, as they fail to expose the syntactic
structure of natural language.
The reason for this, and how to move beyond this state of affairs, is discussed
in this text.
\end_layout
\begin_layout Abstract
The key observation made here is that there is more than just one vector
space onto which words can be mapped.
The different vector spaces are necessaarily related to one-another through
syntactic relations.
When a set of words are clustered into a grammatical category, this clustering
must be made in a consistent fashion, for each of the vector spaces.
The vector spaces must be
\begin_inset Quotes eld
\end_inset
stitched together
\begin_inset Quotes erd
\end_inset
in a consistent fashion; this consistency condition is exactly the syntax
of the grammar.
The stitching obeys a certain set of axioms, which are the sheaf axioms.
The best possible stitching together can be found by minimizing an overall
cost function.
\end_layout
\begin_layout Section*
Introduction
\end_layout
\begin_layout Standard
Not written.
See next section.
\end_layout
\begin_layout Standard
Also, the last half of this text is not written.
\end_layout
\begin_layout Section*
Meaning
\end_layout
\begin_layout Standard
So here's one approach to meaning.
It is already clear that disjuncts are correlated with meaning, so one
provisional approach might be to assign each disjunct a unique meaning.
Alternately, this can be used as a doorway to the intentional meaning of
a word.
\end_layout
\begin_layout Standard
Consider the phrases
\begin_inset Quotes eld
\end_inset
the big balloon
\begin_inset Quotes erd
\end_inset
,
\begin_inset Quotes eld
\end_inset
the red balloon
\begin_inset Quotes erd
\end_inset
,
\begin_inset Quotes eld
\end_inset
the small ballon
\begin_inset Quotes erd
\end_inset
...
The pseudo-disjuncts on balloon in these three cases would be
\begin_inset Quotes eld
\end_inset
the- big-
\begin_inset Quotes erd
\end_inset
\begin_inset Quotes eld
\end_inset
the - red-
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
the- small-
\begin_inset Quotes erd
\end_inset
(plus an additional connector to the verb).
Examining this connector-by-connector, we expect that the MI for the word
pair (the, balloon) to be small, while the MI for the word-pairs (big,
balloon), (red, balloon) and (small, balloon) to be large(r).
Its thus tempting to identify the set {big, red, small} as the set of intention
al attributes associated with
\begin_inset Quotes eld
\end_inset
balloon
\begin_inset Quotes erd
\end_inset
.
The strength of the MI values to each of the connectors might be taken
as a judgement of how much that attribute is prototypical of the object
(see other section on
\begin_inset Quotes eld
\end_inset
prototype theory
\begin_inset Quotes erd
\end_inset
).
\end_layout
\begin_layout Standard
The disjuncts associated with
\begin_inset Quotes eld
\end_inset
balloon
\begin_inset Quotes erd
\end_inset
will also connect to a verb.
These verb connectors may be taken as another set of intentional attributes,
for example {floats, drifts, rose, popped}.
It should be possible to distinguish these as an orthogonal set of attributes,
in that one might observe
\begin_inset Quotes eld
\end_inset
the- red- floats+
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
the- red- drifts+
\begin_inset Quotes erd
\end_inset
but never observe
\begin_inset Quotes eld
\end_inset
floats- drifts+
\begin_inset Quotes erd
\end_inset
.
\end_layout
\begin_layout Standard
Meaning bibliography:
\end_layout
\begin_layout Itemize
\begin_inset Quotes eld
\end_inset
The Molecular Level of Lexical Semantics
\begin_inset Quotes erd
\end_inset
, EA Nida, (1997) International Journal of Lexicography, 10(4): 265–274.
https://www.academia.edu/36534355/The_Molecular_Level_of_Lexical_Semantics_by_EA_
Nida
\end_layout
\begin_layout Section*
Vector Algebra
\end_layout
\begin_layout Standard
Here's the deal ...
vectors.
\end_layout
\begin_layout Subsection*
Word vectors
\end_layout
\begin_layout Standard
The last section introduces the idea of decomposable basis vectors.
Let try to make this more precise (a cleaned-up version of this and above
belongs in the (unfinished) sheaf paper.).
First, review the notion of a vector, and then show how to make vectors
from word-disjuncts, N-grams, and skip-grams.
Then review the idea of tensoring.
\end_layout
\begin_layout Standard
So, the textbook standard definition of a vector
\begin_inset Formula $\vec{v}$
\end_inset
is
\begin_inset Formula
\[
\vec{v}=a_{1}\widehat{e}_{1}+a_{2}\widehat{e}_{2}+\cdots+a_{n}\widehat{e}_{n}
\]
\end_inset
The
\begin_inset Formula $a_{k}$
\end_inset
are conventionally taken to be numbers; here, real numbers.
The
\begin_inset Formula $\widehat{e}_{k}$
\end_inset
are called
\begin_inset Quotes eld
\end_inset
basis vectors
\begin_inset Quotes erd
\end_inset
.
They have the property of having unit length; that is
\begin_inset Formula $\left\Vert \widehat{e}_{k}\right\Vert =1$
\end_inset
.
For every word
\begin_inset Formula $w$
\end_inset
, one can create several kinds of vectors.
A widely-known vector is the
\begin_inset Quotes eld
\end_inset
N-gram
\begin_inset Quotes erd
\end_inset
, where each
\begin_inset Formula $\widehat{e}_{k}$
\end_inset
corresponds to the N-word context in which the word
\begin_inset Formula $w$
\end_inset
was observed, and
\begin_inset Formula $a_{k}$
\end_inset
is the count of the number of observations.
Thus, for example, given the toy corpus: "
\emph on
John knew the bird was there.
John heard the bird.
John saw the bird.
Susan saw the bird too.
Mary saw it also
\emph default
".
Setting
\begin_inset Formula $w=bird$
\end_inset
and N=3, and the requirement that the word be in the middle of the N-gram,
one has
\begin_inset Formula
\begin{align*}
\widehat{e}_{1} & =\left[the\;*\;was\right]\\
\widehat{e}_{2} & =\left[the\;*\;.\right]\\
\widehat{e}_{3} & =\left[the\;*\;too\right]
\end{align*}
\end_inset
and observation counts
\begin_inset Formula $a_{1}=1$
\end_inset
,
\begin_inset Formula $a_{2}=2$
\end_inset
,
\begin_inset Formula $a_{3}=1$
\end_inset
.
Here,
\begin_inset Formula $a_{2}=2$
\end_inset
because there are two sentences containing the word-sequence
\begin_inset Quotes eld
\end_inset
the bird.
\begin_inset Quotes erd
\end_inset
In more compact form, one may write
\begin_inset Formula
\[
\overrightarrow{bird}=1\left[the\;*\;was\right]+2\left[the\;*\;.\right]+1\left[the\;*\;too\right]
\]
\end_inset
This can be extended in an obvious way to a larger corpus, to a larger N
and one can drop the requirement that the word be in the middle.
Skip-grams are similar, but allow some words to be skipped, and have a
complex algorithm to determine when and how words can be skipped.
\end_layout
\begin_layout Standard
Disjuncts behave in a very similar manner.
The word-pair counting and the MST pipeline creates disjuncts and the associate
d counts.
For the above corpus, the disjuncts might possibly resemble these:
\begin_inset Formula
\begin{align*}
\widehat{e}_{1} & =the\negthinspace-\;\&\;was\negthinspace+\\
\widehat{e}_{2} & =the\negthinspace-\;\&\;.\negthinspace+\\
\widehat{e}_{3} & =the\negthinspace-\;\&\;too\negthinspace+
\end{align*}
\end_inset
These disjuncts are essentially identical to the N-gram example above; only
the notation is different.
One might hope that the disjuncts coming out from the MST pipeline might
actually be of higher quality.
The support for this hope is several decades of research results on MST
parsing of natural language.
The point here is that N-grams, skip-grams and word-disjunct vectors are
quite similar to one another, and that, perhaps, word-disjunct vectors
are just a tiny bit more linguistically accurate.
\end_layout
\begin_layout Standard
What does one do with vectors? Well, one can apply any vector-based algorithm
you can wrap your mind around.
Some classics are clustering; SVM or K-means.
Here, one commonly starts with a vector dot-product, leading to a cosine-distan
ce metric.
Given two vectors
\begin_inset Formula $\vec{a}=a_{1}\widehat{e}_{1}+a_{2}\widehat{e}_{2}+\cdots+a_{n}\widehat{e}_{n}$
\end_inset
and
\begin_inset Formula $\vec{b}=b_{1}\widehat{e}_{1}+b_{2}\widehat{e}_{2}+\cdots+b_{n}\widehat{e}_{n}$
\end_inset
, the dot-product is given by
\begin_inset Formula
\[
\vec{a}\cdot\vec{b}=a_{1}b_{1}+a_{2}b_{2}+\cdots+a_{n}b_{n}
\]
\end_inset
The cosine angle between these is given by
\begin_inset Formula
\[
\left\Vert \vec{a}\right\Vert \left\Vert \vec{b}\right\Vert \cos\theta=\vec{a}\cdot\vec{b}
\]
\end_inset
where, as usual, the
\begin_inset Formula $l_{2}$
\end_inset
Hilbert-space norm is used:
\begin_inset Formula $\left\Vert \vec{a}\right\Vert =\sqrt{\vec{a}\cdot\vec{a}}$
\end_inset
.
The closer that
\begin_inset Formula $\theta$
\end_inset
is to zero, the more parallel the two vectors are.
There are plenty of other interesting ways of measuring the similarity
of vectors.
The point here is that if the corpus included the sentences
\begin_inset Quotes eld
\end_inset
\emph on
John heard the crow.
John saw the crow.
\emph default
\begin_inset Quotes erd
\end_inset
and one obtained a vector for
\begin_inset Formula $\overrightarrow{crow}$
\end_inset
, one might typically discover that
\begin_inset Formula $\overrightarrow{crow}$
\end_inset
is similar to
\begin_inset Formula $\overrightarrow{bird}$
\end_inset
: the cosine angle gives a concrete technology for measuring similarity.
\end_layout
\begin_layout Standard
Suppose one has a large number of vectors for a large number of words.
Similarity metrics that assign a number to the informal idea of similarity
then opens the door to automatically classifying words into bins, according
to their similarity.
A common favorite is the K-means clustering algorithm, which can take a
large number of vectors, and assign them to one of K different bins, with
all words in the same bin being quite 'similar'.
One can then make general hand-waving arguments that these clusters correspond
to 'grammatical classes'.
The actual data, the actual results make this obvious: a quick skim of
the clusters makes it clear that some clusters are dominated by nous, and
others by verbs.
\end_layout
\begin_layout Standard
There are other approaches, too.
Popular ones are the various deep learning approaches applied to neural
nets.
Word2Vec is a particularly famous one; its now a tensorflow tutorial.
The algorithmic details are interesting, and sophisticated.
However, conceptually, its not really all that different from what is described
above: one obtains a collection of vectors, and then one pumps the vectors
through a neural-net classifier, to obtain word-classes.
\end_layout
\begin_layout Standard
The entire point of this section is to drive home the idea that, whatever
one can do with N-grams or with skip-grams, one can also do with word-disjunct
vectors.
At the appropriate conceptual level, they are really very, very similar
to one-another.
\end_layout
\begin_layout Standard
As a minor side-point, one can hold out some hope that perhaps word-disjunct
vectors are of (slightly) higher quality than skip-grams.
It seems like they could be or should be, as reinforced by decades of MST-lingu
istics results.
If one takes some stock, off-the-shelf linguistics-K-means algorithm, or
some stock, off-the-shelf Word2vec algorithm, and instead plugs in word-disjunc
t vectors wherever the skip-grams or N-grams might go, then what happens?
Maybe, possibly, one might get results that are an itsy-bitsy teensy-weensy
bit better.
Maybe.
This is not known: there are no published results comparing these.
It is reasonable (to me) to expect that the results would be quite similar,
with perhaps word-disjunct vectors being just a smidgen higher-quality.
\end_layout
\begin_layout Standard
Due diligence suggests that such head-to-head comparisons should be performed
and published.
\end_layout
\begin_layout Standard
A later sections describes how one can do much better than naive clustering,
whether Word2vec or K-means.
But first, some additional basic issues need to be reviewed.
\end_layout
\begin_layout Subsection*
Merging vectors
\end_layout
\begin_layout Standard
In the above example, it seems obvious that
\begin_inset Quotes eld
\end_inset
\emph on
bird
\emph default
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
\emph on
crow
\emph default
\begin_inset Quotes erd
\end_inset
should be merged: they are grammatically similar, given their vectors.
So lets merge them into a class of
\begin_inset Quotes eld
\end_inset
\emph on
THINGS
\emph default
\begin_inset Quotes erd
\end_inset
.
How should that class be created, formally? This is a non-trivial question,
since additional merges affect the class.
Suppose, for example, the corupus contained the sentence
\begin_inset Quotes eld
\end_inset
\emph on
John saw the book
\emph default
\begin_inset Quotes erd
\end_inset
.
Is it plausible to merge
\begin_inset Quotes eld
\end_inset
book
\begin_inset Quotes erd
\end_inset
into
\begin_inset Quotes eld
\end_inset
THINGS
\begin_inset Quotes erd
\end_inset
? If so, then how? One way is to compute the cosine similarity
\begin_inset Formula $\cos\left(\overrightarrow{book},\overrightarrow{bird}\right)$
\end_inset
and
\begin_inset Formula $\cos\left(\overrightarrow{book},\overrightarrow{crow}\right)$
\end_inset
and merge only if both are large enough.
The other is to compute
\begin_inset Formula $\cos\left(\overrightarrow{book},\overrightarrow{THINGS}\right)$
\end_inset
but this requires the vector
\begin_inset Formula $\overrightarrow{THINGS}$
\end_inset
.
\end_layout
\begin_layout Standard
There are several ways to create this vector.
One way is by explicit vector addition
\begin_inset Formula
\[
\overrightarrow{THINGS}_{sum}=\overrightarrow{bird}+\overrightarrow{crow}
\]
\end_inset
This seems to be an adequate way of creating this grammatical class.
Recall that
\begin_inset Formula
\[
\overrightarrow{bird}=1\left|the\negthinspace-\;\&\;was\negthinspace+\right\rangle +2\left|the\negthinspace-\;\&\;.\negthinspace+\right\rangle +1\left|the\negthinspace-\;\&\;too\negthinspace+\right\rangle
\]
\end_inset
where we switched to disjunct notation.
The vector for
\begin_inset Formula $\overrightarrow{crow}$
\end_inset
is
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
\overrightarrow{crow}=2\left|the\negthinspace-\;\&\;.\negthinspace+\right\rangle
\]
\end_inset
Comparing these two, directly like this, suggests that other merge strategies
are possible.
For example, since
\begin_inset Formula $\overrightarrow{crow}$
\end_inset
has neither
\begin_inset Formula $\left|the-\&was+\right\rangle $
\end_inset
nor
\begin_inset Formula $\left|the-\&too+\right\rangle $
\end_inset
on it, maybe these don't belong on the merged class: perhaps an intersection
of the basis vectors should be used, so that the combined vector is non-zero
only on the intersection of the basis elements.
Thus, perhaps a better definition would be
\begin_inset Formula
\[
\overrightarrow{THINGS}_{intersect}=4\left|the\negthinspace-\;\&\;.\negthinspace+\right\rangle
\]
\end_inset
This is narrow definition is nice, because we have that
\begin_inset Formula
\[
\overrightarrow{book}=1\left|the\negthinspace-\;\&\;.\negthinspace+\right\rangle
\]
\end_inset
and so clearly the cosine between
\begin_inset Formula $\overrightarrow{THINGS}_{intersect}$
\end_inset
and
\begin_inset Formula $\overrightarrow{book}$
\end_inset
is one, and they're mergeable.
By contrast, the cosine between
\begin_inset Formula $\overrightarrow{THINGS}_{sum}$
\end_inset
and
\begin_inset Formula $\overrightarrow{book}$
\end_inset
is much less than one - which also makes sense, because books are not very
bird-like.
\end_layout
\begin_layout Standard
Another possibility is to combine some fraction
\begin_inset Formula $0\le\alpha\le1$
\end_inset
of the basis elements that don't overlap.
This suggests a grammatical class of
\begin_inset Formula
\[
\overrightarrow{THINGS}_{\alpha}=\alpha\left|the\negthinspace-\;\&\;was\negthinspace+\right\rangle +4\left|the\negthinspace-\;\&\;.\negthinspace+\right\rangle +\alpha\left|the\negthinspace-\;\&\;too\negthinspace+\right\rangle
\]
\end_inset
so that
\begin_inset Formula
\[
\overrightarrow{THINGS}_{\alpha=0}=\overrightarrow{THINGS}_{intersect}
\]
\end_inset
while
\begin_inset Formula
\[
\overrightarrow{THINGS}_{\alpha=1}=\overrightarrow{THINGS}_{sum}
\]
\end_inset
That is, for
\begin_inset Formula $\alpha=1$
\end_inset
,
\begin_inset Formula $\overrightarrow{THINGS}_{\alpha}$
\end_inset
is rather bird-like, whereas for
\begin_inset Formula $\alpha=0$
\end_inset
, its more generic.
\end_layout
\begin_layout Standard
Note that
\begin_inset Formula $\overrightarrow{THINGS}_{\alpha}$
\end_inset
is not a linear combination of
\begin_inset Formula $\overrightarrow{bird}$
\end_inset
and
\begin_inset Formula $\overrightarrow{crow}$
\end_inset
.
It is non-linear, and, depending on the actual corpus, could be highly
non-linear.
\end_layout
\begin_layout Standard
The choice of merge strategy alters the contents of the grammatical clusters.
This is not a surprise; the goal here is to illustrate that a number of
different merge strategies are possible.
it is not
\emph on
a priori
\emph default
obvious which is the best.
\end_layout
\begin_layout Subsection*
Merge Strategies and Semantics
\end_layout
\begin_layout Standard
The different strategies for merging vectors lead in a natural way to the
automated discovery of word-meaning.
This can be illustrated by example; although a different example from the
above is needed.
\end_layout
\begin_layout Standard
Consider the word
\begin_inset Quotes eld
\end_inset
\emph on
saw
\emph default
\begin_inset Quotes erd
\end_inset
.
After observing a sufficient amount of text, one will find a vector
\begin_inset Formula $\overrightarrow{saw}$
\end_inset
that contains disjuncts for appropriate for usages as a "cutting tool",
"the verb cut", and "the past tense of to see".
Suppose that there is an existing class
\begin_inset Formula $\overrightarrow{TOOLS}$
\end_inset
, consisting of nouns, and that the similarity measure judges that
\begin_inset Formula $\overrightarrow{saw}$
\end_inset
and
\begin_inset Formula $\overrightarrow{TOOLS}$
\end_inset
are similar.
Clearly, a merge strategy of expanding an existing cluster by linear addition
is incorrect.
The expanded class
\begin_inset Formula
\[
\overrightarrow{TOOLS}_{linear-expand}=\overrightarrow{TOOLS}+\overrightarrow{saw}
\]
\end_inset
is incorrect, or at least, not very good, as it now contains disjuncts for
"the verb cut" and "the past tense of to see".
Two bad things happen: (a) the noun cluster is polluted with verb-vector
components, and (b) the vector has not been factorized, and so
\begin_inset Quotes eld
\end_inset
\emph on
saw
\emph default
\begin_inset Quotes erd
\end_inset
cannot also be placed into other clusters as well.
One looses the ability to distinguish different semantic meanings based
on grammatical usage.
\end_layout
\begin_layout Standard
We know that,
\emph on
a priori
\emph default
, the correct way of thinking about
\begin_inset Formula $\overrightarrow{saw}$
\end_inset
is that it has the components
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
\overrightarrow{saw}=\vec{v}_{tool}+\vec{v}_{past-tense}+\vec{v}_{cutting}
\]
\end_inset
However, we do not know (
\emph on
a priori
\emph default
) what the components
\begin_inset Formula $\vec{v}_{tool}$
\end_inset
,
\begin_inset Formula $\vec{v}_{past-tense}$
\end_inset
and
\begin_inset Formula $\vec{v}_{cutting}$
\end_inset
are.
A good merge strategy would be able to factorize them out, to discover
these automatically.
\end_layout
\begin_layout Standard
The best merge strategy is hardly obvious.
The three vectors
\begin_inset Formula $\vec{v}_{tool}$
\end_inset
,
\begin_inset Formula $\vec{v}_{past-tense}$
\end_inset
and
\begin_inset Formula $\vec{v}_{cutting}$
\end_inset
are not orthogonal (or rather, in general, won't be), so even if there
were pre-existing grammatical classes for these three, an orthogonal decompose
ion of
\begin_inset Formula $\overrightarrow{saw}$
\end_inset
into components is not unique.
What's more, in early stages, a class for
\begin_inset Formula $\overrightarrow{TOOLS}$