Skip to main content

Implementation of phonetic Polyphon algorithm (PyO3 core wrapper)

Project description

About

It's an effective implementation of phonetic Polyphon algorithm.

Original paper: «Polyphon: An Algorithm for Phonetic String Matching in Russian Language».

Authors: Viacheslav V. Paramonov, Alexey O. Shigarov, Gennagy M. Ruzhnikov, Polina V. Belykh.

We propose a new phonetic algorithm to string matching in Russian language without transliteration from Cyrillic to Latin characters. It is based on the rules of sounds formation in Russian language.

Usage

Add the dependency:

$ pip install polyphon

And then use:

from polyphon import encode

print(encode("литие")) # лата

Note: encode works on a single word and removes any non-Russian characters (including spaces). If you want to encode multiple words, split them first and encode each separately.

This is a wrapper of Rust implementation. The repo is here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polyphon-1.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polyphon-1.0.2-cp37-abi3-win_amd64.whl (181.8 kB view details)

Uploaded CPython 3.7+Windows x86-64

File details

Details for the file polyphon-1.0.2.tar.gz.

File metadata

  • Download URL: polyphon-1.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.5

File hashes

Hashes for polyphon-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5d47edc7091ec5707b278622fd46ccaf89e3a19199da99fea9efc5f877464fc5
MD5 599fdec8adbcae9746358e215f988252
BLAKE2b-256 afad1f03b92523a4a2c585802d8d7328114540479a9baed292db22ed82cf82df

See more details on using hashes here.

File details

Details for the file polyphon-1.0.2-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: polyphon-1.0.2-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 181.8 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.5

File hashes

Hashes for polyphon-1.0.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a205ac79cf791b0372540955bb2f6e6c3304c0d48e735bacbdd8c33c2d6006fb
MD5 f8b98baf32e3d6a20d38cb84b13f0768
BLAKE2b-256 771793463a85fec0421bce5897ff0cb61ff6d00587f3db6618f423bb8a7b270b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page