Skip to content

glazing.verbnet

VerbNet data models and utilities.

Overview

The VerbNet module provides models for verb classes, thematic roles, and syntactic frames.

Modules

  • Models - Core data models (VerbClass, ThematicRole, etc.)
  • GL Models - Generative Lexicon semantic models
  • Loader - Loading VerbNet data from JSON Lines
  • Converter - Converting from VerbNet XML format
  • Search - Searching VerbNet data
  • Inheritance - Thematic role inheritance utilities

verbnet

VerbNet data models and utilities.

This module provides models for VerbNet verb classes, thematic roles, syntactic frames, semantic predicates, and Generative Lexicon extensions. It includes support for the complete role inheritance hierarchy.

CLASS DESCRIPTION
VerbClass

A verb class with members, roles, and frames.

Member

Individual verb with cross-references.

ThematicRole

Semantic role with selectional restrictions.

VNFrame

Syntactic-semantic frame pattern.

FUNCTION DESCRIPTION
load

Load VerbNet data from JSON Lines.

Examples:

>>> from frames.verbnet import load
>>> vn = load("data/verbnet.json")
>>> verb_class = vn.get_class("give-13.1")
>>> print(verb_class.themroles)