# GrASP: A Library for Extracting and Exploring Human-Interpretable Textual Patterns Authors: Piyawat Lertvittayakumjorn, Leshem Choshen, Eyal Shnarch, Francesca Toni Venue: Proceedings of the Thirteenth Language Resources and Evaluation Conference, {LREC} 2022, Marseille, France, 20-25 June 2022 (2022) ## Abstract Data exploration is an important step of every data science and machine learning project, including those involving textual data. We provide a novel language tool, in the form of a publicly available Python library for extracting patterns from textual data. The library integrates a first public implementation of the existing GrASP algorithm. It allows users to extract patterns using a number of general-purpose built-in linguistic attributes (such as hypernyms, part-of-speech tags, and syntactic dependency tags), as envisaged for the original algorithm, as well as domain-specific custom attributes which can be incorporated into the library by implementing two functions. The library is equipped with a web-based interface empowering human users to conveniently explore data via the extracted patterns, using complementary pattern-centric and example-centric views: the former includes a reading in natural language and statistics of each extracted pattern; the latter shows applications of each extracted pattern to training examples. We demonstrate the usefulness of the library in classification (spam detection and argument mining), model analysis (machine translation), and artifact discovery in datasets (SNLI and 20Newsgroups). ## Links - arXiv: https://arxiv.org/abs/2104.03958 - PDF: https://arxiv.org/pdf/2104.03958 - HTML: https://ar5iv.labs.arxiv.org/html/2104.03958 - Hugging Face: https://huggingface.co/papers/2104.03958 - alphaXiv: https://www.alphaxiv.org/abs/2104.03958 - DOI: https://doi.org/10.63317/3n2tjf9emh64 - ACL Anthology: https://aclanthology.org/2022.lrec-1.655/ - Semantic Scholar: https://www.semanticscholar.org/paper/233181806 - Publisher: https://aclanthology.org/2022.lrec-1.655 ## How to cite @inproceedings{DBLP:conf/lrec/Lertvittayakumjorn22, author = {Piyawat Lertvittayakumjorn and Leshem Choshen and Eyal Shnarch and Francesca Toni}, editor = {Nicoletta Calzolari and Fr{\'{e}}d{\'{e}}ric B{\'{e}}chet and Philippe Blache and Khalid Choukri and Christopher Cieri and Thierry Declerck and Sara Goggi and Hitoshi Isahara and Bente Maegaard and Joseph Mariani and H{\'{e}}l{\`{e}}ne Mazo and Jan Odijk and Stelios Piperidis}, title = {GrASP: {A} Library for Extracting and Exploring Human-Interpretable Textual Patterns}, booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference, {LREC} 2022, Marseille, France, 20-25 June 2022}, pages = {6093--6103}, publisher = {European Language Resources Association}, year = {2022}, url = {https://aclanthology.org/2022.lrec-1.655}, timestamp = {Mon, 10 Oct 2022 16:57:52 +0200}, biburl = {https://dblp.org/rec/conf/lrec/Lertvittayakumjorn22.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} }