GrASP: A Library for Extracting and Exploring Human-Interpretable Textual Patterns

Piyawat Lertvittayakumjorn, Leshem Choshen, Eyal Shnarch, Francesca Toni
4/8/2021
cs.CLcs.AIcs.LG

Official code: plkumjorn/GrASP (24 stars, Python, BSD-3-Clause, last commit 2022-08-29).

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.

Show full abstract

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).

View on arXivView PDF

Code Implementations(1)

plkumjorn/GrASPOfficial100%
BSD-3-Clause

An implementation of GrASP (Shnarch et. al., 2017)

244Python, HTMLFeb 24, 20214 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{lertvittayakumjorn2021grasp,
  title  = {GrASP: A Library for Extracting and Exploring Human-Interpretable Textual Patterns},
  author = {Piyawat Lertvittayakumjorn and Leshem Choshen and Eyal Shnarch and Francesca Toni},
  year   = {2021},
  eprint = {2104.03958},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.03958}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.03958.svg)](https://codeofpaper.com/paper/2104.03958)

Discussion