# Introduction
## Install package
```shell
pip install cn_detect
```
## Example Usage:
```python
from cn_detect.detect import ChineseNameDetect
# Basic
detector = ChineseNameDetect()
detector.recognize_excel_by_column(excel_file_path='myfile.xlsx', column='Name')
# Use your own family name list, and the family_name_file must be *.txt file
detector = ChineseNameDetect(family_name_file='family_name.txt')
detector.recognize_excel_by_column(excel_file_path='myfile.xlsx', column='Name')
```
Raw data
{
"_id": null,
"home_page": "https://www.linkedin.com/in/chandlersong/",
"name": "cn-detect",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "excel chinese detector recognizer",
"author": "chandler song",
"author_email": "275737875@qq.com",
"download_url": "https://files.pythonhosted.org/packages/50/58/89e634bd7408ce5671f498e6562e8185c0d95173ca4cce9b7b029b30e7bc/cn_detect-1.1.0.tar.gz",
"platform": "all",
"description": "# Introduction\r\n## Install package\r\n```shell\r\npip install cn_detect\r\n```\r\n## Example Usage:\r\n```python\r\nfrom cn_detect.detect import ChineseNameDetect\r\n\r\n# Basic\r\ndetector = ChineseNameDetect() \r\ndetector.recognize_excel_by_column(excel_file_path='myfile.xlsx', column='Name')\r\n\r\n# Use your own family name list, and the family_name_file must be *.txt file\r\ndetector = ChineseNameDetect(family_name_file='family_name.txt')\r\ndetector.recognize_excel_by_column(excel_file_path='myfile.xlsx', column='Name')\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Recognize Chinese Name of",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://www.linkedin.com/in/chandlersong/"
},
"split_keywords": [
"excel",
"chinese",
"detector",
"recognizer"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "505889e634bd7408ce5671f498e6562e8185c0d95173ca4cce9b7b029b30e7bc",
"md5": "5cea8cc02fa3a0101c4d8e4fa200544f",
"sha256": "2b4e1cd0d2a4adc9a75051deef68127627fcf0332abd61a63888c0de44ab667f"
},
"downloads": -1,
"filename": "cn_detect-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "5cea8cc02fa3a0101c4d8e4fa200544f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4235,
"upload_time": "2024-06-23T06:17:19",
"upload_time_iso_8601": "2024-06-23T06:17:19.833433Z",
"url": "https://files.pythonhosted.org/packages/50/58/89e634bd7408ce5671f498e6562e8185c0d95173ca4cce9b7b029b30e7bc/cn_detect-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-23 06:17:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "cn-detect"
}