Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🪼 a python library for doing approximate and phonetic matching of strings.

License

NotificationsYou must be signed in to change notification settings

jamesturk/jellyfish

Repository files navigation

jellyfish is a library for approximate & phonetic matching of strings.

Source:https://github.com/jamesturk/jellyfish

Documentation:https://jamesturk.github.io/jellyfish/

Issues:https://github.com/jamesturk/jellyfish/issues

PyPI badgeTest badgeCoverallsTest Rust

Included Algorithms

String comparison:

  • Levenshtein Distance
  • Damerau-Levenshtein Distance
  • Jaccard Index
  • Jaro Distance
  • Jaro-Winkler Distance
  • Match Rating Approach Comparison
  • Hamming Distance

Phonetic encoding:

  • American Soundex
  • Metaphone
  • NYSIIS (New York State Identification and Intelligence System)
  • Match Rating Codex

Example Usage

>>>importjellyfish>>>jellyfish.levenshtein_distance('jellyfish','smellyfish')2>>>jellyfish.jaro_similarity('jellyfish','smellyfish')0.89629629629629637>>>jellyfish.damerau_levenshtein_distance('jellyfish','jellyfihs')1>>>jellyfish.metaphone('Jellyfish')'JLFX'>>>jellyfish.soundex('Jellyfish')'J412'>>>jellyfish.nysiis('Jellyfish')'JALYF'>>>jellyfish.match_rating_codex('Jellyfish')'JLLFSH'

[8]ページ先頭

©2009-2025 Movatter.jp