kogito: A Commonsense Knowledge Inference Toolkit
This toolkit addresses the need for accessible and extensible tools in natural language processing for commonsense reasoning, though it is incremental as it builds on existing models and methods.
The paper introduces kogito, an open-source toolkit for generating commonsense inferences from text, providing features like a standardized API for training and evaluating models, and helper functions for text processing and custom knowledge relations.
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.