Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
pretty_name: CCNEWS Embeddings (dim=1024)
|
| 8 |
+
tags:
|
| 9 |
+
- embeddings
|
| 10 |
+
- sentence-transformers
|
| 11 |
+
- out-of-distribution
|
| 12 |
+
- similarity-search
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Dataset Card for `ccnews-embeddings-dim1024`
|
| 16 |
+
|
| 17 |
+
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.
|
| 18 |
+
|
| 19 |
+
## Dataset Details
|
| 20 |
+
|
| 21 |
+
### Dataset Description
|
| 22 |
+
|
| 23 |
+
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:
|
| 24 |
+
|
| 25 |
+
- `data/`: Contains 614,664 embeddings (shape: `[614664, 1024]`) derived from the CCNEWS dataset.
|
| 26 |
+
- `ood/`: Contains 11,000 embeddings (shape: `[11000, 1024]`) derived from the Yahoo Answers dataset.
|
| 27 |
+
|
| 28 |
+
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.
|
| 29 |
+
|
| 30 |
+
- **Curated by:** Scarlett Magdaleno
|
| 31 |
+
- **Language(s) (NLP):** English
|
| 32 |
+
- **License:** Other (original datasets were redistributed under their respective licenses)
|
| 33 |
+
|
| 34 |
+
### Dataset Sources
|
| 35 |
+
|
| 36 |
+
- **CCNEWS:** https://huggingface.co/datasets/sentence-transformers/ccnews
|
| 37 |
+
- **Yahoo Answers:** https://huggingface.co/datasets/sentence-transformers/yahoo-answers
|
| 38 |
+
|
| 39 |
+
## Dataset Creation
|
| 40 |
+
|
| 41 |
+
### Curation Rationale
|
| 42 |
+
|
| 43 |
+
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.
|
| 44 |
+
|
| 45 |
+
### Source Data
|
| 46 |
+
|
| 47 |
+
#### Data Collection and Processing
|
| 48 |
+
|
| 49 |
+
- Embeddings were computed using the `sentence-transformers/all-roberta-large-v1` model.
|
| 50 |
+
- Only the text field from each dataset was used as input to the encoder.
|
| 51 |
+
- The outputs were saved in PyTorch format using `torch.save`.
|
| 52 |
+
|
| 53 |
+
#### Who are the source data producers?
|
| 54 |
+
|
| 55 |
+
- The original texts were produced by internet users and journalists.
|
| 56 |
+
- Embedding generation and formatting were done by Scarlett Magdaleno.
|
| 57 |
+
|
| 58 |
+
- **Repository:** https://huggingface.co/datasets/ScarlettMagdaleno/ccnews-embeddings-dim1024
|
| 59 |
+
|
| 60 |
+
## Uses
|
| 61 |
+
|
| 62 |
+
### Direct Use
|
| 63 |
+
|
| 64 |
+
- Evaluation of similarity search algorithms
|
| 65 |
+
- Benchmarking nearest neighbor methods under distributional shift
|
| 66 |
+
|
| 67 |
+
### Out-of-Scope Use
|
| 68 |
+
|
| 69 |
+
- This dataset does not contain human-readable text or labels.
|
| 70 |
+
|
| 71 |
+
## Dataset Structure
|
| 72 |
+
|
| 73 |
+
- Format: PyTorch `.pt` files.
|
| 74 |
+
- Each file contains a single `torch.Tensor` of shape `[N, 1024]`, where `N` is the number of sentences encoded.
|
| 75 |
+
|
| 76 |
+
### Splits
|
| 77 |
+
|
| 78 |
+
- `data/`: in-distribution (CCNEWS)
|
| 79 |
+
- `ood/`: out-of-distribution (Yahoo Answers)
|
| 80 |
+
|
| 81 |
+
|