mecab-python3
fuzzywuzzy
Our great sponsors
mecab-python3 | fuzzywuzzy | |
---|---|---|
2 | 20 | |
492 | 9,067 | |
- | 0.0% | |
6.9 | 0.0 | |
13 days ago | about 1 year ago | |
C++ | Python | |
GNU General Public License v3.0 or later | GNU General Public License v2.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mecab-python3
-
Open source TTS for bajs
Read this first! Installing dependencies (tts to be exact) will probably fail, since some of the modules are do not have wheels compiled for m1 chips, so do pip install --no-dependencies tts, then manually install them one by one that you need. If you get torchaudio errors like torchaudio/lib/libtorchaudio.so, 0x0006): Symbol not found: __ZN2at8internal15invoke_parallelExxxRKNSt3__18functionIFvxxEEE, uninstall pytorch and install it with torchaudio conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 -c pytorch. If you see ModuleNotFoundError: [!] Config for vits cannot be found, run python and try importing tts core import TTS.tts.configs.vits_config. I will probably fail with mecab error, you can try building it from source to install mecab, but it didn't work for me, so since this lib is only used for japanese tts, I decided to comment out the imports in site-packages/TTS/tts/utils/text/japanese/phonemizer.py, same for jieba in /site-packages/TTS/tts/utils/text/chinese_mandarin/phonemizer.py just because it is too heavy. Last error: No espeak backend found. Install espeak-ng or espeak to your system, soulution for macos: brew install espeak.
-
Thanks to this sub, we now have an Anki deck for Persona 5 Royal. Spreadsheet with Jp and Eng side by side too.
Convert the line to full furigana with a morphological analyzer like mecab. Doesn't have to be perfect.
fuzzywuzzy
-
Need help solving a subtitles problem. The logic seems complex
Do fuzzy matching (something like fuzzywuzzy maybe) to see if the the words line up (allowing for wrong words). You'll need to work out how to use scoring to work out how well aligned the two lists are.
-
Thanks to this sub, we now have an Anki deck for Persona 5 Royal. Spreadsheet with Jp and Eng side by side too.
Convert the original lines to full furigana and do a fuzzy match. (For reference, the original line is 貴方がこれまでに得てきた力、存分に発揮してくださいね。) You can do a regional search using the initial scene data (E60) first, and if the confidence is low, go for a slower full search.
-
Fuzzy search
It's now known as "thefuzz", see https://github.com/seatgeek/fuzzywuzzy
-
import fuzzywuzzy
fuzzywuzzy is actually just called the thefuzz now.
-
I made a bot that stops muck chains, here are the phrases that he looks for to flag the comment as a muck comment. Are there any muck forms I forgot about?
You can have a look at this library to use fuzzy search instead of looking for plaintext muck: https://github.com/seatgeek/fuzzywuzzy
- Test if two strings are similar?
-
How would you approach this
To deal with comparing the string, I found FuzzyWuzzy ratio function that is returning a score of how much the strings are similar from 0-100.
- [D] Matching Records that "don't Exactly Match"
- Text Detection
- FuzzyWuzzy: Fuzzy String Matching in Python
What are some alternatives?
manga-ocr - Optical character recognition for Japanese text, with the main focus being Japanese manga
jellyfish - 🪼 a python library for doing approximate and phonetic matching of strings.
TTS - 🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
thefuzz - Fuzzy String Matching in Python
Levenshtein - The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity
ftfy - Fixes mojibake and other glitches in Unicode text, after the fact.
TextDistance - 📐 Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.
chardet - Python character encoding detector
RapidFuzz - Rapid fuzzy string matching in Python using various string metrics
pyfiglet - An implementation of figlet written in Python
汉字拼音转换工具(Python 版) - 汉字转拼音(pypinyin)
gensim - Topic Modelling for Humans