Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/am-mohammadi/NameGenderFA
- Owner: am-mohammadi
- License: mit
- Created: 2023-06-17T12:25:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-16T15:01:31.000Z (about 1 year ago)
- Last Synced: 2024-05-29T05:12:40.477Z (4 months ago)
- Language: Python
- Size: 130 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NameGenderFA
Detecting the gender of Persian names with automatic cleaning of inputhttps://github.com/am-mohammadi/NameGenderFA
Installing:
```
pip install NameGenderFA
```https://pypi.org/project/NameGenderFA/
__________________________________________________
Example:```python
from NameGenderFA import NameGenderFAgd=NameGenderFA.Gender_detector()
name='علی123! عزیزی'
gender, cleaned_name=gd.detect(name)
```
__________________________________________________
output:
('male', 'علی')
__________________________________________________
gender: male/female/Nonecleaned_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