Downloads · 30 days
50
1% of all-time downloads
compnet-renard/bert-base-cased-literary-coref
bert-base-cased-literary-coref is a machine learning model from compnet-renard. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This model should be used with Tibert, a BERT-based end-to-end coreference solver.
Downloads · 30 days
50
1% of all-time downloads
All-time downloads
4.4K
Public
Parameters
109M
923 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
This model should be used with Tibert, a BERT-based end-to-end coreference solver.
Example code:
from tibert import BertForCoreferenceResolution, predict_coref_simple
from tibert.utils import pprint_coreference_document
from transformers import BertTokenizerFast
model = BertForCoreferenceResolution.from_pretrained(
"compnet-renard/bert-base-cased-literary-coref"
)
tokenizer = BertTokenizerFast.from_pretrained("bert-base-cased")
coref_out = predict_coref_simple(
"Sli did not want the earpods. He didn't like them.", model, tokenizer
)
pprint_coreference_document(coref_out)
>>> (0 Sli ) did not want the earpods. (0 He ) didn't like them.