跳转到主要内容

将公司名称与名称和变体数据库进行匹配

项目描述

Match organization names. See docs/ directory for more info.

Basic usage:

from matchco import subsequences, NoMatchError, bestmatch
name = "mygreat korp"
candidate1 = ("My Great Corp, Inc.", "My Great Corp", subsequences("My Great Corp".lower()))
candidate2 = ("Other Corp Inc.", "Other Corp", subsequences("Other Corp Inc.".lower()))
candidates = (candidate1, candidate2)
try:
match = bestmatch(name, candidates, multiple=True)
except NoMatchError:
match = None
print(match or "no match for '%s' found" % name)


项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解有关安装软件包的更多信息。

源分布

matchco-1.3.tar.gz (16.7 kB 查看哈希值)

上传时间:

构建分布

matchco-1.3-py3-none-any.whl (17.2 kB 查看哈希值)

上传时间: Python 3

由以下支持