A tool that divides Japanese full names into family and given names.
100K+
⚠️ Important Notice: The REST API implementation has been migrated to the namedivider-rs repository for further development and performance improvements.
The previous Python-based API is available in the ./old/ directory for backward compatibility only. However, we strongly recommend using the new Rust-based API for better performance and reliability:
A high-performance REST API for dividing Japanese full names into family names and given names, built with Rust for maximum efficiency.
docker pull rskmoi/namedivider-api:0.3.0
docker run -d -p 8000:8000 rskmoi/namedivider-api:0.3.0
curl -X POST -H "Content-Type: application/json" -d '{"names":["竈門炭治郎", "竈門禰豆子"]}' localhost:8000/divide
or
curl -X POST -H "Content-Type: application/json" -d '{"names":["竈門炭治郎", "竈門禰豆子"], "mode": "basic"}' localhost:8000/divide
curl -X POST -H "Content-Type: application/json" -d '{"names":["竈門炭治郎", "竈門禰豆子"], "mode": "gbdt"}' localhost:8000/divide
{
"divided_names":
[
{"family":"竈門","given":"炭治郎","separator":" ","score":0.3004587452426102,"algorithm":"kanji_feature"},
{"family":"竈門","given":"禰豆子","separator":" ","score":0.30480429696983175,"algorithm":"kanji_feature"}
]
}
| Algorithm | Accuracy | Speed | Use Case |
|---|---|---|---|
| Basic Name Divider | 99.3% | Ultra Fast | High-volume processing, real-time applications |
| GBDT Name Divider | 99.9% | Fast | Maximum accuracy requirements |
Divide Japanese full names into family and given names.
Request Body:
{
"names": ["竈門炭治郎", "竈門禰豆子"],
"mode": "basic"
}
Response:
{
"divided_names":
[
{"family":"竈門","given":"炭治郎","separator":" ","score":0.3004587452426102,"algorithm":"kanji_feature"},
{"family":"竈門","given":"禰豆子","separator":" ","score":0.30480429696983175,"algorithm":"kanji_feature"}
]
}
Parameters:
names (required): Array of undivided Japanese names (max 1,000 items)mode (optional): Division algorithm - "basic" (default) or "gbdt"Response Fields:
family: Family name portiongiven: Given name portionseparator: Separator character (always " ")score: Confidence score (0.0 - 1.0)algorithm: Algorithm used for divisionWe provide minimal client samples for multiple programming languages including TypeScript/JavaScript, Python, Go, PHP, Ruby, C#, and Kotlin.
For detailed examples and implementation code, please see: Client Samples
Content type
Image
Digest
sha256:ae1e0119b…
Size
270 MB
Last updated
over 1 year ago
docker pull rskmoi/namedivider-api