ice-v2-microner / ner_model.py
Deepnar's picture
Release retained frozen ICE v2 paper checkpoint and inference metadata
a93abc5 verified
Raw History Blame Contribute Delete
491 Bytes
"""Micro NER model: 384‑dim input → 3‑class output with hidden layers."""
import torch
import torch.nn as nn
class MicroNER(nn.Module):
def __init__(self):
super().__init__()
self.net = nn.Sequential(
nn.Linear(384, 128),
nn.ReLU(),
nn.Dropout(0.2),
nn.Linear(128, 64),
nn.ReLU(),
nn.Dropout(0.2),
nn.Linear(64, 3),
)
def forward(self, x):
return self.net(x)