Papers › Constituency Parsing with a Self-Attentive Encoder

Constituency Parsing with a Self-Attentive Encoder

2 May 2018ACL 2018 7arXiv:1805.01052archive 2025-07-28

Nikita Kitaev, Dan Klein

We demonstrate that replacing an LSTM encoder with a self-attentive architecture can lead to improvements to a state-of-the-art discriminative constituency parser. The use of attention makes explicit the manner in which information is propagated between different locations in the sentence, which we use to both analyze our model and propose potential improvements. For example, we find that separating positional and content information in the encoder can lead to improved parsing accuracy. Additionally, we evaluate different approaches for lexical representation. Our parser achieves new state-of-the-art results for single models trained on the Penn Treebank: 93.55 F1 without the use of any external data, and 95.13 F1 when using pre-trained word representations. Our parser also outperforms the previous best-published accuracy figures on 8 of the 9 languages in the SPMRL dataset.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1805.01052")

Code

Syntology Ran 0 of 14 code samples harvested from 1 repository linked to this paper; 14 have no recorded run.

By repository: community (archive-listed): 14 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nikitakit/self-attentive-parser officialmentioned in papermentioned on GitHubtfMIT report
asadovsky/nn mentioned on GitHubtf report
napakalas/NLIMED mentioned on GitHubtf report
ringos/nfc-parser mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 0 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

14unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ringos/nfc-parser. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

arabic ringos/nfc-parser/src/transliterate.py community (archive-listed) unverified MIT (permissive) · c6fbc9f36f128a4d · report
collapse_unary_strip_pos ringos/nfc-parser/src/analysis/get_sibling.py community (archive-listed) unverified MIT (permissive) · bd029ebdc4c2a411 · report
evalb ringos/nfc-parser/src/evaluate.py community (archive-listed) unverified MIT (permissive) · 7186374092dc5b49 · report
format_elapsed ringos/nfc-parser/src/export.py community (archive-listed) unverified MIT (permissive) · d568621c7cfd96cc · report
get_labeled_spans ringos/nfc-parser/src/analysis/get_sibling.py community (archive-listed) unverified MIT (permissive) · 847edf90713bade6 · report
get_labeled_spans ringos/nfc-parser/src/benepar/decode_chart.py community (archive-listed) unverified MIT (permissive) · 7f1d42a1ee822236 · report
get_multi_ngram_pattern_children ringos/nfc-parser/src/analysis/get_pattern_constituent_pair.py community (archive-listed) unverified MIT (permissive) · 31b6275073ba81d5 · report
get_pattern_children ringos/nfc-parser/src/analysis/get_pattern_constituent_pair.py community (archive-listed) unverified MIT (permissive) · 59e93379f77df089 · report
hebrew ringos/nfc-parser/src/transliterate.py community (archive-listed) unverified MIT (permissive) · 98db1b220dd2ecb7 · report
load_compatitble_data ringos/nfc-parser/src/analysis/get_pattern_constituent_pair.py community (archive-listed) unverified MIT (permissive) · 2ed97e38f7090303 · report
load_trees ringos/nfc-parser/src/analysis/trees.py community (archive-listed) unverified MIT (permissive) · 79f8c62f9471a066 · report
load_trees_from_text ringos/nfc-parser/src/analysis/trees.py community (archive-listed) unverified MIT (permissive) · 7392b7fad2fd08a6 · report
pad_charts ringos/nfc-parser/src/benepar/decode_chart.py community (archive-listed) unverified MIT (permissive) · 5fa1c233f4e619bb · report
tree_from_str ringos/nfc-parser/src/analysis/trees.py community (archive-listed) unverified MIT (permissive) · 1be51ebb6a7c65f5 · report

Tasks

Constituency ParsingSentence

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Constituency Parsing CTB5 Kitaev etal. 2018 F1 score 87.43 #9 of 9 Archive leaderboard report
Constituency Parsing Penn Treebank Self-attentive encoder + ELMo F1 score 95.13 #15 of 27 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

LSTMSigmoid ActivationTanh Activation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections