Downloads · 30 days
27
12% of all-time downloads
kainoj/LiquidAI-LFM2-1.2B-ja-pii-finetuned
LiquidAI-LFM2-1.2B-ja-pii-finetuned is a text generation model from kainoj. Use it when you need the model to write or continue text. It is set up for transformers.
LiquidAI/LFM2-1.2B finetuned on Japanese content to output JSON with PII. The model should output only single json with four fields:
Downloads · 30 days
27
12% of all-time downloads
All-time downloads
224
Public
Parameters
1.2B
2.3 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors2.3 GB · 100%
From the Hugging Face model README
LiquidAI/LFM2-1.2B finetuned on Japanese content to output JSON with PII. The model should output only single json with four fields:
{
"full_name": "name of the person",
"company_name": "name of the company",
"address": "address of the plance",
"phone_number": "phone number"
}
Coded during Liquid AI hackathon in Tokyo.
Evaluation on test split of stockmark/ner-wikipedia-dataset:
0.4250 --> 1.0 after fine-tunning.That dataset is somehow simple. We generated 64 samples of long contracts containing PII in Japanese. We used it only to evaluate the final perfomrance of the models
0.0312 --> 1.0 after fine-tunning.We use an exact match on generated JSON. The output of SLM must be a valid JSON with exactly four required fields, no less, no more.
lfm1.0Use the following system prompt while extracting PIIs:
Identify and extract information matching the following schema.
Return data as a JSON object.
For each field, select most suitable value from text
If provided text does not contain sufficient information to fill out the field, make the field empty string.
Output only JSON, and output only four fields.
{
"full_name": "name of the person",
"company_name": "name of the company",
"address": "address of the plance",
"phone_number": "phone number"
}