Skip to content

khanh1998/vietnamese-name-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Predict the gender of a Vietnamese name

LSTM version: Open In Colab
BERT version: Open In Colab
The version of the deployed model is a two-layer bidirectional LSTM.
Send a POST request to https://gender-regconition.herokuapp.com/gender with only one parameter named names which contains names separated by a comma. The response is the probability of the name being male or female.
Example: https://gender-regconition.herokuapp.com/gender?names=quốc khánh,nguyễn thanh nhàn,hương,lan hương
Response:

{
    "result": [
        [
            "quốc khánh",
            "nam",
            99.99995422363281
        ],
        [
            "nguyễn thanh nhàn",
            "nữ",
            99.87543487548828
        ],
        [
            "hương",
            "nam",
            61.728614807128906
        ],
        [
            "lan hương",
            "nữ",
            97.12590789794922
        ]
    ]
}

Generate names

Open In Colab
Character level base, four layers LSTM.
Here a some generated names by the model with seed b: bùi chí công
bùi kiên giang
bùi lọ khuê
bùi sơn lâm
bùi bảo lễ
bùi ngọc khanh
bùi thanh hoa
bùi văn nhật
bùi thành nhung
bùi hoài giang

The model has not deployed yet.

About

An NLP project specializes in Vietnamese name

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages