Metadata-Version: 2.1
Name: char-featurizer
Version: 1.0.0
Summary: 中文字符特征提取工具，可以从中文汉字中提取出拼音、声调、拆分偏旁部首、四角编码，并且可以转化为tensor作为模型的输入。
Home-page: https://github.com/charlesXu86/char_featurizer
Author: xu
Author-email: charlesxu86@163.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.4
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: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Description-Content-Type: text/x-rst

char_featurizer
==========================

**char_featurizer** 是一个汉字字符特征提取工具，他可以提取汉字的字音（包括声母、韵母、声调）、字形（偏旁、部首）、四角符号等信息。
同时可以将这些特征信息转换为tensor，作为模型的输入特征。这个项目是在安德森大佬的 `字符提取工具 <https://github.com/howl-anderson/hanzi_char_featurizer>`_ 的基础上做了优化整合

目前 **char_featurizer** 支持的功能有：

    1、字形特征提取

    2、字音特征提取

    3、四角编码提取

    4、tensor转换


二、安装使用
============

1、安装
>>>>>>>>>>>>>>>>>>

.. code:: python

    pip install char_featurizer

2、使用
>>>>>>>>>>>>>>>>>>>

1、字符特征提取

.. code:: python

    from char_featurizer import Featurizer

    featurizer = Featurizer()

    data = '明天去你家玩'

    result = featurizer.featurize(data)
    print(result)

2、作为特征输入模型

3、相关资源
>>>>>>>>>>>>>>>>>>>>>>

1、`汉字四角号码在线查询工具 <https://sijiao.911cha.com>`_



三、Update News
======================

    * 2020.5.4  完成V1版本


四、Resources
======================


