Downloads · 30 days
12
4% of all-time downloads
frissonlabs/script-parser-gemma3-270m-ONNX
script-parser-gemma3-270m-ONNX is a text generation model from frissonlabs. Use it when you need the model to write or continue text. It is set up for transformers.js.
Fine-tuned SmolLM2-360M-Instruct for theatrical script parsing. Converts raw script text into pipe-delimited D|CHARACTER|parenthetical|line and S|stage direction format.
Downloads · 30 days
12
4% of all-time downloads
All-time downloads
337
Public
Repo size
4.4 GB
Likes
0
Public
Click a slice to open those files.
.onnx2.2 GB · 98%
From the Hugging Face model README
Fine-tuned SmolLM2-360M-Instruct for theatrical script parsing.
Converts raw script text into pipe-delimited D|CHARACTER|parenthetical|line and S|stage direction format.
import { AutoTokenizer, AutoModelForCausalLM } from "@huggingface/transformers";
const tokenizer = await AutoTokenizer.from_pretrained("frissonlabs/script-parser-360m-ONNX");
const model = await AutoModelForCausalLM.from_pretrained("frissonlabs/script-parser-360m-ONNX", {
dtype: "q4f16",
device: "wasm", // or "webgpu"
});
Input (raw script text):
JOHN. (Crossing to the window.) I can't believe you said that.
Mary. I didn't say anything!
(The phone rings.)
Output (pipe-delimited):
D|JOHN|Crossing to the window.|I can't believe you said that.
D|MARY||I didn't say anything!
S|The phone rings.