Datasets:
|
Download README.md from adhikasp/hackernews-annotation: direct link, hf CLI and curl.
- Browser
- Download file 12.8 kB
-
https://huggingface.co/datasets/adhikasp/hackernews-annotation/resolve/main/README.md
- Command line
-
hf download hf://datasets/adhikasp/hackernews-annotation/README.md
-
curl -L -o README.md https://huggingface.co/datasets/adhikasp/hackernews-annotation/resolve/main/README.md
12.8 kB
| license: odc-by | |
| language: [en] | |
| pretty_name: Hacker News comment annotations (24 LLM-judge questions) | |
| size_categories: [100M<n<1B] | |
| task_categories: [text-classification] | |
| tags: [hacker-news, annotations, llm-as-judge, sentiment, stance, toxicity, parquet] | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: data/*/*.parquet | |
| # Hacker News comment annotations | |
| **446M labels for 18.6M Hacker News comments.** Every comment is answered by an LLM judge on **24 typed questions**: what the comment does, how hostile or sarcastic it is, which topic it is about, whether it is for or against the thread subject, which emotions it shows, where it stands on markets vs regulation, and more. | |
| This dataset holds **only the labels, keyed by HN item `id`**. No comment text, no usernames. Join it to the companion dataset **[`adhikasp/hackernews`](https://huggingface.co/datasets/adhikasp/hackernews)** (every HN item, monthly parquet, same `id` and the same year partitioning) to get text, authors, parents and timestamps. | |
| ## Quick start | |
| Everything below runs straight from the Hub with DuckDB, no download needed. | |
| **1. Look at the labels for one comment** | |
| ```sql | |
| select qid, kind, num, label, probs | |
| from 'hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet' | |
| where id = 42559964; -- any comment id from 2025 | |
| ``` | |
| **2. Join with the text: the 10 most hostile comments of 2025** | |
| ```sql | |
| select a.num as hostility, h.by, left(h.text, 200) as text | |
| from 'hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet' a | |
| join 'hf://datasets/adhikasp/hackernews/data/year=2025/*/data.parquet' h using (id) | |
| where a.qid = 'hostility' | |
| order by a.num desc limit 10; | |
| ``` | |
| **3. What do people talk about, by year?** (a `choice` question: the winning option is in `label`) | |
| ```sql | |
| select year, label as topic, count(*) n | |
| from 'hf://datasets/adhikasp/hackernews-annotation/data/*/*.parquet' | |
| where qid = 'topic' and year <> '2007-2021' -- year is text because of the sample folder | |
| group by all order by year, n desc; | |
| ``` | |
| **4. Make it wide: one row per comment, one column per question** | |
| ```sql | |
| pivot ( | |
| select id, qid, num from 'hf://datasets/adhikasp/hackernews-annotation/data/year=2026/*.parquet' | |
| where kind in ('noul','score') | |
| ) on qid using first(num) group by id; | |
| ``` | |
| Pandas / Polars work the same way (`pl.scan_parquet("hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet")`). | |
| ## Coverage | |
| | Comment years | Annotated comments | Share of all HN comments | | |
| |---|---|---| | |
| | **2022 to 2026-11** (`year=2022` ... `year=2026`) | ~17.9M | ~95% per year. The rest: items whose thread root could not be resolved (~1%) and a few others | | |
| | **2007 to 2021** (`year=2007-2021`) | ~0.65M | ~2.5% per year (2007: 14%, 2008: 4%) | | |
| **The 2007-2021 part is a sample, not a census, and it is not random.** It is drawn from users with 40+ comments before 2024, stratified by year and by reply vs top-level (about 3% per year, at least 10k per year), so it over-represents heavy commenters. More coverage will arrive as new files in later versions; existing files are never rewritten. | |
| ## Schema (long format: one row per comment and question) | |
| | column | type | meaning | | |
| |---|---|---| | |
| | `id` | int64 | HN item id. Join key to `adhikasp/hackernews` | | |
| | `qid` | string | question id, listed below | | |
| | `kind` | string | `noul` (yes/no), `score` (ordinal scale), `choice` (categorical) | | |
| | `num` | float32 | `noul`: probability the answer is **yes** (0..1). `score`: position on the scale, 0 to N-1, interpolated (hostility 1.5 = between "neutral" and "mildly rude"). `choice`: null | | |
| | `label` | string | `choice` only: the winning option key. Otherwise null | | |
| | `probs` | list<float32> | `choice` and `score`: probability of each option, in the order listed below. `noul`: null | | |
| | `conf` | float32 | judge confidence where it gave one | | |
| | `judge` | string | model that answered: `perplexity_pplx-decider-v1.3_free` | | |
| | `qset` | string | question-set version: `v1` | | |
| | `year` | (from path) | the comment's year, same partitioning as `adhikasp/hackernews` (`2007-2021` for the sample) | | |
| Rows are sorted by `id, qid` within each year and zstd-compressed. A new judge or question set will appear as additional rows or files: filter on `judge` and `qset` if you mix versions. The full definitions are also in `qset_v1.json`. | |
| ## The 24 questions (`qset v1`) | |
| `yes/no` questions return the probability of "yes" in `num`. `scale` questions return a position 0..N-1 in `num` and per-option probabilities in `probs`. `choice` questions return the winning option in `label` and all option probabilities in `probs` (same order as the options listed). | |
| ### Discourse moves | |
| - **`rhetorical_move`** (choice): What is the main thing this comment does? | |
| - Options: `asserts` (States a claim or opinion); `rebuts` (Rebuts or corrects a previous claim); `asks` (Asks a question); `anecdote` (Tells a personal story or experience); `joke` (Makes a joke or quip); `shares_source` (Shares a link, quote or source); `other` (Something else) | |
| - **`first_hand_experience`** (yes/no): Does the author describe something they personally did, built, saw or experienced (not a general claim)? | |
| - **`cites_concrete_fact`** (yes/no): Does the comment contain a specific, checkable fact, number, date, name or quoted source? | |
| - **`claims_expertise`** (yes/no): Does the author invoke their own professional expertise, job or field experience as a reason to be believed? | |
| - **`makes_prediction`** (yes/no): Does the author predict what will happen in the future? | |
| - **`concedes`** (yes/no): Does the author concede a point, admit they were wrong, or say they changed their mind? | |
| - **`genuine_question`** (yes/no): Is the author sincerely asking for information (not a rhetorical question)? | |
| - **`disagrees_with_parent`** (yes/no): Is the author disagreeing with, or pushing back on, the parent comment (or the article if there is no parent)? | |
| ### Tone and civility | |
| - **`hostility`** (scale): How hostile is the tone toward other people (not toward ideas or companies)? | |
| - Options: 0: Courteous or friendly | 1: Neutral | 2: Mildly rude or dismissive | 3: Hostile, insulting or contemptuous | |
| - **`sarcasm`** (yes/no): Is the comment sarcastic, mocking or ironic? | |
| - **`personal_attack`** (yes/no): Does the comment attack the person it replies to (their intelligence, honesty, motives or character) instead of their argument? | |
| - **`condescension`** (yes/no): Is the author condescending, e.g. implying the other person doesn't understand or hasn't thought it through? | |
| - **`charitable_to_parent`** (yes/no): Does the author acknowledge merit in the parent comment or restate it fairly before responding? | |
| ### Topic and stance | |
| - **`topic`** (choice): Which theme is this comment mainly about? | |
| - Options: `ai_ml` (AI, LLMs, machine learning); `software_eng` (Software engineering practice, tools, architecture); `programming_languages` (Programming languages and compilers); `security_privacy` (Security, privacy, surveillance); `big_tech` (Big tech companies and their products); `startups_vc` (Startups, funding, founders); `hardware` (Hardware, chips, devices); `os_open_source` (Operating systems, Linux, open source); `web_internet` (Web, browsers, internet infrastructure); `science_math` (Science, math, space); `health_bio` (Health, medicine, biology); `finance_crypto` (Finance, crypto, markets); `us_politics` (US politics and government); `world_politics_war` (International politics, war, geopolitics); `law_regulation` (Law, courts, regulation, copyright); `labor_careers` (Jobs, careers, layoffs, hiring, remote work); `economics` (Economics, housing, cost of living); `energy_climate` (Energy, climate, transport); `education` (Education and learning); `media_culture` (Media, culture, games, entertainment); `hn_meta` (About Hacker News or the discussion itself); `personal_life` (Personal life, relationships, wellbeing); `other` (Anything else) | |
| - **`stance_toward_thread_subject`** (choice): What is the author's stance toward the main subject of the thread (the story title)? Choose none if neutral, factual or off-topic. | |
| - Options: `against` (Critical of or opposed to the subject); `for` (Supportive of or positive about the subject); `none` (No clear stance) | |
| ### Emotion | |
| - **`fear_or_worry`** (yes/no): Does the author express fear, worry or alarm about consequences? | |
| - **`anger`** (yes/no): Does the author express anger or outrage? | |
| - **`enthusiasm`** (yes/no): Does the author express excitement or enthusiasm? | |
| - **`cynicism`** (yes/no): Does the author express cynicism, resignation or distrust of institutions or companies? | |
| ### Worldview | |
| - **`expresses_policy_view`** (yes/no): Does the author take a position on government policy, regulation or the role of markets? | |
| - **`market_vs_regulation`** (scale): Where does the author stand on markets versus government intervention? (Only meaningful if they take a position.) | |
| - Options: 0: Strongly favours regulation or government action | 1: Leans toward regulation | 2: Balanced or unclear | 3: Leans toward free markets | 4: Strongly favours free markets | |
| - **`tech_outlook`** (scale): How optimistic is the author about technology's effect on society? (Only meaningful if they take a position.) | |
| - Options: 0: Very pessimistic | 1: Somewhat pessimistic | 2: Mixed or neutral | 3: Somewhat optimistic | 4: Very optimistic | |
| - **`blame_target`** (choice): If the author assigns blame for a problem, who or what is blamed? | |
| - Options: `individuals` (Individual people); `companies` (Companies or executives); `government` (Government or politicians); `technology` (The technology itself); `society_culture` (Society, culture or incentives in general); `none` (No blame assigned) | |
| - **`us_vs_them_language`** (yes/no): Does the author talk about a group as 'they/these people' (e.g. tech bros, boomers, HN, Americans, devs) in a way that sets up in-group versus out-group? | |
| ## How the labels were made | |
| - **Judge: `perplexity/pplx-decider-v1.3`** (free tier), served through the OpenRouter **Decisions API**. It is a model built for typed decisions: you send a text and typed questions (yes/no, scale, choice) and get calibrated probabilities back instead of free text. All 24 questions are asked in **one call per comment**. | |
| - **What the judge sees** (recipe `ctx_v1`): the thread title, the **parent comment** (first 500 characters, "none" for top-level comments) and the **comment itself** (first 1200 characters). Questions like `disagrees_with_parent` and `charitable_to_parent` are only meaningful for replies. | |
| - Question-set hash `2d968cfd1b34`. The set is frozen: a changed or new question becomes `v2`, never an edit to `v1`. | |
| ## How reliable is it | |
| Checked by hand on a small gold set (68 stratified comments, 2024-2026, read by the author's AI assistant) plus spot checks of extreme scores. This is directional validation, not a human-annotated benchmark. | |
| - Asking all 24 questions in one call vs one question per call gives the **same answer 88-100% of the time** on every question (lowest: `topic` 88%, `cites_concrete_fact` 91%, `stance_toward_thread_subject` 91%, `rhetorical_move` 93%), so there is no meaningful cross-question contamination. | |
| - **Looked reliable:** `rhetorical_move`, `genuine_question`, `first_hand_experience`, `disagrees_with_parent`, `sarcasm`, `hostility`, `claims_expertise`. | |
| - **Use with caution:** `cites_concrete_fact` over-fires on opinions (use `num > 0.9`), `concedes` (1 of 4 positives was wrong), `topic` (~85%), `stance_toward_thread_subject` (ambiguous in replies), `anger` (mild irritation scores high). | |
| - **Extremes are validated, mid-range is not** for `us_vs_them_language`, `fear_or_worry`, `cynicism`, `market_vs_regulation` and `tech_outlook` (4 of each extreme checked, all matched). `market_vs_regulation`, `tech_outlook` and `blame_target` only make sense where `expresses_policy_view` is high (rule of thumb `num > 0.8`). | |
| - **Validated on 2024-2026 comments only.** Labels on 2007-2021 comments are untested, since language and norms drifted. | |
| - These are **model labels, not human labels**. Use levels as relative (compare groups, years, topics), not as absolute truth. Full notes in `qset_v1.validation.json`. | |
| ## Ideas | |
| Tone and civility over time, which topics attract hostility, how stance toward AI differs between groups of commenters, how often people concede a point, who asks genuine questions, how fear and enthusiasm move with news cycles. | |
| ## License and source | |
| ODC-By, matching the companion dataset. Hacker News content belongs to its authors and Y Combinator; this dataset contains only derived labels. Pipeline (comment framing, sampling, annotation) is the author's `hn-annotate` project. | |