Simon van Dyk commited on
Commit ·
5437d4b
1
Parent(s): 3362857
Update readme first draft
Browse files
README.md
CHANGED
|
@@ -1,3 +1,98 @@
|
|
| 1 |
---
|
| 2 |
license: odc-by
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: odc-by
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# Nosible Financial Sentiment Dataset
|
| 6 |
+
|
| 7 |
+
## What is it?
|
| 8 |
+
The nosible financial sentiment dataset is a collection of **100k** cleaned and deduplicated financial news samples for financial sentiment classification. Each sample is labeled as **positive**, **negative**, or **neutral**. Financial sentiment is optimised for used in finance as it's sensitive to financial outlook rather than just emotional tone.
|
| 9 |
+
|
| 10 |
+
## How to use it
|
| 11 |
+
Using the [HuggingFace datasets library](https://huggingface.co/docs/datasets/):
|
| 12 |
+
|
| 13 |
+
Tip: You can install it with `pip install datasets`.
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from datasets import load_dataset
|
| 17 |
+
|
| 18 |
+
dataset = load_dataset("NOSIBLE/financial-sentiment")
|
| 19 |
+
|
| 20 |
+
print(dataset)
|
| 21 |
+
|
| 22 |
+
# DatasetDict({
|
| 23 |
+
# train: Dataset({
|
| 24 |
+
# features: ['text', 'label', 'netloc', 'url'],
|
| 25 |
+
# num_rows: 100000
|
| 26 |
+
# })
|
| 27 |
+
# })
|
| 28 |
+
|
| 29 |
+
# What's next?
|
| 30 |
+
# Train your model 🤖
|
| 31 |
+
# Profit 💰
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Changelog
|
| 35 |
+
- **v1.0.0:** Initial version
|
| 36 |
+
|
| 37 |
+
## Dataset Structure
|
| 38 |
+
|
| 39 |
+
### Data Instances
|
| 40 |
+
|
| 41 |
+
The following is an example sample from the dataset:
|
| 42 |
+
|
| 43 |
+
```json
|
| 44 |
+
{
|
| 45 |
+
"text": "Offshore staff HOUSTON \u2013 VAALCO Energy is looking to bring in a floating storage and offloading (FSO) unit at the Etame Marin oil field offshore Gabon. The company has signed a non-binding letter of intent with Omni Offshore Terminals to supply and operate the vessel at Etame for up to 11 years, following the expiry of the current FPSO Petr\u00f3leo Nautipa contract with BW Offshore in September 2022. Omni has provided a preliminary proposal for leasing and operating the FSO, which could reduce VAALCO's operating costs by 15-25%, compared with the current FPSO contract during the term of the proposed agreement. Maintaining the current FPSO beyond its contract or transitioning to a different FPSO, VAALCO added, would require substantial capex investments.",
|
| 46 |
+
"label": "positive",
|
| 47 |
+
"netloc": "www.offshore-mag.com",
|
| 48 |
+
"url": "https://www.offshore-mag.com/rigs-vessels/article/14202267/vaalco-contemplating-switch-to-fso-at-etame-offshore-gabon"
|
| 49 |
+
}
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
### Data Fields
|
| 53 |
+
|
| 54 |
+
- `text` (string): A text chunk from a document.
|
| 55 |
+
- `label` (string): The financial sentiment label of the text, sourced from LLMs and refined with active learning (an iterative relabeling process).
|
| 56 |
+
- `netloc` (string): The network location (domain) of the document.
|
| 57 |
+
- `url` (string): The URL of the document.
|
| 58 |
+
|
| 59 |
+
## Dataset creation
|
| 60 |
+
|
| 61 |
+
### Data source
|
| 62 |
+
The dataset was sampled from the NOSIBLE datafeeds product which provides web scale surveillance data to customers. NOSIBLE datafeeds are results for specific search queries and results are safe because they are sourced from search results from the NOSIBLE search engine, from which data is sourced exclusively from the public web.
|
| 63 |
+
|
| 64 |
+
### Relabeling algorithm
|
| 65 |
+
The dataset's label field was annotated from LLMs and refined using an active learning algorithm called relabeling.
|
| 66 |
+
|
| 67 |
+
The algorithm outline is as follows:
|
| 68 |
+
|
| 69 |
+
1. Hand label a candidate set of ~200 samples to use as a test bed to refine the prompt used by the LLM labelers to classify the text.
|
| 70 |
+
2. Label a set of 10k samples with LLM labelers:
|
| 71 |
+
- x-ai/grok-4-fast
|
| 72 |
+
- x-ai/grok-4-fast:thinking
|
| 73 |
+
- google/gemini-2.5-flash
|
| 74 |
+
- openai/gpt-5-nano
|
| 75 |
+
- openai/gpt-4.1-mini
|
| 76 |
+
- openai/gpt-oss-120b
|
| 77 |
+
- meta-llama/llama-4-maverick
|
| 78 |
+
- qwen/qwen3-32b
|
| 79 |
+
3. Train a linear model on the labels using the majority vote of the LLM labelers.
|
| 80 |
+
4. Iterative relabeling (active learning steps) to improve the label quality:
|
| 81 |
+
- Evaluate linear model's predictions over the samples.
|
| 82 |
+
- Find disagreements: samples where the LLM labelers agree on a label, but the model has predicted a different label.
|
| 83 |
+
- Consult a much larger LLM, the oracle, to evaluate the model's prediction and relabel the sample if it agrees with the LLM labels.
|
| 84 |
+
- Drop the worst performing LLM labeler's from the ensemble.
|
| 85 |
+
- Repeat the process with the remaining LLM labelers until the number of samples relabeled reaches 0.
|
| 86 |
+
- Store the refined relabeled dataset.
|
| 87 |
+
5. This is the final dataset used for training the NOSIBLE/financial-sentiment-v1.1-base model, which is a finetune.
|
| 88 |
+
|
| 89 |
+
## Additional information
|
| 90 |
+
|
| 91 |
+
## License
|
| 92 |
+
The dataset is released under the **Open Data Commons Attribution License (ODC-By) v1.0** [license](https://opendatacommons.org/licenses/by/1-0/).
|
| 93 |
+
|
| 94 |
+
## Attribution
|
| 95 |
+
- [NOSIBLE Inc](https://www.nosible.ai/) Team
|
| 96 |
+
|
| 97 |
+
## Citations
|
| 98 |
+
Coming soon, we're working on a white paper.
|