Skip to content

Commit c99a3cb

Browse files
committed
added explanation on what a vector is
1 parent 0f9b4f8 commit c99a3cb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

_posts/2024-07-31-Embeddings.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,21 @@ Computers are meant to crunch numbers; it goes back to the original design of th
22

33
#### What are Embeddings?
44

5-
Embeddings are numerical representations of text data where words or phrases from the vocabulary are mapped to vectors of real numbers. This mapping is crucial because it allows us to quantify and manipulate textual data in a way that machines can understand and process. Below is an example of 4 dimension vector representation of the word king
5+
Embeddings are numerical representations of text data where words or phrases from the vocabulary are mapped to vectors of real numbers. This mapping is crucial because it allows us to quantify and manipulate textual data in a way that machines can understand and process.
6+
7+
We understand what a word is, lets see what a vector is. A vector is a sequence of numbers that forms a group. For example
8+
9+
- (3) is a one dimensional vector.
10+
- (2,8) is a two dimensional vector.
11+
- (12,6,7,4) is a four dimensional vector.
12+
13+
A vector can be represented as by plotting on a graph. Lets take a 2D example
14+
15+
![2D Plot](/assets/2017-01-22-Natural Language Processing using Word2Vec/2DPlot.png)
16+
17+
We can only 3 dimensions, anything more than that you can just say it not visualize.
18+
19+
Below is an example of 4 dimension vector representation of the word king
620

721
![King Vector](/assets/2024-07-31-Embeddings/king_vector.jpg)
822

0 commit comments

Comments
 (0)