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.1.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.1-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.1.tar.gz.

File metadata

  • Download URL: polyphon-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e6e54558680fcf63bf92fad4aa65c316ab43231814751d2f04b5a8333519dcb3
MD5 51512c51b23b981e8b09d04b7da2136c
BLAKE2b-256 c35f8cfe0ff1520223dfb29ea39ef8210f339e6c733d18508c46006097b14175

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polyphon-1.0.1-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.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 50a9751fc0189b466d35e66a339463946eb2126f2bb51d6bec020b342186676d
MD5 b2c88e1e71f0337882faadf0392e01fe
BLAKE2b-256 1f2c6dd50d222f35e1c29be6e8f15077618e264c9cd9f724167ec646e7c91899

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