Metadata-Version: 2.1
Name: companynameparser
Version: 0.1.3
Summary: Chinese Company Name Parser and Extraction Tool,Company name Recognition Utilities
Home-page: https://github.com/shibing624/companynameparser
Author: XuMing
Author-email: xuming624@qq.com
License: Apache License 2.0
Description: # companynameparser
        [![PyPI version](https://badge.fury.io/py/companynameparser.svg)](https://badge.fury.io/py/companynameparser)
        [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](CONTRIBUTING.md)
        [![License Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
        ![Language](https://img.shields.io/badge/Language-Python-blue.svg)
        ![Python3](https://img.shields.io/badge/Python-3.X-red.svg)
        
        company name parser, extract company name brand. 中文公司名称分词工具，支持公司名称中的地名，品牌名（主词），行业词，公司名后缀提取。
        
        # Feature
        
        对公司名文本解析，识别并提取地名、品牌名、行业词、公司名后缀词。
        
        # Evaluate
        
        评估结果：
        - 准确率：
        - 召回率：
        
        # Install
        
        - 全自动安装：pip install companynameparser
        - 半自动安装：
        ```
        git clone https://github.com/shibing624/companynameparser.git
        cd companynameparser
        python setup.py install
        ```
        通过以上两种方法的任何一种完成安装都可以。如果不想安装，可以下载github源码包，安装下面依赖再使用。
        
        # Usage
        
        - Extract Company Name
        
        ```python
        import companynameparser
        
        company_strs = [
            "武汉海明智业电子商务有限公司",
            "泉州益念食品有限公司",
            "武汉蓝天医院",
        ]
        for i in company_strs:
            r = companynameparser.parse(i)
            print(r)
        ```
        
        output:
        ```
        {'place': '武汉', 'brand': '海明智业', 'trade': '电子商务', 'suffix': '有限公司', 'symbol': ''}
        {'place': '泉州', 'brand': '益念', 'trade': '食品', 'suffix': '有限公司', 'symbol': ''}
        {'place': '武汉', 'brand': '蓝天', 'trade': '', 'suffix': '医院', 'symbol': ''}
        ```
        > 程序的此处输入`company_strs`可以是任意的可迭代类型，如list，tuple，set类型等;
        
        > 输出的是一个dict。
        
        
        ## Command line usage
        - 命令行模式
        
        支持批量提取地址的省市区信息：
        ```
        python3 -m companynameparser company_demo.txt -o out.csv
        
        usage: python3 -m companynameparser [-h] -o OUTPUT input
        @description:
        
        positional arguments:
          input                 the input file path, file encode need utf-8.
        
        optional arguments:
          -h, --help            show this help message and exit
          -o OUTPUT, --output OUTPUT
                                the output file path.
        ```
        > 输入文件：`company_demo.txt`；输出文件：`out.csv`，地名、品牌名、行业名、后缀名以`\t`间隔
        
        
        ## Todo
        - [x] 补充中国三级地名，优化地名提取效果
        - [ ] 优化品牌名边界问题
        - [ ] 多个行业词提取
        
        
        ## Contribute
        
        项目代码还很粗糙，如果大家对代码有所改进，欢迎提交回本项目
        ，在提交之前，注意以下两点：
        
         - 在`tests`添加相应的单元测试
         - 使用`python setup.py test`来运行所有单元测试，确保所有单测都是通过的
        
        之后即可提交PR。
        
        ## Reference
        
        * [addressparser](https://github.com/shibing624/addressparser)
        
Keywords: NLP,Simplified Chinese,Chinese geographic information
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Natural Language :: Chinese (Traditional)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Text Processing
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Linguistic
Description-Content-Type: text/markdown
