Views
No views yet
texture-frames, a fast FrameNet
semantic-frame parser. Given a sentence with a marked trigger, it predicts which
of ~1,221 FrameNet frames the trigger evokes.microsoft/deberta-v3-large
on FrameNet 1.7 and uses marker-token pooling: the trigger is wrapped in
entity markers (… <t> gave </t> …) and the frame representation is the
concatenation of the two marker tokens' hidden states (not [CLS]), focusing the
classifier on the predicate. A single forward pass — no beam search.This is one of three stages. Use it through the package rather than alone.
pip install git+https://github.com/texturejc/Texture_Frames1from texture_frames import FrameParser
2parser = FrameParser()
3for ann in parser.parse("The chef gave food to the customer ."):
4 print(ann.trigger, "->", ann.frame)
5# gave -> Giving| File | What |
|---|---|
frame2_model.pt | model state_dict (backbone + marker-pooling classifier) |
frame2id.json | {frame name → id} label map + base_model |
| tokenizer files | DeBERTa-v3 tokenizer with the <t> / </t> markers added |
texture_frames.weights.load_frame.| Metric | This head | T5 baseline |
|---|---|---|
| Frame accuracy | 0.863–0.868 | 0.887 |
| Speed | single forward pass (~50–60 ms) | 3 beam-search passes |
microsoft/deberta-v3-large, AdamW lr 1e-5, warmup 0.06, weight decay 0.01,
batch 16, max length 320, bf16, 5 epochs. Data: FrameNet 1.7 (NLTK), Open-Sesame
splits.1@software{texture_frames,
2 author = {Carney, James},
3 title = {texture-frames: a fast DeBERTa encoder FrameNet parser},
4 url = {https://github.com/texturejc/Texture_Frames},
5 year = {2026}
6}frame-semantic-transformer;
thanks to the Berkeley FrameNet and Open-Sesame projects.