coref

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command coref resolves the words in a text that point at the same thing. It runs between the entity pass and the relation pass rather than after both, because "she founded it" is a relation between two names only once the pronouns are bound to them.

Nothing here needs a model. A pronoun is resolved to the nearest preceding name whose label it admits — "she" takes a person, "it" takes an organisation or a place — and to the nearest preceding name of any label when none does, since a wrong antecedent of the right shape tells a reader more than no antecedent.

go run ./examples/coref

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL