GrASP: A Library for Extracting and Exploring Human-Interpretable Textual Patterns
Not on the map. Why?
Abstract (arXiv)
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).
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 17 of its 62 references that are in the map. First posted on arXiv 8 Apr 2021.
Builds on
17 of 62 references.
References · 17
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
- 2016Bag of Tricks for Efficient Text Classificationcited by 876
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
- 2018Annotation Artifacts in Natural Language Inference Datacited by 671
- 2019Evaluating Gender Bias in Machine Translationcited by 249
- 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
- 2020FIND: Human-in-the-Loop Debugging Deep Text Classifierscited by 40
- 2019Corpus Wide Argument Mining -- a Working Solutioncited by 36
- 2016Neural Generation of Regular Expressions from Natural Language with Minimal Domain Knowledgecited by 24
- 2020Syntactic Search by Examplecited by 20
5 more
- 2019Automatically Extracting Challenge Sets for Non local Phenomena in Neural Machine Translationcited by 15
- 2020Unsupervised Expressive Rules Provide Explainability and Assist Human Experts Grasping New Domainscited by 13
- 2020Classifying Syntactic Errors in Learner Languagecited by 11
- 2019Fine-grained evaluation of German-English Machine Translation based on a Test Suitecited by 6
- 2019Linguistic evaluation of German-English Machine Translation using a Test Suitecited by 4
Built on by
Citing papers per year: 2022: 3; 2023: 1; 2024: 1; 2025: 0; 2026: 1.
6 papers.
- 2022Explainable Patterns for Distinction and Prediction of Moral Judgement on Redditcited by 6
- 2024Interactive Machine Teaching by Labeling Rules and Instancescited by 2
- 2022POTATO: exPlainable infOrmation exTrAcTion framewOrkcited by 1
- 2022Argumentative Explanations for Pattern-Based Text Classifierscited by 1
- 2023MuLER: Detailed and Scalable Reference-based Evaluationcited by 0
- 2026RuleChef: Grounding LLM Task Knowledge in Human-Editable Rulescited by 0
- 2026RuleChef: Grounding LLM Task Knowledge in Human-Editable Rules1 Jul 2026
- 2024Interactive Machine Teaching by Labeling Rules and Instances8 Sep 2024
- 2023MuLER: Detailed and Scalable Reference-based Evaluation24 May 2023
- 2022Argumentative Explanations for Pattern-Based Text Classifiers22 May 2022
- 2022POTATO: exPlainable infOrmation exTrAcTion framewOrk31 Jan 2022
- 2022Explainable Patterns for Distinction and Prediction of Moral Judgement on Reddit26 Jan 2022