File size: 3,319 Bytes
9e937c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e3e48e6
be40557
9e937c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: other
task_categories:
  - sentence-similarity
language:
  - en
pretty_name: CCNEWS Embeddings (dim=1024)
tags:
  - embeddings
  - sentence-transformers
  - out-of-distribution
  - similarity-search
---

# Dataset Card for `ccnews-embeddings-dim1024`

This dataset contains precomputed 1024-dimensional embeddings of English news articles from the [CCNEWS dataset](https://huggingface.co/datasets/sentence-transformers/ccnews) using the `sentence-transformers/all-roberta-large-v1` model. It also includes an out-of-distribution (OOD) subset of embeddings from [Yahoo Answers](https://huggingface.co/datasets/sentence-transformers/yahoo-answers), processed in the same way.

Note: This repository only provides the embeddings. If you are interested in the original text-embedding pairs for the CCNEWS subset, they are available in the related repository: [ScarlettMagdaleno/ccnews_all-roberta-large-v1_1024](https://huggingface.co/datasets/ScarlettMagdaleno/ccnews_all-roberta-large-v1_1024).

## Dataset Details

### Dataset Description

The dataset is intended for tasks related to **similarity search** and **evaluation under domain shift** (in-distribution vs. out-of-distribution). It contains two main subsets:

- `data/`: Contains 614,664 embeddings (shape: `[614664, 1024]`) derived from the CCNEWS dataset.
- `ood/`: Contains 11,000 embeddings (shape: `[11000, 1024]`) derived from the Yahoo Answers dataset.

All embeddings were computed using the [sentence-transformers/all-roberta-large-v1](https://huggingface.co/sentence-transformers/all-roberta-large-v1) model and stored in PyTorch `.pt` format.

- **Curated by:** Scarlett Magdaleno
- **Language(s) (NLP):** English
- **License:** Other (original datasets were redistributed under their respective licenses)

### Dataset Sources

- **CCNEWS:** https://huggingface.co/datasets/sentence-transformers/ccnews
- **Yahoo Answers:** https://huggingface.co/datasets/sentence-transformers/yahoo-answers

## Dataset Creation

### Curation Rationale

The embeddings were generated to facilitate efficient **similarity search** and enable controlled **experiments on generalization across domains**, using CCNEWS as the in-distribution (ID) source and Yahoo Answers as the out-of-distribution (OOD) set.

### Source Data

#### Data Collection and Processing

- Embeddings were computed using the `sentence-transformers/all-roberta-large-v1` model.
- Only the text field from each dataset was used as input to the encoder.
- The outputs were saved in PyTorch format using `torch.save`.

#### Who are the source data producers?

- The original texts were produced by internet users and journalists.
- Embedding generation and formatting were done by Scarlett Magdaleno.

- **Repository:** https://huggingface.co/datasets/ScarlettMagdaleno/ccnews-embeddings-dim1024

## Uses

### Direct Use

- Evaluation of similarity search algorithms
- Benchmarking nearest neighbor methods under distributional shift

### Out-of-Scope Use

- This dataset does not contain human-readable text or labels.

## Dataset Structure

- Format: PyTorch `.pt` files.
- Each file contains a single `torch.Tensor` of shape `[N, 1024]`, where `N` is the number of sentences encoded.

### Splits

- `data/`: in-distribution (CCNEWS)
- `ood/`: out-of-distribution (Yahoo Answers)