Downloads · 30 days
5
6% of all-time downloads
DarthGlennium/flan-t5-land-survey-extractor2
flan-t5-land-survey-extractor2 is a text generation model from DarthGlennium. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of FLAN-T5 for extracting structured information from land survey documents.
Downloads · 30 days
5
6% of all-time downloads
All-time downloads
82
Public
Parameters
248M
991 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of FLAN-T5 for extracting structured information from land survey documents.
This model extracts the following fields from land survey OCR text:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("DarthGlennium/flan-t5-land-survey-extractor2")
model = AutoModelForSeq2SeqLM.from_pretrained("DarthGlennium/flan-t5-land-survey-extractor2")
# Move to GPU if available
device = "cuda" if torch.cuda.is_available() else "cpu"
model.to(device)
# Your OCR text here
text = "Your land survey document text..."
# Tokenize input
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=768)
inputs = {k: v.to(device) for k, v in inputs.items()}
# Generate prediction
with torch.no_grad():
outputs = model.generate(
**inputs,
max_length=512,
num_beams=5,
early_stopping=True,
no_repeat_ngram_size=3,
length_penalty=1.0
)
# Decode result
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
The model was fine-tuned on land survey documents with the following configuration:
The model outputs JSON-formatted strings with the extracted fields:
{
"Land Surveyor": "John Doe",
"Surveyed For": "Jane Smith",
"Certified date": "2024-01-15",
"Total Area": "1000",
"Unit of Measurement": "square meters",
"Address": "123 Main St",
"Parish": "St. Andrew",
"LT Num": "LT-12345"
}
If you use this model, please cite:
@misc{flan-t5-land-survey,
author = {DarthGlennium},
title = {FLAN-T5 Land Survey Information Extractor},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/DarthGlennium/flan-t5-land-survey-extractor2}
}