Views
No views yet
sbintuitions/modernbert-ja-310m for Japanese emergency call (119) transcript analysis.
It performs two tasks simultaneously:1from transformers import AutoTokenizer, AutoModel
2import torch
3
4# Load model and tokenizer
5tokenizer = AutoTokenizer.from_pretrained("your-username/nec119-modernbert-phase-boundary")
6model = AutoModel.from_pretrained("your-username/nec119-modernbert-phase-boundary")
7
8# Prepare input
9context = "previous conversation text"
10current_utterance = "current line to classify"
11inputs = tokenizer(context, current_utterance, return_tensors="pt", max_length=1024, truncation=True)
12
13# Get predictions
14with torch.no_grad():
15 outputs = model(**inputs)
16 # Extract predictions from outputs