Expand description
Ontology module for bridging anaphora and sort compatibility checking.
This module provides:
- Part-whole relationship lookup for bridging anaphora resolution
- Predicate sort requirements for metaphor detection
Functions§
- check_
sort_ compatibility - Check if a predicate is compatible with a subject’s sort. Returns true if compatible or no sort requirement exists.
- find_
bridging_ wholes - Find possible whole objects for a given part noun. Returns None if the noun is not a known part of any whole.
- get_
possible_ wholes - Get possible whole objects for a given part noun.
- get_
predicate_ sort - Get the required sort for a predicate (adjective or verb).
- required_
sort - Get the required sort for a predicate, if any.