Skip to content

CJKfuzz is a Python library for supporting fuzzy matching chinese string.

License

Notifications You must be signed in to change notification settings

eddielin0926/cjkfuzz

Repository files navigation

CJKfuzz

Supported Python Versions PyPI version

Prerequisites

  • Python 3.9+

Installation

From PyPI

pip install cjkfuzz

From Source

pip install git+https://github.com/eddielin0926/cjkfuzz.git

Usage

Ratio

>>> from cjkfuzz import fuzz
>>> fuzz.ratio("你好", "妳好")
1.0

Process

>>> from cjkfuzz import process
>>> process.extract("你好", ["妳好", "你好嗎?"])
[(1.0, '妳好')]

License

This project is licensed under the terms of the MIT License