Datasets:

Modalities:
Text
Formats:
text
ArXiv:
Libraries:
Datasets
avaimar commited on
Commit
f8bb147
·
verified ·
1 Parent(s): 4eae2a7

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - feature-extraction
4
+ pretty_name: GloVe-V
5
+ ---
6
+
7
+ # Dataset Card for Statistical Uncertainty in Word Embeddings: GloVe-V
8
+
9
+ <!-- Provide a quick summary of the dataset. -->
10
+
11
+ This is the data repository for the paper "Statistical Uncertainty in Word Embeddings: GloVe-V".
12
+ Our preprint is available [here](https://arxiv.org/abs/2406.12165).
13
+
14
+ **We introduce a method to obtain approximate, easy-to-use, and scalable uncertainty estimates for the GloVe word embeddings and
15
+ demonstrate its usefulness in natural language tasks and computational social science analysis.**
16
+
17
+ ## Dataset Details
18
+
19
+ This data repository contains pre-computed GloVe embeddings and GloVe-V variances for several corpora, including:
20
+
21
+ - **Toy Corpus (300-dim)**: a subset of 11 words from the Corpus of Historical American English (1900-1999). Downloadable as `Toy-Embeddings`
22
+ - **Corpus of Historical American English (COHA) (1900-1999) (300-dim)**: Downloadable as `COHA_1900-1999_300d`
23
+ - More to come!
24
+
25
+ ### Dataset Description
26
+
27
+ <!-- Provide a longer summary of what this dataset is. -->
28
+
29
+ This dataset contains pre-computed GloVe embeddings and GloVe-V variances for the corpora listed above.
30
+
31
+ Given a vocabulary of size $V$, the GloVe-V variances require storing $V \times (D x D)$ floating point numbers.
32
+ For this reason, we produce two versions of the variances:
33
+
34
+ 1. **Approximation Variances**: These are approximations to the full GloVe-V variances that can use either a diagonal approximation to the full variance, or a low-rank Singular Value Decomposition (SVD) approximation. We optimize this approximation at the level of each word to guarantee at least 90% reconstruction of the original variance. These approximations require storing much fewer floating point numbers than the full variances.
35
+ 2. **Complete Variances**: These are the full GloVe-V variances, which require storing $V \times (D x D)$ floating point numbers. For example, in the case of the 300-dimensional embeddings for the COHA (1900-1999) corpus, this would be approximately 6.4 billion floating point numbers!
36
+
37
+ - **License:** The license of these data products varies according to each corpora. In the case of the COHA corpus, these data products are intended for academic use only.
38
+
39
+ ### Dataset Sources
40
+
41
+ <!-- Provide the basic links for the dataset. -->
42
+
43
+ - **Repository:** [GloVe-V GitHub repository](https://github.com/reglab/glove-v)
44
+ - **Paper:** [Preprint](https://arxiv.org/abs/2406.12165)
45
+ - **Demo:** [Tutorial](https://github.com/reglab/glove-v/blob/main/glove_v/docs/tutorial.ipynb)
46
+
47
+
48
+ ## Dataset Structure
49
+
50
+ <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
51
+
52
+ The dataset for each corpus contains the following files (see the **Storage of GloVe-V Variances** section below for more details on the differences between the complete and approximated variances):
53
+ - `vocab.txt`: a list of the words in the corpus with associated frequencies
54
+ - `vectors.safetensors`: a safetensors file containing the embeddings for each word in the corpus
55
+ - `complete_chunk_{i}.safetensors`: a set of safetensors file containing the complete variances for each word in the corpus. These variances are size $D \times D$, where $D$ is the embedding dimensionality, and thus are very storage-intensive.
56
+ - `approx_info.txt`: a text file containing information on the approximation used to approximate the full variance of each word (diagonal approximation, or SVD approximation)
57
+ - `ApproximationVariances.safetensors`: a safetensors file containing the approximation variances for each word in the corpus. These approximations require storing much fewer floating point numbers than the full variances. If a word has been approximated by a diagonal approximation, then this file will contain only $D$ floating point numbers for each word. Alternatively, if a word has been approximated by an SVD approximation of rank $k$, then this file will contain $k(2D + 1)$ floating point numbers for each word.
58
+
59
+ ## Use
60
+
61
+ Our tutorial notebook is available [here](https://github.com/reglab/glove-v/blob/main/glove_v/docs/tutorial.ipynb) and offers a detailed walkthrough of the process of downloading and interacting with the GloVe-V data products.
62
+
63
+ ## Citation
64
+
65
+ <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
66
+
67
+ If you use this software, please cite it as below:
68
+
69
+ **BibTeX:**
70
+
71
+ ```bibtex
72
+ @inproceedings{glovev2024,
73
+ title = "Statistical Uncertainty in Word Embeddings: {GloVe-V}",
74
+ author = "Vallebueno, Andrea and Handan-Nader, Cassandra and Manning, Christopher D. and Ho, Daniel E.",
75
+ booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing",
76
+ year = "2024",
77
+ publisher = "Association for Computational Linguistics",
78
+ location = "Miami, Florida"
79
+ }
80
+ ```
81
+
82
+ ## Contact
83
+
84
+ Daniel E. Ho ([email protected])