Penn Treebank

Penn Treebank

The reference corpus for English part-of-speech tagging and constituency parsing; it gave us the best-known tag set (NN, VB, JJ…) and the standard split of sections 02–21 for training and 23 for testing.

Syntax treeEnglish
TypeSyntax tree
LanguageEnglish
Year1993
OrganisationUniversity of Pennsylvania
SizeAbout one million syntactically annotated words from the Wall Street Journal, with 45 part-of-speech tags
LicenceLDC licence (paid for non-members)
AvailabilityLDC licence

What you need to know

  • Also a historical benchmark for language modelling (Mikolov's preprocessed version with a 10,000-word vocabulary).
  • Its constituency trees were later converted to dependencies to train parsers.

What does it contain?

Each sentence is paired with a bracketed constituency tree, such as:

(S (NP (DT The) (NN cat)) (VP (VBD sat)))

Part-of-speech tags and syntactic relations are derived from these trees. Its standard split became a common language: when you read "97% accuracy on PTB", it usually means section 23 of the Wall Street Journal.

A methodological note

All the texts come from late-1980s financial news, so a model trained on it degrades on other domains (tweets, medicine). This is a classic example of domain shift (Domain Shift).

References

  1. Marcus, M. P., Santorini, B., & Marcinkiewicz, M. A. (1993). Building a Large Annotated Corpus of English: The Penn Treebank. Computational Linguistics 19(2) aclanthology.org/J93-2004/

Check the dataset's license and terms of use at its official source before publishing or commercial use; some datasets are available for research only.