Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/am-mohammadi/NameGenderFA

Detecting gender of Persian names with auto cleaning the input
https://github.com/am-mohammadi/NameGenderFA

Last synced: about 2 months ago
JSON representation

Detecting gender of Persian names with auto cleaning the input

Awesome Lists containing this project

README

        

# NameGenderFA
Detecting the gender of Persian names with automatic cleaning of input

https://github.com/am-mohammadi/NameGenderFA

Installing:
```
pip install NameGenderFA
```

https://pypi.org/project/NameGenderFA/
__________________________________________________
Example:

```python
from NameGenderFA import NameGenderFA

gd=NameGenderFA.Gender_detector()

name='علی123! عزیزی'

gender, cleaned_name=gd.detect(name)
```
__________________________________________________
output:
('male', 'علی')
__________________________________________________
gender: male/female/None

cleaned_name: cleaned name

Gender_detector.prefixes: removes some perfixes like "سید", you can set it manually

Gender_detector.replace_chars: replace some characters like 'ي' to 'ی' or 'السادات' to ''

Also, punctuation and numbers will be removed.

Thanks to https://github.com/peymanslh/persian-gender-detection for names dataset