Downloads · 30 days
7
24% of all-time downloads
ryosuke-yamaki/hol-ccg-roberta-base-complex
hol-ccg-roberta-base-complex is a machine learning model from ryosuke-yamaki. 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 holccg. The card lists the license as mit.
Official pretrained checkpoint for Holographic CCG Parsing (Yamaki, Taniguchi, and Mochihashi; ACL 2023), released with the official implementation at ryosuke-yamaki/hol-ccg.
Downloads · 30 days
7
24% of all-time downloads
All-time downloads
29
Public
Parameters
125M
524 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 94%
From the Hugging Face model README
Official pretrained checkpoint for Holographic CCG Parsing (Yamaki, Taniguchi, and Mochihashi; ACL 2023), released with the official implementation at ryosuke-yamaki/hol-ccg.
Hol-CCG formulates CCG parsing as recursive composition in a continuous vector space, using holographic embeddings (circular correlation) as an explicit compositional operator over word and phrase vectors. This checkpoint uses complex-valued normalization (the complex variant studied in the paper) with a fine-tuned roberta-base encoder.
| Split | LF1 | Supertagging Acc. |
|---|---|---|
| dev (WSJ 00) | 91.83 | 96.36 |
| test (WSJ 23) | 91.56 | 96.32 |
| Model | Normalization | Encoder | Test LF1 |
|---|---|---|---|
ryosuke-yamaki/hol-ccg-roberta-large | real | roberta-large | 92.69 |
ryosuke-yamaki/hol-ccg-roberta-large-complex | complex | roberta-large | 92.10 |
ryosuke-yamaki/hol-ccg-roberta-base | real | roberta-base | 91.98 |
ryosuke-yamaki/hol-ccg-roberta-base-complex (this model) | complex | roberta-base | 91.56 |
Install the official implementation
with the [hub] extra, then load the model by repository ID:
from holccg import Parser
parser = Parser.from_pretrained("ryosuke-yamaki/hol-ccg-roberta-base-complex", device="cpu")
parsed = parser.parse_tokens(
["The", "dog", "barks", "."], index=1, sentence_id="sentence.1"
)
print(parsed.status.value) # "success"
print(parsed.auto) # CCGbank .auto derivation string
Use device="cuda" for GPU inference. For the holccg-parse CLI, download the
bundle and pass its directory:
hf download ryosuke-yamaki/hol-ccg-roberta-base-complex --local-dir holccg-roberta-base-complex
holccg-parse --model_dir holccg-roberta-base-complex --input_raw_path in.raw --output_auto_path out.auto
The model was trained on CCGbank v1.1 (LDC2005T13), WSJ sections 02-21. The released files contain model weights, category-label inventories, and rule-frequency statistics derived from CCGbank annotations; no CCGbank text is included. Reproducing training or evaluation requires your own licensed copy of CCGbank. The model weights are released under the MIT licence.
@inproceedings{yamaki-etal-2023-holographic,
title = "Holographic {CCG} Parsing",
author = "Yamaki, Ryosuke and
Taniguchi, Tadahiro and
Mochihashi, Daichi",
editor = "Rogers, Anna and
Boyd-Graber, Jordan and
Okazaki, Naoaki",
booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
month = jul,
year = "2023",
address = "Toronto, Canada",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.acl-long.15/",
doi = "10.18653/v1/2023.acl-long.15",
pages = "262--276"
}