Skip to content

Systems and records

Dataset row count reconciliation: 9 published counts, 4 reproduce

By SourceX Editorial · Updated

10 sections

Short answer

Dataset row count reconciliation usually fails because the two sides counted different things, not because records went missing. Rerunning nine published counts in Google's Taskmaster corpus at a pinned commit, four reproduced, and only by switching between file records and distinct IDs. Ship a count manifest that pins each total's unit, path, key, filters, duplicate rule and version, and accept only totals a script can regenerate.

Checklist

Dataset row count

This page covers dataset row count reconciliation: 9 published counts, 4 reproduce.Illustrative

Key takeaways

  • Of nine dialog counts published for Google's Taskmaster corpus, four reproduce at commit d92cb6a, and only the written-dialog total matches under both file records and distinct IDs.
  • Most count disputes are definition disputes: records, distinct keys, merged content, child rows and physical lines are all defensible totals for the same files.
  • Git history separates version drift from definition drift: Taskmaster-3's README moved from 23,757 to 23,789 in 2021 while its data stayed at 23,757.
  • Split files can count examples, not parents: 18,016 of the 18,018 Taskmaster-3 dialogs with a dev row also have a train row.
  • A count manifest binds each total to a unit, path, key, duplicate rule, filters, split unit, version and generating script, and acceptance follows from rerunning it.

Why can't the buyer reproduce the vendor's row count?

Usually because the two sides counted different things, not because records went missing. A vendor's total can mean file records, distinct identifiers, conversations after duplicate content is merged, child rows after flattening or physical lines, and each is a defensible count of the same delivery. Until a number carries its unit, filters and nesting level, a mismatch cannot be sorted into loss, duplication or definition.

File standards leave room for exactly this. RFC 4180 says a CSV field containing line breaks, double quotes or commas should be enclosed in double quotes (section 2, item 6), so one record can span several physical lines and a line count overstates records. The W3C Model for Tabular Data and Metadata on the Web counts header rows through a header row count that defaults to one, alongside settings for skipped rows and blank rows, so two compliant parsers configured differently report different totals for one file.

The decision here is narrow: when a vendor's stated count and the buyer's recount disagree, is the gap a defect, a definition or a version problem, and what evidence settles it? Useful evidence is a count that a script regenerates from the delivered files at a pinned version, under rules written down before anyone looks at the result. The rest of this page tests that idea on a public corpus whose counts are stated in prose.

Nine published counts, rerun at one pinned commit

We reran the nine headline counts stated in the READMEs of Taskmaster, Google's public corpus of task-oriented conversations (ordering pizza and coffee, booking movie tickets, setting up auto repair appointments), released under CC BY 4.0, at commit d92cb6a of 19 March 2024. Each total was recounted two ways: file records, meaning elements of each data file's top-level JSON array, and distinct conversation IDs.

Four of the nine reproduced, and only the written-dialog total matched under both units. Taskmaster-1's 13,215 dialogs and 5,507 spoken dialogs equal the file records but not the distinct IDs; Taskmaster-2's 17,289 equals the distinct IDs but not the 17,304 records. The other five reproduce under neither unit, including the root README's claim of over 55,000 dialogs across the three datasets it names, which hold 54,276 records and 54,256 distinct IDs.

The ledger below sets each published figure beside both recounts; every rule behind the cells is in the methods note at the end.

Nine published counts, rerun at one pinned commit
Published countStated inFile recordsDistinct IDsVerdict
Over 55,000 dialogs, three datasetsRoot README54,27654,256Not reproduced
13,215 Taskmaster-1 dialogsTM-1 README13,21513,210Records only
5,507 spoken dialogsTM-1 README5,5075,502Records only
7,708 written dialogsTM-1 README7,7087,708Both units
146 unannotated dialogsTM-1 README90 with no segmentNot counted by IDNot reproduced
17,289 Taskmaster-2 dialogsTM-2 README17,30417,289IDs only
23,789 Taskmaster-3 dialogsTM-3 README23,75723,757Not reproduced
6,500 Taskmaster-4 dialogsTM-4 README3,7103,710Not reproduced
3,000 Taskmaster-4 reward examplesTM-4 README3,228 rows3,228Not reproduced
A ledger of nine published Taskmaster dialog counts with a match or miss mark under file records and under distinct IDs, one cell not counted: three match on records, two on IDs, four reproduce under at least one unit and five under neither.
Nine published counts rerun at commit d92cb6a under two units. Source: Taskmaster repository, 2024.

Records, IDs and copies: where the first gap opens

