﻿# WebQuestions: preserve entity answer sets when evaluating a language model

Understand WebQuestions entity-centered questions, answer collections, Freebase provenance and the mismatch between a knowledge-base task and text generation.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-webquestions-entity-answer-set/
Language: en

WebQuestions originates in question answering over Freebase, with many questions centered on a named entity. It is useful for examining whether a system identifies the intended relation and returns the right answer collection. Converting it to a text-generation benchmark requires preserving that collection rather than treating every example as an arbitrary single-string response.

## Keep the original task visible

The source research studies semantic parsing from question-answer supervision. A language model answering directly from its weights or retrieved text follows a different execution path from a parser querying a knowledge base. State the permitted knowledge source and evaluation protocol. Similar question wording does not make these systems equivalent experiments.

## Preserve collection-valued answers

A relation can return several entities. Keep all annotated answers and distinguish a true answer set from alternative spellings of one entity. For an illustrative question about an organization's founders, returning one correct person can still omit another required member. A single exact-match string cannot express this coverage issue without an explicitly designed serialization and scoring rule.

## Inspect the exported schema

TensorFlow Datasets exposes question, answers and URL fields, with answers represented as a sequence. Preserve the source association during conversion. Do not concatenate answers into a sentence and later split on punctuation without checking names that themselves contain punctuation. Inspect actual partition counts rather than relying only on a catalogue's descriptive headline.

## Treat historical facts as release-specific

The knowledge-base and question collection reflect their construction period. A current answer can differ from a historical relation value. Separate temporal disagreement from entity-linking or generation errors. If the experiment updates facts, label the revised dataset and retain the original answer record so a score change can be traced to the changed target.

## Evaluate the intended unit

Define entity matching, aliases, partial coverage and duplicate predictions before running the model. Keep official splits for a comparable benchmark result, with any local filtering documented. The SEMPRE implementation supplies original execution context, while a maintained loader supplies another concrete data representation. WebQuestions is valuable when the answer unit and knowledge-access policy remain explicit throughout conversion, retrieval and final scoring.

## Primary references

[WebQuestions original research](https://aclanthology.org/D13-1160/).

[SEMPRE author implementation](https://github.com/percyliang/sempre).

[TensorFlow WebQuestions schema](https://www.tensorflow.org/datasets/catalog/web_questions).

Related explanations: [label and output identity](/journal/cross-entropy-logits-target-indices/); [sources of model knowledge](/journal/parametric-retrieved-knowledge-conflict/).
