Instructions to use shtoshni/longformer_coreference_ontonotes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shtoshni/longformer_coreference_ontonotes with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="shtoshni/longformer_coreference_ontonotes")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("shtoshni/longformer_coreference_ontonotes") model = AutoModel.from_pretrained("shtoshni/longformer_coreference_ontonotes", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": true, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 4096, "special_tokens_map_file": null, "name_or_path": "/share/data/speech/shtoshni/research/fast-coref/models/coref_ontonotes_0eee8b4bcf686c0970cfa299fe9790f0/doc_encoder", "tokenizer_class": "LongformerTokenizer"} | |