The split between records and IDs comes from identifiers that repeat with different content behind them. Taskmaster-2's seven per-domain counts each equal the distinct IDs in their file, but four of the seven files hold extra records: movies 9, sports 3, hotels 2 and music 1. Those 15 conversation IDs each sit on two records: for 9 of them the utterance text is identical and other fields differ, and for 6 the conversation text itself differs. In Taskmaster-1's spoken file, one ID appears on six records whose utterance counts run from 49 to 57, and 4 records hold no utterances at all.

Every counting choice hides something. Count records and the Taskmaster-2 total misses its README; deduplicate on ID and a loader silently drops 20 records (5 in Taskmaster-1, 15 in Taskmaster-2), several of them different conversations. A third unit, distinct content, moves the other way: in Taskmaster-3, 168 different IDs fall into 46 groups whose speaker-and-text sequences are identical, so an ID count there overstates the number of distinct conversations.

The repair is not a better guess at what the publisher meant. It is a key rule and a content rule written beside every total, so a reader knows whether 17,289 counts records, identifiers or conversations, and which copy survives when two records share a key.

A published count that changed while the data did not

Some gaps are version problems, and git history separates them from definition problems. The Taskmaster-3 README said 24,083 dialogs when it was created on 21 October 2020, 23,757 from 22 October 2020 and 23,789 from 19 May 2021 (UTC commit times). The data folder arrived in one commit at 22:19 UTC on 22 October 2020, and no later commit touches it. Every file still holds 23,757 dialogs, the figure the README carried for seven months.

The higher number has a source: the TicketTalk paper at ACL 2021, which describes the dataset, reports 23,789 annotated conversations. The prose was brought into line with the paper; the release was not brought into line with either. The root README's 'over 55,000' has the same shape. It entered on 22 October 2020, when the three dataset READMEs summed to 54,261; they now sum to 54,293, and the files hold 54,276 records and 54,256 distinct IDs, short of 55,000 under either unit.

Taskmaster-4, added in March 2024, shows the gap from the other side. Its README describes 6,500 coffee-ordering dialogs and 3,000 reward examples; the folder holds 3,710 dialogs and 3,228 reward rows, and none of the reward rows' conversation IDs appear among those dialogs. The root README still names three datasets. A count stated in prose drifts; a count bound to a commit and a script can be rechecked by anyone.

One corpus, five defensible row counts: the nesting problem

Flattening fixes the row count before a single record is lost. The three datasets the root README names hold 54,276 dialog records, 1,125,680 utterances, 1,030,054 annotated segments and 1,120,484 annotation labels, and their JSON files contain 19,258,291 physical lines. Each is a correct answer to 'how many rows', for a different row.

The nesting also shifts inside the corpus. Taskmaster-1 to -3 store labels on text segments inside each utterance; Taskmaster-4 stores 61,505 labels directly on utterances and has only 82 segments, so a rule that calls a dialog unannotated when it has no segment would flag 3,628 of its 3,710 dialogs. The Taskmaster-1 README documents the fields conversationId, instructionId, startIndex and endIndex, while both Taskmaster-1 data files use conversation_id, instruction_id, start_index and end_index throughout, so a loader keyed on the documented names finds zero IDs.

Labels are not entities either. The Taskmaster-1 README says each conversation was annotated by two workers and both annotations are included, so a segment count is a count of annotation work, not of distinct mentions. Physical layout matters once the data is exported: 13 Taskmaster-1 utterances contain line breaks, and 66 Taskmaster-3 utterances are empty or whitespace only. Written to CSV without quoting, the first group inflates a line count; dropped by a cleaning step, the second shrinks an utterance count, and the dialog total stays the same in both cases.

Splits that count examples, not dialogs

Split files carry their own unit, and it may not be the one a buyer assumes. Taskmaster-1's splits list dialog IDs, 6,168 train, 770 dev and 770 test, which together cover all 7,708 written dialogs with no overlap. Taskmaster-3's splits are tab-separated example files, 281,517 train rows, 35,191 dev and 35,189 test, each row holding an input with its preceding context, a target and the ID of the dialog it came from.

Read at dialog level, those splits overlap almost completely: 18,016 of the 18,018 dialogs with a dev row also have a train row, 17,902 of the 17,904 test dialogs do too, and 788 dialogs appear in no split. That design may suit turn-level training, but a buyer who reports dev dialogs, or plans a dialog-level held-out test, inherits sets that share conversations. Even the join needs care: every split row ends in a carriage return, so none of the raw ID strings match a dialog until it is stripped.

A count manifest for a split therefore names its unit, example or parent, the key that links each example to its parent and the overlap rule, so a held-out count means the same thing on both sides of the deal.

Does a file that loads, or a matching checksum, settle the count?

