GrASP: A Library for Extracting and Exploring Human-Interpretable Textual Patterns
Preprint
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).Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Investigating Failures of Automatic Translationin the Case of Unambiguous Gender2022
- Syntactic Search by Example2020
- Argument Mining: A SurveyComputational Linguistics, 2020
- GEval: Tool for Debugging NLP Datasets and Models2019
- quanteda: An R package for the quantitative analysis of textual dataJournal of Open Source Software, 2018
- VisualUrText: A Text Analytics Tool for Unstructured Textual DataJournal of Physics: Conference Series, 2018
- Inference of Regular Expressions for Text Extraction from ExamplesIEEE Transactions on Knowledge and Data Engineering, 2016
- A Domain-independent Rule-based Framework for Event Extraction2015
- A generalizable NLP framework for fast development of pattern-based biomedical relation extraction systemsBMC Bioinformatics, 2014
- Acknowledging the needs of computer-assisted translation tools users: the human perspective in human-machine translationThe Journal of Specialised Translation, 2013