---
title: "discopy: A Neural System for Shallow — Knaebel 2021"
description: "Shallow discourse parsing (SDP) finds discourse relations in text."
authors: ["René Knaebel"]
year: 2021
venue: "Proceedings of the 2nd Workshop on Computational Approaches to Discourse"
source: "https://aclanthology.org/2021.codi-main.12/"
doi: "10.18653/v1/2021.codi-main.12"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/papers/knaebel-2021-discopy-neural-system-shallow-discourse/"
---
[Elamur Research](https://md.research.elamur.ai/) · [this page in HTML](https://research.elamur.ai/free/papers/knaebel-2021-discopy-neural-system-shallow-discourse/)

[home](https://md.research.elamur.ai/) / [papers](https://md.research.elamur.ai/free/papers/) / [2021](https://md.research.elamur.ai/free/papers/2021/) / discopy: A Neural System for Shallow Discourse Parsing

# discopy: A Neural System for Shallow Discourse Parsing

**Authors:** [René Knaebel](https://md.research.elamur.ai/free/authors/rene-knaebel/) · **Year:** 2021 · **Venue:** Proceedings of the 2nd Workshop on Computational Approaches to Discourse · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/2021.codi-main.12/) · [PDF](https://aclanthology.org/2021.codi-main.12.pdf) · [DOI 10.18653/v1/2021.codi-main.12](https://doi.org/10.18653/v1/2021.codi-main.12) · [OpenAlex](https://openalex.org/W3213141892)

**Citations:** 9 citations (openalex-snapshot · 2026-10-14) · [14](#cited-by) in our library, of the 140673 papers whose bibliographies we read

## Summary
Shallow discourse parsing (SDP) finds discourse relations in text. Each relation has two arguments and a sense, and it is either explicit (signalled by a connective) or non-explicit. The paper presents **discopy**, an open-source Python framework for building end-to-end SDP pipelines. Each component follows a shared interface (fit, parse, eval) and adds its predictions to the document as it moves through the pipeline, so parts can be swapped easily. The demonstration pipeline is fully neural and uses no hand-crafted linguistic features. Its components cover connective detection with sense classification, explicit argument extraction, and implicit/EntRel/NoRel classification. All of them share one set of precomputed contextualized embeddings from BERT-family models. Evaluation follows the CoNLL 2016 Shared Task setup on PDTB Section 23 and the Wikipedia blind test. Compared with the top 2016 systems (ecnucs, oslopots), the parser is better on most explicit-relation measures but clearly weaker on implicit argument spans. A FastAPI/VueJS web front end lets users inspect parser output. This gives SDP a reusable, modern toolkit with released pretrained models.

## Key points
- Code, documentation and pretrained models are available at github.com/rknaebel/discopy. Embeddings are built with Hugging Face transformers by concatenating the last four hidden layers for each token's first sub-token.
- Six encoders were tested: bert-base/large, roberta-base/large and albert-base/large. Base models generally beat large ones, and albert-base did well despite having the fewest parameters.
- Explicit connective F1 (strict, WSJ) reached up to 96.87 with albert-base, against 93.96 for ecnucs and 94.43 for oslopots. bert-base reached an explicit Arg1+Arg2 F1 of 51.79, against 44.31 for ecnucs.
- Explicit Arg1 identification stays slightly behind the baselines. Implicit argument extraction uses a simple adjacent-sentence heuristic and scores much lower (about 39–40 strict Arg1+Arg2 F1 on WSJ vs. 50.83–53.47 for the baselines).
- Results are reported under strict (exact match) and partial (≥70% overlap) evaluation. The web interface highlights arguments and connectives and can connect to a parser via REST API.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

Fields: [Linguistics & languages](https://md.research.elamur.ai/free/shelves/linguistics/)

Topics: [Discourse analysis](https://md.research.elamur.ai/free/topics/discourse-analysis/)

## Cited by

Cited by

14 papers of our library cite it (of the 140673 whose bibliographies we read); 2 of them have a page here, 12 not yet.

- [Investigating Explicitation of Discourse Connectives in Translation using Automatic Annotations](https://md.research.elamur.ai/free/papers/yung-2023-investigating-explicitation-discourse-connectives-translation/)
- [eRST: A Signaled Graph Theory of Discourse Relations and Organization](https://md.research.elamur.ai/free/papers/zeldes-2025-erst-signaled-graph-theory-discourse/)

## Cite

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{knaebel2021discopy,
  title = {{discopy: A Neural System for Shallow Discourse Parsing}},
  author = {Knaebel, René},
  booktitle = {Proceedings of the 2nd Workshop on Computational Approaches to Discourse},
  year = {2021},
  doi = {10.18653/v1/2021.codi-main.12},
  url = {https://doi.org/10.18653/v1/2021.codi-main.12}
}
```

- [← previous Differential Object Marking in Modern Hebrew: Definiteness and partitivity](https://md.research.elamur.ai/free/papers/lingbulk-2021-hacohen-differential-object-marking-modern-hebrew/)
- [next → Do UD Trees Match Mention Spans in Coreference Annotations?](https://md.research.elamur.ai/free/papers/coref-2021-popel-do-ud-trees-match-mention/)
- [↑ back to papers of 2021](https://md.research.elamur.ai/free/papers/2021/)

## References

21 references, 13 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. [↗](https://doi.org/10.18653/v1/n19-1423)
2. Shima Gerani, Yashar Mehdad, Giuseppe Carenini, Raymond T. Ng, and Bita Nejat. 2014. Abstractive summarization of product reviews using discourse structure. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1602–1613, Doha, Qatar. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Shima+Gerani%2C+Yashar+Mehdad%2C+Giuseppe+Carenini%2C+Raymond+T%2E+Ng%2C+and+Bita+Nejat%2E+2014%2E+Abstractive+summarization+of+product+reviews+using+discourse+structure%2E+In+Proceedings+of+the+2014+Conference+on+Em)
3. Freya Hewett, Roshan Prakash Rane, Nina Harlacher, and Manfred Stede. 2019. The utility of discourse parsing features for predicting argumentation structure. In Proceedings of the 6th Workshop on Argument Mining, pages 98–103, Florence, Italy. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Freya+Hewett%2C+Roshan+Prakash+Rane%2C+Nina+Harlacher%2C+and+Manfred+Stede%2E+2019%2E+The+utility+of+discourse+parsing+features+for+predicting+argumentation+structure%2E+In+Proceedings+of+the+6th+Workshop+on+Argu) [our card](https://md.research.elamur.ai/free/papers/hewett-2019-utility-discourse-parsing-features-predicting/)
4. René Knaebel and Manfred Stede. 2020. Contextualized embeddings for connective disambiguation in shallow discourse parsing. In Proceedings of the First Workshop on Computational Approaches to Discourse, pages 65–75, Online. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Ren%C3%A9+Knaebel+and+Manfred+Stede%2E+2020%2E+Contextualized+embeddings+for+connective+disambiguation+in+shallow+discourse+parsing%2E+In+Proceedings+of+the+First+Workshop+on+Computational+Approaches+to+Discours) [our card](https://md.research.elamur.ai/free/papers/knaebel-2020-contextualized-embeddings-connective-disambiguation-shallow/)
5. René Knaebel, Manfred Stede, and Sebastian Stober. 2019. Window-based neural tagging for shallow discourse argument labeling. In Proceedings of the 23rd Conference on Computational Natural Language Learning (CoNLL), pages 768–777, Hong Kong, China. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Ren%C3%A9+Knaebel%2C+Manfred+Stede%2C+and+Sebastian+Stober%2E+2019%2E+Window%2Dbased+neural+tagging+for+shallow+discourse+argument+labeling%2E+In+Proceedings+of+the+23rd+Conference+on+Computational+Natural+Language+Le)
6. Li Liang, Zheng Zhao, and Bonnie Webber. 2020. Extending implicit discourse relation recognition to the PDTB-3. In Proceedings of the First Workshop on Computational Approaches to Discourse, pages 135– 147, Online. Association for Computational Linguistics. [↗](https://doi.org/10.18653/v1/2020.codi-1.14) [our card](https://md.research.elamur.ai/free/papers/liang-2020-extending-implicit-discourse-relation-recognition/)
7. Ziheng Lin, Hwee Tou Ng, and Min-Yen Kan. 2014. A pdtb-styled end-to-end discourse parser. Natural Language Engineering, 20:151–184. [find](https://scholar.google.com/scholar?q=Ziheng+Lin%2C+Hwee+Tou+Ng%2C+and+Min%2DYen+Kan%2E+2014%2E+A+pdtb%2Dstyled+end%2Dto%2Dend+discourse+parser%2E+Natural+Language+Engineering%2C+20%3A151%E2%80%93184%2E)
8. Stephan Oepen, Jonathon Read, Tatjana Scheffler, Uladzimir Sidarenka, Manfred Stede, Erik Velldal, and Lilja Øvrelid. 2016. OPT: Oslo–Potsdam– Teesside. pipelining rules, rankers, and classifier ensembles for shallow discourse parsing. In Proceedings of the CoNLL-16 shared task, pages 20– 26, Berlin, Germany. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Stephan+Oepen%2C+Jonathon+Read%2C+Tatjana+Scheffler%2C+Uladzimir+Sidarenka%2C+Manfred+Stede%2C+Erik+Velldal%2C+and+Lilja+%C3%98vrelid%2E+2016%2E+OPT%3A+Oslo%E2%80%93Potsdam%E2%80%93+Teesside%2E+pipelining+rules%2C+rankers%2C+and+classifier+ensem) [our card](https://md.research.elamur.ai/free/papers/oepen-2016-opt-oslo-potsdam-teesside-pipelining/)
9. Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1532–1543, Doha, Qatar. Association for Computational Linguistics. [↗](https://doi.org/10.3115/v1/d14-1162)
10. Emily Pitler and Ani Nenkova. 2009. Using syntax to disambiguate explicit discourse connectives in text. In Proceedings of the ACL-IJCNLP 2009 Conference Short Papers, pages 13–16, Suntec, Singapore. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Emily+Pitler+and+Ani+Nenkova%2E+2009%2E+Using+syntax+to+disambiguate+explicit+discourse+connectives+in+text%2E+In+Proceedings+of+the+ACL%2DIJCNLP+2009+Conference+Short+Papers%2C+pages+13%E2%80%9316%2C+Suntec%2C+Singapore%2E+) [our card](https://md.research.elamur.ai/free/papers/pitler-2009-syntax-disambiguate-explicit-discourse-connectives/)
11. Rashmi Prasad, Nikhil Dinesh, Alan Lee, Eleni Milt-sakaki, Livio Robaldo, Aravind Joshi, and Bonnie Webber. 2008. The penn discourse treebank 2.0. In In Proceedings of LREC. [find](https://scholar.google.com/scholar?q=Rashmi+Prasad%2C+Nikhil+Dinesh%2C+Alan+Lee%2C+Eleni+Milt%2Dsakaki%2C+Livio+Robaldo%2C+Aravind+Joshi%2C+and+Bonnie+Webber%2E+2008%2E+The+penn+discourse+treebank+2%2E0%2E+In+In+Proceedings+of+LREC%2E) [our card](https://md.research.elamur.ai/free/papers/disc-2008-prasad-penn-discourse-treebank-2-0/)
12. Lianhui Qin, Zhisong Zhang, and Hai Zhao. 2016. Shallow discourse parsing using convolutional neural network. In Proceedings of the CoNLL-16 shared task, pages 70–77, Berlin, Germany. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Lianhui+Qin%2C+Zhisong+Zhang%2C+and+Hai+Zhao%2E+2016%2E+Shallow+discourse+parsing+using+convolutional+neural+network%2E+In+Proceedings+of+the+CoNLL%2D16+shared+task%2C+pages+70%E2%80%9377%2C+Berlin%2C+Germany%2E+Association+for+) [our card](https://md.research.elamur.ai/free/papers/qin-2016-shallow-discourse-parsing-convolutional-neural/)
13. Sashank J. Reddi, Satyen Kale, and Sanjiv Kumar. 2018. On the convergence of adam and beyond. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. Open-Review.net. [↗](https://doi.org/10.48550/arxiv.1904.09237)
14. Nianwen Xue, Hwee Tou Ng, Sameer Pradhan, Attapol Rutherford, Bonnie Webber, Chuan Wang, and Hongmin Wang. 2016. CoNLL 2016 shared task on multilingual shallow discourse parsing. In Proceedings of the CoNLL-16 shared task, pages 1– 19, Berlin, Germany. Association for Computational Linguistics. [↗](https://doi.org/10.18653/v1/k16-2001) [our card](https://md.research.elamur.ai/free/papers/xue-2016-conll-2016-shared-task-multilingual/)
15. Yang Zhong, Chao Jiang, Wei Xu, and Junyi Jessy Li. 2020. Discourse level factors for sentence deletion in text simplification. In AAAI. [find](https://scholar.google.com/scholar?q=Yang+Zhong%2C+Chao+Jiang%2C+Wei+Xu%2C+and+Junyi+Jessy+Li%2E+2020%2E+Discourse+level+factors+for+sentence+deletion+in+text+simplification%2E+In+AAAI%2E)
16. Attapol Rutherford, Vera Demberg, and Nianwen Xue. 2017. A systematic study of neural discourse models for implicit discourse relation. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, pages 281–291, Valencia, Spain. Association for Computational Linguistics. [↗](https://doi.org/10.22028/d291-30982) [our card](https://md.research.elamur.ai/free/papers/rutherford-2017-systematic-study-neural-discourse-models/)
17. Niko Schenk, Christian Chiarcos, Kathrin Donandt, Samuel Rönnqvist, Evgeny Stepanov, and Giuseppe Riccardi. 2016. Do we really need all those rich linguistic features? a neural network-based approach to implicit sense labeling. In Proceedings of the CoNLL-16 shared task, pages 41–49, Berlin, Germany. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Niko+Schenk%2C+Christian+Chiarcos%2C+Kathrin+Donandt%2C+Samuel+R%C3%B6nnqvist%2C+Evgeny+Stepanov%2C+and+Giuseppe+Riccardi%2E+2016%2E+Do+we+really+need+all+those+rich+linguistic+features%3F+a+neural+network%2Dbased+approach+)
18. Evgeny Stepanov and Giuseppe Riccardi. 2016. UniTN end-to-end discourse parser for CoNLL 2016 shared task. In Proceedings of the CoNLL-16 shared task, pages 85–91, Berlin, Germany. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Evgeny+Stepanov+and+Giuseppe+Riccardi%2E+2016%2E+UniTN+end%2Dto%2Dend+discourse+parser+for+CoNLL+2016+shared+task%2E+In+Proceedings+of+the+CoNLL%2D16+shared+task%2C+pages+85%E2%80%9391%2C+Berlin%2C+Germany%2E+Association+for+Com) [our card](https://md.research.elamur.ai/free/papers/stepanov-2016-unitn-end-end-discourse-parser/)
19. Jianxiang Wang and Man Lan. 2016. Two end-to-end shallow discourse parsers for English and Chinese in CoNLL-2016 shared task. In Proceedings of the CoNLL-16 shared task, pages 33–40, Berlin, Germany. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Jianxiang+Wang+and+Man+Lan%2E+2016%2E+Two+end%2Dto%2Dend+shallow+discourse+parsers+for+English+and+Chinese+in+CoNLL%2D2016+shared+task%2E+In+Proceedings+of+the+CoNLL%2D16+shared+task%2C+pages+33%E2%80%9340%2C+Berlin%2C+Germany%2E+) [our card](https://md.research.elamur.ai/free/papers/wang-2016-two-end-end-shallow-discourse/)
20. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier-ric Cistac, Tim Rault, Remi Louf, Morgan Funtow-icz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander Rush. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38–45, Online. Association for Computational Linguistics. [↗](https://doi.org/10.18653/v1/2020.emnlp-demos.6) [our card](https://md.research.elamur.ai/free/papers/wolf-2020-transformers-state-art-natural-language/)
21. Nianwen Xue, Hwee Tou Ng, Sameer Pradhan, Rashmi Prasad, Christopher Bryant, and Attapol Rutherford. 2015. The CoNLL-2015 shared task on shallow discourse parsing. In Proceedings of the Nineteenth Conference on Computational Natural Language Learning - Shared Task, pages 1–16, Beijing, China. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Nianwen+Xue%2C+Hwee+Tou+Ng%2C+Sameer+Pradhan%2C+Rashmi+Prasad%2C+Christopher+Bryant%2C+and+Attapol+Rutherford%2E+2015%2E+The+CoNLL%2D2015+shared+task+on+shallow+discourse+parsing%2E+In+Proceedings+of+the+Nineteenth+Con) [our card](https://md.research.elamur.ai/free/papers/xue-2015-conll-2015-shared-task-shallow/)