No. Every Taskmaster JSON file parsed cleanly, none began with a byte-order mark, all 54,256 IDs in the three named datasets follow one dlg-plus-UUID pattern and no two collide when case is ignored. A checksum would confirm every byte. None of that tells a buyer which unit a total counts, which copy wins a repeated key or whether a split shares parents with another.

The reward files make the point sharply. Taskmaster-3's reward folder, added in March 2024 and not mentioned in its README, holds 3,667 rows whose conversation IDs use a different format and match no dialog in any of the four datasets. The rows load cleanly and link nowhere, so a row count includes all of them and a joined count includes none.

The strongest objection is that READMEs often describe planned or pre-filtering releases, and careful users recount anyway. That is the argument for a machine-checkable definition, not against one: for most of these totals the README was the only statement of size, and a peer-reviewed paper carries one total the released files do not reproduce. A buyer cannot recount against a definition that was never written down.

The count manifest: eight fields that make a total reproducible

Ship every stated total with a count manifest: one entry per number, specific enough that a script regenerates it. Accept a delivery when every manifest total regenerates exactly, or within a stated tolerance with a reason code; hold it when a total has no unit or no generating rule; reject it when keys fail to join after the declared normalization, because then no count can be tested.

The eight fields below map to the failures found above, with the Taskmaster case each one would have caught:

The count manifest: eight fields that make a total reproducible
FieldWhat it pinsTaskmaster case it catchesAcceptance check
UnitWhat one counted row is: record, distinct key, merged content or child row17,289 matches IDs, not the 17,304 recordsA unit is written beside every total
Path and nesting levelWhere the unit sits in the file and how deep the count reachesLabels on segments in TM-1 to TM-3, on utterances in TM-4Counts come from a path rule, not inspection
Key and normalizationWhich field identifies a row and how it is cleaned before comparisonSplit IDs end in a carriage return and join to nothing rawEvery key joins after the declared cleaning
Duplicate ruleWhich copy survives a repeated key, and whether identical content merges20 repeated-ID records; 168 IDs sharing one textRecords, keys and content groups reported together
FiltersEach exclusion, its rule and the rows it removed90 dialogs with no segment against 146 statedEvery filter prints what it drops
Split unit and overlapWhether splits hold examples or parents, and the leakage rule18,016 of 18,018 dev dialogs also in trainParent-level overlap is counted per split pair
Version bindingCommit or release, file hashes and the date countedREADME moved to 23,789; files still hold 23,757Counts regenerate at the pinned version
Generator and outputThe script behind each total and its saved outputProse totals with no script behind themA rerun matches the saved output exactly

Reproducibility checklist for a count-ready data request

A buyer can ask for these definitions before any records are prepared. SourceX sources datasets on request rather than holding them in stock, and a buyer's request already describes scope, volume, language, format, timing and licensing needs. Adding the unit you will count, the key, the duplicate and split rules and the acceptance script you will run means the supplier's total and your recount are defined the same way from the start. This page states nothing about SourceX's own delivery formats, tooling or timing.

Before signing acceptance of any delivery, check each item:

Checklist · 8 items

  1. Every stated total names its unit, file path, key and duplicate rule.
  2. Keys are compared after a declared normalization of whitespace, carriage returns, case and numeric formats, and every foreign key joins.
  3. Records, distinct keys and distinct content are reported side by side wherever they differ.
  4. Each filter prints the rows it removed, with a reason code a reviewer can read.
  5. Split files state whether they hold examples or parents and report parent-level overlap for every split pair.
  6. Files the documentation does not mention are listed with their row counts and whether their keys join.
  7. Field names in the documentation match the field names in the files.
  8. Counts regenerate at a pinned commit or release from a script the buyer can run, and the outputs match exactly.

0 of 8 ticked. Tick each item as you go.

Methods note: commit, scripts and every counting rule

Data: github.com/google-research-datasets/Taskmaster at commit d92cb6af3005f1dc09c39e75e7daf4a04905e00b (committed 19 March 2024), read on 28 October 2026 from a sparse clone with full blobless history. Scripts: bin/xs0946_taskmaster_counts.py and bin/xs0946_count_history.sh in this batch's scratch folder, kept with their printed outputs for recount; they read files and git history only and run no code from the repository.

