nus-lt-rekvizitai
Fine-tuned version of VytautoDidziojoUniversitetas/NUS-LT-PII-xlm-roberta-large, adapted to extract Lithuanian company registration data ("rekvizitai") from website data: company code, VAT code, address, company name, and IBAN.
Built as the local, offline DI (dirbtinio intelekto), a domain-scanning tool that collects contact/registration data developed during a baigiamoji praktika (final internship) at VMI (Valstybinė mokesčių inspekcija pie LR)
Model Details
- Base model:
VytautoDidziojoUniversitetas/NUS-LT-PII-xlm-roberta-large(itself fine-tuned fromFacebookAI/xlm-roberta-large, ~560M parameters) - Fine-tuning method: LoRA (r=16, lora_alpha=32, lora_dropout=0.05) applied to the top 12 transformer layers only (bottom 12 layers frozen to make CPU training feasible); classification head trained fully. Adapters merged into the base weights after training, so this repo is a standard
transformersAutoModelForTokenClassificationcheckpoint — no PEFT/adapter loading required. - Training: 2 epochs, learning rate 3e-4, batch size 8 (length-bucketed to reduce padding), AdamW with linear warmup, CPU-only.
- Task: token classification (NER), same 24-label schema as the base model (see its model card) — fine-tuning specifically targets
ID_MISC(company/VAT code, IBAN),LOC(address as one contiguous span), andORG(company name with legal form, e.g. "UAB X") for the company-registration-data use case;NUM_PHONE/MISC(phone/email) are left as inherited from the base model.
Training Data
Dataset: VMIBotukasMokyklinukas/nus-lt-rekvizitai-data (private).
- Source (
puslapiai.jsonl): visible text scraped from websites already visited by the VmiHubRS scanner, extracted the same way the scanner extracts text in production (skeneris::kontaktai::matomas_tekstas+ JSON-LD text), so training text distribution matches real inference input. - Labeling (
langai.jsonl): "silver" labels from rule-based heuristics, stricter than the scanner's own production regexes (used as training ground truth): company code = 9 digits + Lithuanian mod-11 control digit; VAT code =LT+ 9/12 digits + control digit; IBAN = mod-97 check;ORG= legal-form patterns (UAB, MB, AB, VšĮ, IĮ, …);LOC= street + number (+ postal code / city) as one span. Phone/email labels inherited from the base model's own predictions on the same text. ~700-character windows around each mention; 25% of windows deliberately contain no rekvizitai, so the model doesn't learn to hallucinate them. - Dataset (
rinkinys.pt): tokenized train/eval tensors built from the labeled windows. - This is a separate, task-specific dataset built from scanner-visited pages — not derived from the
NUS-LT-PII-corpusused to train the base model.
Intended Use
Local, offline rekvizitai-extraction step inside the domain scanner.
How to Use
from transformers import pipeline
ner = pipeline(
"token-classification",
model="VMIBotukasMokyklinukas/nus-lt-rekvizitai",
aggregation_strategy="first",
)
text = "UAB Pavyzdys, įmonės kodas 123456789, PVM kodas LT123456789, adresas Gedimino pr. 1, Vilnius."
for ent in ner(text):
print(ent["entity_group"], "→", ent["word"])
License
Fine-tuned from a model released under the NewGenLTU OpenRAIL-D licence; this derivative carries the same licence terms and restrictions — see the base dataset's LICENSE.txt for full terms. This repository is private.
Citation
This model is a fine-tune built on top of the NUS Lithuanian PII Detection Model.
@misc{nus_lt_pii_model_2026,
author = {{Vytautas Magnus University} and {Kaunas University of Technology}},
title = {NUS Lithuanian PII Detection Model},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/VytautoDidziojoUniversitetas/NUS-LT-PII-xlm-roberta-large},
note = {Developed under the New Generation Lithuania plan, project 02-100-K-0001.}
}