Document model provenance and typed vocabulary
Browse files
README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
tags:
|
| 5 |
+
- name-generation
|
| 6 |
+
- character-level
|
| 7 |
+
- lstm
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Naamkaran
|
| 11 |
+
|
| 12 |
+
Naamkaran is a character-level LSTM that generates candidate names conditioned
|
| 13 |
+
on a starting character and a binary gender input. The Python package exposes
|
| 14 |
+
generation controls for the ending character, maximum length, sample count,
|
| 15 |
+
and softmax temperature.
|
| 16 |
+
|
| 17 |
+
## Files
|
| 18 |
+
|
| 19 |
+
- `naamkaran.pt`: PyTorch state dictionary for the generator.
|
| 20 |
+
- `vocabulary.parquet`: ordered character vocabulary with one non-null string
|
| 21 |
+
column named `token`.
|
| 22 |
+
|
| 23 |
+
The vocabulary is Parquet rather than a serialized scikit-learn vectorizer.
|
| 24 |
+
This makes the token order explicit and removes version-sensitive pickle
|
| 25 |
+
loading from inference.
|
| 26 |
+
|
| 27 |
+
## Training data
|
| 28 |
+
|
| 29 |
+
The model was trained on names from the early 2022 Florida voter registration
|
| 30 |
+
data. The package documentation cites the source dataset at
|
| 31 |
+
<https://doi.org/10.7910/DVN/UBIG3F>.
|
| 32 |
+
|
| 33 |
+
## Intended use
|
| 34 |
+
|
| 35 |
+
Use this model to generate synthetic name-like strings for demonstrations,
|
| 36 |
+
testing, and exploratory applications. It is not a source of verified personal
|
| 37 |
+
names or demographic labels.
|
| 38 |
+
|
| 39 |
+
## Limitations
|
| 40 |
+
|
| 41 |
+
The training population and collection period constrain what the model learns.
|
| 42 |
+
Generated strings can reproduce spelling patterns, imbalance, errors, and
|
| 43 |
+
social biases present in the voter data. The binary gender conditioning does
|
| 44 |
+
not represent the full range of gender identities. Do not use generated names
|
| 45 |
+
to infer identity, ethnicity, citizenship, eligibility, or other sensitive
|
| 46 |
+
attributes, and do not treat them as representative population samples.
|
| 47 |
+
|
| 48 |
+
## Reproducible loading
|
| 49 |
+
|
| 50 |
+
The `naamkaran` package pins this repository to a full commit SHA. Downstream
|
| 51 |
+
code should also pass a full commit SHA as `revision` when downloading files.
|