Rules as applied: files are read as bytes, and a UTF-8 byte-order mark would be removed before parsing (none of the 93 files read has one). A file record is one element of a data file's top-level JSON array. A dialog ID is the conversation_id value, stripped of surrounding whitespace and compared case-sensitively; the documented key names (conversationId, instructionId, startIndex, endIndex) were counted as quoted strings in both Taskmaster-1 files and occur zero times, and case-folded collisions across the three named datasets were checked separately (none). An utterance, segment or label is one element of the utterances, segments or annotations array, a missing segments key counting as zero. An unannotated dialog has no segment in any utterance, so the 90 include the 4 dialogs with no utterances. An empty utterance has missing or whitespace-only text; a line break is a newline or carriage return inside non-empty text.

Distinct IDs are counted within each dataset (for Taskmaster-2 across its seven files, which share no ID), and the corpus figure counts distinct IDs across the three named datasets. Repeated IDs are compared on full JSON content and on their sequence of speaker and stripped text. Content groups are distinct IDs sharing one speaker-and-stripped-text sequence, within one file for Taskmaster-1 and -2 and across all 20 files for Taskmaster-3; dialogs without utterances are left out of them. Physical lines are newline bytes, as wc -l counts them. Taskmaster-1 split lines are stripped, a trailing comma removed and blank lines skipped; Taskmaster-3 split rows are newline-terminated lines with the dialog ID in the third tab-separated field, compared raw and after stripping whitespace, which removes the carriage return; every part file ends with a newline, so joining parts with cat merges no rows. The five unit totals cover Taskmaster-1 to -3 data files only, without sample.json, reward files or Taskmaster-4. The history script prints the count sentence at every commit that changed each README, with UTC commit times; the repository has 5 merge commits, and the Taskmaster-3 data folder was touched by one non-merge commit.

Not measured: text or label quality, whether the README's 146 used a different definition from ours, and any copy of Taskmaster outside GitHub. The TicketTalk and Taskmaster-1 paper counts were read through search excerpts of their ACL Anthology pages. The verdicts describe this commit only.

Frequently asked questions

What is dataset row count reconciliation?

It is the check that a stated record total and an independent recount describe the same rows. It succeeds when both sides use the same unit, file path, key, filters and duplicate rule at the same version, and every remaining difference has a written reason. Without those definitions a matching number can be a coincidence and a mismatch can be a definition rather than a defect.

Why does wc -l give a different number from my dataset loader?

wc -l counts newline bytes, not records. Pretty-printed JSON spreads one record over many lines, and Taskmaster's three main datasets have 19,258,291 lines for 54,276 dialog records. RFC 4180 also allows line breaks inside quoted CSV fields, so count with a parser that understands the format.

Should duplicates be removed before a delivery is counted?

Report both views first. Count records, distinct keys and distinct content side by side, then state which one the contract total refers to and which copy survives a repeated key. In Taskmaster-2, deduplicating on ID removes 15 records, and in 6 of those cases the dropped record holds different conversation text.

How do train, dev and test splits change row counts?

Split files may count examples rather than parent records. Taskmaster-3's split files hold 351,897 example rows, and at dialog level 18,016 of the 18,018 dev dialogs also have a train row. State the split unit and report parent-level overlap before treating any split count as a held-out set.

Does a matching checksum prove the row count is right?

No. A checksum proves the bytes equal a reference file; it cannot say which unit a total counts, whether keys join or whether a filter ran. A delivery can pass every checksum and still disagree with its stated count, as Taskmaster's reward files show by loading cleanly while matching no dialog.

Sources

  • The Taskmaster root README describes three datasets comprising over 55,000 spoken and written task-oriented dialogs. Source
  • The Taskmaster-1 README states 13,215 dialogs (5,507 spoken, 7,708 written), 146 unannotated dialogs, two annotators per conversation, CC BY 4.0, and documents camelCase field names. Source
  • The Taskmaster-2 README states 17,289 dialogs in seven domains, with a count for each domain file. Source
  • The Taskmaster-3 README states 23,789 movie ticketing dialogs and describes the dialog structure. Source
  • The Taskmaster-4 README states 6,500 coffee ordering dialogs and 3,000 reward examples. Source
  • Taskmaster-3 train, dev and test splits are published as multiple TSV parts to be concatenated. Source
  • The Taskmaster-3 README commit history shows the dialog count changing from 24,083 to 23,757 in October 2020 and to 23,789 in May 2021. Source
  • The TicketTalk paper (ACL-IJCNLP 2021) describes the movie ticketing dataset as 23,789 annotated conversations. Source
  • The Taskmaster-1 paper (EMNLP-IJCNLP 2019) describes an initial release of 13,215 task-based dialogs in six domains. Source
  • RFC 4180 section 2 says fields containing line breaks, double quotes or commas should be enclosed in double quotes. Source
  • The W3C tabular data model sets a header row count that defaults to one, plus skip-rows and skip-blank-rows settings that change what counts as a row. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies