Papers › Parsing as Pretraining

Parsing as Pretraining

5 Feb 2020arXiv:2002.01685archive 2025-07-28

David Vilares, Michalina Strzyz, Anders Søgaard, Carlos Gómez-Rodríguez

Recent analyses suggest that encoders pretrained for language modeling capture certain morpho-syntactic structure. However, probing frameworks for word vectors still do not report results on standard setups such as constituent and dependency parsing. This paper addresses this problem and does full parsing (on English) relying only on pretraining architectures -- and no decoding. We first cast constituent and dependency parsing as sequence tagging. We then use a single feed-forward layer to directly map word vectors to labels that encode a linearized tree. This is used to: (i) see how far we can reach on syntax modelling with just pretrained encoders, and (ii) shed some light about the syntax-sensitivity of different word vectors (by freezing the weights of the pretraining network during training). For evaluation, we use bracketing F1-score and LAS, and analyze in-depth differences across representations for span lengths and dependency displacements. The overall results surpass existing sequence tagging parsers on the PTB (93.5%) and end-to-end EN-EWT UD (78.8%).

PaperPDFCodeCode Syntology ran

In Syntology 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="2002.01685")

Code

Syntology Ran 1 of 30 code samples harvested from 2 repositories linked to this paper; 29 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: official repository: 13 samples from 1 repository, 1 ran; found in paper text by Syntology: 17 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.

aghie/parsing-as-pretraining officialmentioned in paperpytorchMIT 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

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

1ran · our draft was wrong
29unverified

Licence: 16 of the 30 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

log_sum_exp aghie/parsing-as-pretraining/NCRFpp/model/crf.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 8e960fbb64668568 · report
accuracy aghie/parsing-as-pretraining/run_token_classifier.py official repository unverified MIT (permissive) · b53cb159746bdff2 · report
convert_examples_to_features aghie/parsing-as-pretraining/run_token_classifier.py official repository unverified MIT (permissive) · 20541be1e49e8caf · report
dependency_displacements aghie/parsing-as-pretraining/evaluate_dependencies.py official repository unverified MIT (permissive) · afa29dda7e74e00a · report
evaluate aghie/parsing-as-pretraining/dep2labels/conll17_ud_eval.py official repository unverified MIT (permissive) · cb5ea19799e31ba8 · report
get_tree_spans aghie/parsing-as-pretraining/evaluate_spans.py official repository unverified MIT (permissive) · de7ea09d38e57ab9 · report
load_conllu aghie/parsing-as-pretraining/dep2labels/conll17_ud_eval.py official repository unverified MIT (permissive) · 6f11534db6a06f8e · report
load_deprel_weights aghie/parsing-as-pretraining/dep2labels/conll17_ud_eval.py official repository unverified MIT (permissive) · ce63212f8cdd9a1a · report
model2legends aghie/parsing-as-pretraining/evaluate_dependencies.py official repository unverified MIT (permissive) · f22a4a58bed5e5c4 · report
performance_on_non_terminals aghie/parsing-as-pretraining/evaluate_spans.py official repository unverified MIT (permissive) · 3f7b95f09ac99a1c · report
performance_on_span_len aghie/parsing-as-pretraining/evaluate_spans.py official repository unverified MIT (permissive) · f97940275212bbdd · report
posprocess_labels aghie/parsing-as-pretraining/run_token_classifier.py official repository unverified MIT (permissive) · 633d6d0e2a2bc67b · report
word_relations aghie/parsing-as-pretraining/evaluate_dependencies.py official repository unverified MIT (permissive) · 2d5c6bba2d4b0bfc · report
apply_chunking_to_forward huggingface/pytorch-pretrained-BERT/src/transformers/pytorch_utils.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 6921551bf74e9179 · report
convert_checkpoint_to_pytorch huggingface/pytorch-pretrained-BERT/src/transformers/models/bert/convert_bert_token_dropping_original_tf2_checkpoint_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 5667539047103cbb · report
convert_old_keys_to_new_keys huggingface/pytorch-pretrained-BERT/src/transformers/models/aimv2/convert_aimv2_original_pytorch_to_hf.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 4d50cf32a98739b3 · report
convert_state_dict huggingface/pytorch-pretrained-BERT/src/transformers/models/audio_spectrogram_transformer/convert_audio_spectrogram_transformer_original_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 4855bdca41688f99 · report
create_rename_keys huggingface/pytorch-pretrained-BERT/src/transformers/models/beit/convert_beit_unilm_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · c968c3df370ea581 · report
get_audio_spectrogram_transformer_config huggingface/pytorch-pretrained-BERT/src/transformers/models/audio_spectrogram_transformer/convert_audio_spectrogram_transformer_original_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 12e92107dcde382b · report
get_new_dict huggingface/pytorch-pretrained-BERT/src/transformers/models/visual_bert/convert_visual_bert_original_pytorch_checkpoint_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · c79f0bd00e55eba0 · report
load_original_state_dict huggingface/pytorch-pretrained-BERT/src/transformers/models/aimv2/convert_aimv2_original_pytorch_to_hf.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 90fd642869f21de7 · report
load_state_dict huggingface/pytorch-pretrained-BERT/src/transformers/models/visual_bert/convert_visual_bert_original_pytorch_checkpoint_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 766143fdc27ade86 · report
load_tf2_weights_in_bert huggingface/pytorch-pretrained-BERT/src/transformers/models/bert/convert_bert_original_tf2_checkpoint_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 1a208abd5c3cf8fe · report
load_xsum_checkpoint huggingface/pytorch-pretrained-BERT/src/transformers/models/bart/convert_bart_original_pytorch_checkpoint_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 5ef841f72417ff20 · report
make_linear_from_emb huggingface/pytorch-pretrained-BERT/src/transformers/models/bart/convert_bart_original_pytorch_checkpoint_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 5301174099bfa9fb · report
prune_linear_layer huggingface/pytorch-pretrained-BERT/src/transformers/pytorch_utils.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 24ece331635f4b38 · report
read_field huggingface/pytorch-pretrained-BERT/src/transformers/modeling_gguf_pytorch_utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9aeec6efae4fb215 · report
rename_key huggingface/pytorch-pretrained-BERT/src/transformers/models/audio_spectrogram_transformer/convert_audio_spectrogram_transformer_original_to_pytorch.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · a34730fcf1a8bed8 · report
softmax_backward_data huggingface/pytorch-pretrained-BERT/src/transformers/pytorch_utils.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · be3bebdd7de293b6 · report
split_qkv_tensor huggingface/pytorch-pretrained-BERT/src/transformers/models/aimv2/convert_aimv2_original_pytorch_to_hf.py found in paper text by Syntology unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 71fbe82c279aa0ed · report

Tasks

Dependency ParsingLanguage ModelingLanguage Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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