English

kogito: A Commonsense Knowledge Inference Toolkit

Computation and Language 2023-03-10 v3

Abstract

In this paper, we present kogito, an open-source tool for generating commonsense inferences about situations described in text. kogito provides an intuitive and extensible interface to interact with natural language generation models that can be used for hypothesizing commonsense knowledge inference from a textual input. In particular, kogito offers several features for targeted, multi-granularity knowledge generation. These include a standardized API for training and evaluating knowledge models, and generating and filtering inferences from them. We also include helper functions for converting natural language texts into a format ingestible by knowledge models - intermediate pipeline stages such as knowledge head extraction from text, heuristic and model-based knowledge head-relation matching, and an ability to define and use custom knowledge relations. We make the code for kogito available at https://github.com/epfl-nlp/kogito along with thorough documentation at https://kogito.readthedocs.io.

Keywords

Cite

@article{arxiv.2211.08451,
  title  = {kogito: A Commonsense Knowledge Inference Toolkit},
  author = {Mete Ismayilzada and Antoine Bosselut},
  journal= {arXiv preprint arXiv:2211.08451},
  year   = {2023}
}

Comments

EACL 2023 Camera ready, 9 pages

R2 v1 2026-06-28T05:59:04.850Z