kanasim


Namekanasim JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryCalculator of phonetic similarity (distance) between Japanese kana characters
upload_time2024-10-18 04:22:59
maintainerNone
docs_urlNone
authorshimajiroxyz
requires_python>=3.11
licenseApache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
keywords distance kana phonome similarity
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # kanasim

This repository provides phonetic similarity data for kana, calculated using a Japanese acoustic model, along with sample programs that utilize this data to compute word similarity. This similarity data is used in the lyric creation support app "Soramimic" (https://soramimic.com). It is expected to be useful in applications where quantitatively evaluating phonetic similarity is important, such as in the automatic generation of puns or rap lyrics, not just for misheard lyrics.

#### English | [日本語](https://github.com/jiroshimaya/kanasim/blob/main/README.ja.md)

## Phonetic Similarity Data
This data represents the distances between consonants and between vowels, calculated using the acoustic model from the open source speech recognition software [julius](https://github.com/julius-speech/julius). It is stored in the following file:

- [Kana-Phoneme-Similarity Correspondence Table](src/kanasim/data/biphone/kana_to_phonome_distance.csv)

The column names in CSV format are as follows:

- kana1: The first kana (mora)
- kana2: The second kana (mora)
- consonant1: The consonant corresponding to kana1
- consonant2: The consonant corresponding to kana2
- vowel1: The vowel corresponding to kana1
- vowel2: The vowel corresponding to kana2
- distance_consonant: The distance between consonant1 and consonant2
- distance_vowel: The distance between vowel1 and vowel2

By managing the distances between consonants and vowels separately, it is possible to adjust the weighting according to the application. The following example outputs the similarity of kana when consonants and vowels are added together in a 1:1 ratio.

```Python
import pandas as pd
# Load the Kana-Phoneme-Similarity Correspondence Table
kana_df = pd.read_csv("src/kanasim/data/biphone/kana_to_phonome_distance.csv")
# Convert the Kana-Phoneme-Similarity Correspondence Table to a dictionary
kana_dict = {}
for _, row in kana_df.iterrows():
    kana_dict[(row["kana1"], row["kana2"])] = row["distance_consonant"] + row["distance_vowel"]

# Print the distance between kana
kana1, kana2 = "カ", "ナ"
print(f"distance between {kana1} and {kana2}: {kana_dict[(kana1, kana2)]}")

kana1, kana2 = "カ", "サ"
print(f"distance between {kana1} and {kana2}: {kana_dict[(kana1, kana2)]}")

kana1, kana2 = "バ", "マ"
print(f"distance between {kana1} and {kana2}: {kana_dict[(kana1, kana2)]}")    
```

```
distance between カ and ナ: 134.181978
distance between カ and サ: 130.812428
distance between バ and マ: 123.74445
```

## Sample code
This sample code demonstrates how to calculate the weighted edit distance and Hamming distance between katakana words using phonetic similarity data.
In the sample code, the similarity of the same phoneme is used as an offset by default and subtracted from the actual value. This means that the replacement cost for the same phoneme is set to 0. This is to prevent the insertion cost from being overestimated and to ensure that the calculation of the edit distance aligns with intuition when the replacement cost for the same phoneme is greater than 0.
### Installation

- Install from source (Recommend)

```
pip install .
pip install jamorasep
```

- Install from PyPI

```
pip install kanasim
pip install jamorasep
```

### Using in terminal

```sh
# Edit distance
python scripts/calculate_weighted_edit_distance.py カナダ バハマ

# Hamming distance
python scripts/calculate_weighted_edit_distance.py カナダ バハマ -dt

# Sort word list based on distance
python scripts/sort_by_weighted_edit_distance.py シマウマ -w data/sample/pro
nunciation.txt 
```
### Using in Python code

#### Distance Calculation
```Python
from kanasim import create_kana_distance_calculator

calculator = create_kana_distance_calculator()
distance = calculator.calculate("カナダ", "バハマ")
print(distance)
```

```
22.74598650000001
```

#### Batch Processing

```python
from kanasim import create_kana_distance_calculator

calculator = create_kana_distance_calculator()

words = ["カナダ", "タハラ"]
wordlist = ["カナダ", "バハマ", "タバタ", "サワラ", "カナタ", "カラダ", "カドマ"]
distances = calculator.calculate_batch(words, wordlist)
for i, target_word in enumerate(words):
    print(f"distance between {target_word} and ...")
    for source_word, distance in zip(wordlist, distances[i]):
        print(source_word, distance)
    print()
```

```
distance between カナダ and ...
カナダ 0.0
バハマ 22.74598650000001
タバタ 14.328020000000006
サワラ 16.4028395
カナタ 4.468167000000005
カラダ 3.967136
カドマ 16.998950500000007

distance between タハラ and ...
カナダ 16.56518150000001
バハマ 11.308950499999998
タバタ 14.952468
サワラ 12.972008500000001
カナタ 19.041203000000007
カラダ 14.90169000000001
カドマ 20.102040000000006
```
#### Ranking

```Python
from kanasim import create_kana_distance_calculator

calculator = create_kana_distance_calculator()

word = "カナダ"
wordlist = ["カナダ", "バハマ", "タバタ", "サワラ", "カナタ", "カラダ", "カドマ"]
ranking = calculator.get_topn(word, wordlist, n=10)
for i, (w, d) in enumerate(ranking, 1):
    print(f"{i}: {w} ({d})")
```

```
1: カナダ (0.0)
2: カラダ (3.967136)
3: カナタ (4.468167000000005)
4: タバタ (14.328020000000006)
5: サワラ (16.4028395)
6: カドマ (16.998950500000007)
7: バハマ (22.74598650000001)
```

#### Weight Adjustment

```Python
from kanasim import create_kana_distance_calculator

# The vowel_ratio parameter determines the weight of vowels when calculating the distance between kana.
# By default, it is set to 0.5, meaning vowels and consonants are weighted equally (1:1).
calculator = create_kana_distance_calculator(vowel_ratio=0.2)

word = "カナダ"
wordlist = ["カナデ", "サラダ"]

topn = calculator.get_topn(word, wordlist, n=10)
print("vowel_ratio=0.2")
for i, (w, d) in enumerate(topn, 1):
    print(f"{i}: {w} ({d})")

calculator = create_kana_distance_calculator(vowel_ratio=0.8)

topn = calculator.get_topn(word, wordlist, n=10)
print("vowel_ratio=0.8")
for i, (w, d) in enumerate(topn, 1):
    print(f"{i}: {w} ({d})")
```

```
vowel_ratio=0.2
1: カナデ (8.397902000000006)
2: サラダ (11.487954600000004)
vowel_ratio=0.8
1: サラダ (7.347296400000003)
2: カナデ (15.578681000000007)
```


## Other Phonetic Similarity Related Files
In addition to the [Kana-Phoneme-Similarity Correspondence Table](src/kanasim/biphone/kana_to_phonome_distance.csv), there are three other files. These files are integrated into the Kana-Phoneme-Similarity Correspondence Table, so you usually do not need to refer to them directly.

- [Consonant Distance](src/kanasim/data/biphone/distance_consonants_bi.csv)
- [Vowel Distance](src/kanasim/data/biphone/distance_vowels_bi.csv)
- [Kana-Phoneme Correspondence Table](src/kanasim/data/biphone/kana2phonome_bi.csv)

### Consonant and Vowel Distances
The CSV format includes the following column names:

- phonome1: The first phoneme
- phonome2: The second phoneme
- distance: The distance between phonome1 and phonome2

Phonons are described in a biphone format with adjacent phonemes, excluding silence (sp), geminate consonants (q), and nasal sounds (N) ([reference](https://ftp.jaist.ac.jp/pub/osdn.net/julius/47534/Juliusbook-4.1.5-ja.pdf#page=37)).
For consonants, it is a biphone with the following vowel. The following vowel is separated by `+`.
For example, `b+a` means a consonant b immediately before a vowel a.
For vowels, it is a biphone with the preceding consonant. The preceding consonant is separated by `-`.
For example, `b-a` means a vowel a immediately after a consonant b.

A smaller distance indicates a higher similarity. Although referred to as "distance," swapping phonome1 and phonome2 results in different values, so it does not meet the strict definition of distance. Also, the "distance" of the same phoneme is not zero.

### Kana-Phoneme Correspondence Table
The CSV format includes the following column names:
- kana: Kana (mora) written in katakana. Long vowels are treated as a single element combined with the preceding kana.
- consonant: The phoneme representing the consonant of the kana in biphone format. If the kana is a single vowel, geminate consonant, or nasal sound, it is represented as "sp".
- vowel: The phoneme representing the vowel of the kana in biphone format. If the kana is a geminate consonant (q), nasal sound (N), or silence (sp), it corresponds to the respective phoneme.
- constant_mono: Optional. The phoneme representing the consonant of the kana in monophone format.
- vowel_mono: Optional. The phoneme representing the vowel of the kana in monophone format.

## Data Creation Method
This was derived based on the GMM-HMM model of the Julius speech recognition model. The following method was referenced:

- [音響モデルから音素間の距離を求める | 見返すかもしれないメモ](https://yaamaa-memo.hatenablog.com/entry/2017/12/17/062435)

In simple terms, Julius has an acoustic model (HMM) for each phoneme, and the "distance" between the HMMs of two phonemes is used as a measure of similarity. The "distance" between HMMs is calculated as the probability that the output of one phoneme's HMM is produced by another phoneme's HMM.

To reduce computation time, the calculation targets for phonemes and kana are limited. For phonemes, only biphones consisting of a consonant followed by a vowel and a vowel preceded by a consonant are calculated. Although triphone formats are considered more accurate, they are not used due to the vast number of combinations. Additionally, in Japanese, consecutive consonants or vowels can occur but are not frequest, thus, they are not targeted for calculation. Regarding "distance," only the distances between consonants and between vowels are calculated, and the distance between consonants and vowels is not calculated. From the perspective of kana similarity, it is generally sufficient to match consonants and vowels separately.

## Evaluation
### Visualization
The positional relationships of phonemes calculated using the above method are shown in a diagram mapped by multidimensional scaling. Since there are too many elements in biphones, the diagram is based on monophone calculations. It can be seen that phonemes belonging to the same category, such as palatal sounds, voiced sounds, voiceless sounds, and vowels, are somewhat close to each other.

![Phoneme Positional Relationships](docs/pictures/phonome_distance_2d.png)


### Comparison with Baseline
We compare the results of the commonly used unweighted Hamming distance, a measure of phonetic similarity between words, with the proposed weighted Hamming distance. Edit distance and Hamming distance are often used to measure phonetic similarity between words. In this case, considering the application to parody lyrics, we limit the search to words with the same number of morae and obtain those with a close Hamming distance. The unweighted Hamming distance is calculated separately for vowels and consonants and then summed.

Weighted Hamming Distance (Proposed)
```
% python scripts/sort_by_weighted_edit_distance.py シマウマ -dt hamming
シラウオ 17.72447499999999
シマフグ 19.3677925
シロウオ 21.458600499999996
シマアジ 24.4898105
シマドジョー 25.773904000000005
シマハギ 25.934866999999997
ピライーバ 26.07182999999999
チゴダラ 26.469384999999992
シマダイ 27.469623499999994
ツマグロ 28.451683499999998
```

Unweighted Hamming Distance (Baseline)

```
% python scripts/sort_by_hamming_distance.py シマウマ
シマアジ 1.5
シマフグ 1.5
シラウオ 1.5
カマツカ 2.0
シマソイ 2.0
シマダイ 2.0
シマドジョー 2.0
シマハギ 2.0
シロウオ 2.0
ピライーバ 2.0
```
In the case of unweighted calculations, "シマアジ" (Shimaaji), "シマフグ" (Shimafugu), and "シラウオ" (Shirauo) have the same score. However, with weighting, the scores differ in the order of "シラウオ" (Shirauo), "シマフグ" (Shimafugu), and "シマアジ" (Shimaaji). This is likely because, in the distance data, "m" and "r" are relatively close, giving "シラウオ" (Shirauo) priority. Whether this aligns with actual perception depends on the application and requires consideration.

### Subtle Influence of vowel or consonant weights
In the sample program, vowel or consonant weights can be set when calculating distances, but because phonemes are distinguished by biphones, the influence is less apparent compared to using simple edit distance.

```Python
from kanasim import create_kana_distance_calculator

# The vowel_ratio parameter determines the weight of vowels when calculating the distance between kana.
# By default, it is set to 0.5, meaning vowels and consonants are weighted equally (1:1).
calculator = create_kana_distance_calculator(vowel_ratio=0.0)

word = "カナダ"
wordlist = ["サラダ", "コノデ"]

topn = calculator.get_topn(word, wordlist, n=10)
print("vowel_ratio=0.0")
for i, (w, d) in enumerate(topn, 1):
    print(f"{i}: {w} ({d})")
```

```
vowel_ratio=0.0
1: サラダ (12.868174000000003)
2: コノデ (16.23794400000002)
```

In the above example, because the vowel_ratio is set to 0, "コノデ" (Konode), which matches the consonants of "カナダ" (Kanada), should ideally be ranked first, but it ends up in second place. If you want to strictly prioritize specific elements like vowel matching, you might need to use unweighted edit distance.
In the manual tests conducted, the influence of vowels was found to be greater than that of consonants, and even when the vowel_ratio was set to 0, consonant matching was not prioritized. This is likely because, in Japanese, vowels often characterize the phonetics of kana, and a similar tendency is observed in this data based on Japanese acoustic models. If you want to emphasize consonant matching, using unweighted edit distance might be more appropriate.


## Citation

If you wish to cite this library or similarity data, please include the following:

```
@software{kanasim,  
  author={Jiro Shimaya},  
  title={Kanasim: Japanese Kana Distance Data and Sample Code for Similarity Calculation},  
  url={https://github.com/jiroshimaya/kanasim},  
  year={2024},  
  month={10},  
}
```

## References

- A. Lee and T. Kawahara: Julius v4.5 (2019) https://doi.org/10.5281/zenodo.2530395
- [音響モデルから音素間の距離を求める | 見返すかもしれないメモ](https://yaamaa-memo.hatenablog.com/entry/2017/12/17/062435)

# For Developers

- This project uses [uv](https://github.com/astral-sh/uv) for package management.
- This project uses [taskipy](https://github.com/taskipy/taskipy) for command management.

```
uv run task test
uv run task lint
uv run task format
```
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "kanasim",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "distance, kana, phonome, similarity",
    "author": "shimajiroxyz",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/7b/50/77ed4719ba0ebc9f294ffe2a72834bafef10a7a8bd8e05248ba658569741/kanasim-0.0.1.tar.gz",
    "platform": null,
    "description": "# kanasim\n\nThis repository provides phonetic similarity data for kana, calculated using a Japanese acoustic model, along with sample programs that utilize this data to compute word similarity. This similarity data is used in the lyric creation support app \"Soramimic\" (https://soramimic.com). It is expected to be useful in applications where quantitatively evaluating phonetic similarity is important, such as in the automatic generation of puns or rap lyrics, not just for misheard lyrics.\n\n#### English | [\u65e5\u672c\u8a9e](https://github.com/jiroshimaya/kanasim/blob/main/README.ja.md)\n\n## Phonetic Similarity Data\nThis data represents the distances between consonants and between vowels, calculated using the acoustic model from the open source speech recognition software [julius](https://github.com/julius-speech/julius). It is stored in the following file:\n\n- [Kana-Phoneme-Similarity Correspondence Table](src/kanasim/data/biphone/kana_to_phonome_distance.csv)\n\nThe column names in CSV format are as follows:\n\n- kana1: The first kana (mora)\n- kana2: The second kana (mora)\n- consonant1: The consonant corresponding to kana1\n- consonant2: The consonant corresponding to kana2\n- vowel1: The vowel corresponding to kana1\n- vowel2: The vowel corresponding to kana2\n- distance_consonant: The distance between consonant1 and consonant2\n- distance_vowel: The distance between vowel1 and vowel2\n\nBy managing the distances between consonants and vowels separately, it is possible to adjust the weighting according to the application. The following example outputs the similarity of kana when consonants and vowels are added together in a 1:1 ratio.\n\n```Python\nimport pandas as pd\n# Load the Kana-Phoneme-Similarity Correspondence Table\nkana_df = pd.read_csv(\"src/kanasim/data/biphone/kana_to_phonome_distance.csv\")\n# Convert the Kana-Phoneme-Similarity Correspondence Table to a dictionary\nkana_dict = {}\nfor _, row in kana_df.iterrows():\n    kana_dict[(row[\"kana1\"], row[\"kana2\"])] = row[\"distance_consonant\"] + row[\"distance_vowel\"]\n\n# Print the distance between kana\nkana1, kana2 = \"\u30ab\", \"\u30ca\"\nprint(f\"distance between {kana1} and {kana2}: {kana_dict[(kana1, kana2)]}\")\n\nkana1, kana2 = \"\u30ab\", \"\u30b5\"\nprint(f\"distance between {kana1} and {kana2}: {kana_dict[(kana1, kana2)]}\")\n\nkana1, kana2 = \"\u30d0\", \"\u30de\"\nprint(f\"distance between {kana1} and {kana2}: {kana_dict[(kana1, kana2)]}\")    \n```\n\n```\ndistance between \u30ab and \u30ca: 134.181978\ndistance between \u30ab and \u30b5: 130.812428\ndistance between \u30d0 and \u30de: 123.74445\n```\n\n## Sample code\nThis sample code demonstrates how to calculate the weighted edit distance and Hamming distance between katakana words using phonetic similarity data.\nIn the sample code, the similarity of the same phoneme is used as an offset by default and subtracted from the actual value. This means that the replacement cost for the same phoneme is set to 0. This is to prevent the insertion cost from being overestimated and to ensure that the calculation of the edit distance aligns with intuition when the replacement cost for the same phoneme is greater than 0.\n### Installation\n\n- Install from source (Recommend)\n\n```\npip install .\npip install jamorasep\n```\n\n- Install from PyPI\n\n```\npip install kanasim\npip install jamorasep\n```\n\n### Using in terminal\n\n```sh\n# Edit distance\npython scripts/calculate_weighted_edit_distance.py \u30ab\u30ca\u30c0 \u30d0\u30cf\u30de\n\n# Hamming distance\npython scripts/calculate_weighted_edit_distance.py \u30ab\u30ca\u30c0 \u30d0\u30cf\u30de -dt\n\n# Sort word list based on distance\npython scripts/sort_by_weighted_edit_distance.py \u30b7\u30de\u30a6\u30de -w data/sample/pro\nnunciation.txt \n```\n### Using in Python code\n\n#### Distance Calculation\n```Python\nfrom kanasim import create_kana_distance_calculator\n\ncalculator = create_kana_distance_calculator()\ndistance = calculator.calculate(\"\u30ab\u30ca\u30c0\", \"\u30d0\u30cf\u30de\")\nprint(distance)\n```\n\n```\n22.74598650000001\n```\n\n#### Batch Processing\n\n```python\nfrom kanasim import create_kana_distance_calculator\n\ncalculator = create_kana_distance_calculator()\n\nwords = [\"\u30ab\u30ca\u30c0\", \"\u30bf\u30cf\u30e9\"]\nwordlist = [\"\u30ab\u30ca\u30c0\", \"\u30d0\u30cf\u30de\", \"\u30bf\u30d0\u30bf\", \"\u30b5\u30ef\u30e9\", \"\u30ab\u30ca\u30bf\", \"\u30ab\u30e9\u30c0\", \"\u30ab\u30c9\u30de\"]\ndistances = calculator.calculate_batch(words, wordlist)\nfor i, target_word in enumerate(words):\n    print(f\"distance between {target_word} and ...\")\n    for source_word, distance in zip(wordlist, distances[i]):\n        print(source_word, distance)\n    print()\n```\n\n```\ndistance between \u30ab\u30ca\u30c0 and ...\n\u30ab\u30ca\u30c0 0.0\n\u30d0\u30cf\u30de 22.74598650000001\n\u30bf\u30d0\u30bf 14.328020000000006\n\u30b5\u30ef\u30e9 16.4028395\n\u30ab\u30ca\u30bf 4.468167000000005\n\u30ab\u30e9\u30c0 3.967136\n\u30ab\u30c9\u30de 16.998950500000007\n\ndistance between \u30bf\u30cf\u30e9 and ...\n\u30ab\u30ca\u30c0 16.56518150000001\n\u30d0\u30cf\u30de 11.308950499999998\n\u30bf\u30d0\u30bf 14.952468\n\u30b5\u30ef\u30e9 12.972008500000001\n\u30ab\u30ca\u30bf 19.041203000000007\n\u30ab\u30e9\u30c0 14.90169000000001\n\u30ab\u30c9\u30de 20.102040000000006\n```\n#### Ranking\n\n```Python\nfrom kanasim import create_kana_distance_calculator\n\ncalculator = create_kana_distance_calculator()\n\nword = \"\u30ab\u30ca\u30c0\"\nwordlist = [\"\u30ab\u30ca\u30c0\", \"\u30d0\u30cf\u30de\", \"\u30bf\u30d0\u30bf\", \"\u30b5\u30ef\u30e9\", \"\u30ab\u30ca\u30bf\", \"\u30ab\u30e9\u30c0\", \"\u30ab\u30c9\u30de\"]\nranking = calculator.get_topn(word, wordlist, n=10)\nfor i, (w, d) in enumerate(ranking, 1):\n    print(f\"{i}: {w} ({d})\")\n```\n\n```\n1: \u30ab\u30ca\u30c0 (0.0)\n2: \u30ab\u30e9\u30c0 (3.967136)\n3: \u30ab\u30ca\u30bf (4.468167000000005)\n4: \u30bf\u30d0\u30bf (14.328020000000006)\n5: \u30b5\u30ef\u30e9 (16.4028395)\n6: \u30ab\u30c9\u30de (16.998950500000007)\n7: \u30d0\u30cf\u30de (22.74598650000001)\n```\n\n#### Weight Adjustment\n\n```Python\nfrom kanasim import create_kana_distance_calculator\n\n# The vowel_ratio parameter determines the weight of vowels when calculating the distance between kana.\n# By default, it is set to 0.5, meaning vowels and consonants are weighted equally (1:1).\ncalculator = create_kana_distance_calculator(vowel_ratio=0.2)\n\nword = \"\u30ab\u30ca\u30c0\"\nwordlist = [\"\u30ab\u30ca\u30c7\", \"\u30b5\u30e9\u30c0\"]\n\ntopn = calculator.get_topn(word, wordlist, n=10)\nprint(\"vowel_ratio=0.2\")\nfor i, (w, d) in enumerate(topn, 1):\n    print(f\"{i}: {w} ({d})\")\n\ncalculator = create_kana_distance_calculator(vowel_ratio=0.8)\n\ntopn = calculator.get_topn(word, wordlist, n=10)\nprint(\"vowel_ratio=0.8\")\nfor i, (w, d) in enumerate(topn, 1):\n    print(f\"{i}: {w} ({d})\")\n```\n\n```\nvowel_ratio=0.2\n1: \u30ab\u30ca\u30c7 (8.397902000000006)\n2: \u30b5\u30e9\u30c0 (11.487954600000004)\nvowel_ratio=0.8\n1: \u30b5\u30e9\u30c0 (7.347296400000003)\n2: \u30ab\u30ca\u30c7 (15.578681000000007)\n```\n\n\n## Other Phonetic Similarity Related Files\nIn addition to the [Kana-Phoneme-Similarity Correspondence Table](src/kanasim/biphone/kana_to_phonome_distance.csv), there are three other files. These files are integrated into the Kana-Phoneme-Similarity Correspondence Table, so you usually do not need to refer to them directly.\n\n- [Consonant Distance](src/kanasim/data/biphone/distance_consonants_bi.csv)\n- [Vowel Distance](src/kanasim/data/biphone/distance_vowels_bi.csv)\n- [Kana-Phoneme Correspondence Table](src/kanasim/data/biphone/kana2phonome_bi.csv)\n\n### Consonant and Vowel Distances\nThe CSV format includes the following column names:\n\n- phonome1: The first phoneme\n- phonome2: The second phoneme\n- distance: The distance between phonome1 and phonome2\n\nPhonons are described in a biphone format with adjacent phonemes, excluding silence (sp), geminate consonants (q), and nasal sounds (N) ([reference](https://ftp.jaist.ac.jp/pub/osdn.net/julius/47534/Juliusbook-4.1.5-ja.pdf#page=37)).\nFor consonants, it is a biphone with the following vowel. The following vowel is separated by `+`.\nFor example, `b+a` means a consonant b immediately before a vowel a.\nFor vowels, it is a biphone with the preceding consonant. The preceding consonant is separated by `-`.\nFor example, `b-a` means a vowel a immediately after a consonant b.\n\nA smaller distance indicates a higher similarity. Although referred to as \"distance,\" swapping phonome1 and phonome2 results in different values, so it does not meet the strict definition of distance. Also, the \"distance\" of the same phoneme is not zero.\n\n### Kana-Phoneme Correspondence Table\nThe CSV format includes the following column names:\n- kana: Kana (mora) written in katakana. Long vowels are treated as a single element combined with the preceding kana.\n- consonant: The phoneme representing the consonant of the kana in biphone format. If the kana is a single vowel, geminate consonant, or nasal sound, it is represented as \"sp\".\n- vowel: The phoneme representing the vowel of the kana in biphone format. If the kana is a geminate consonant (q), nasal sound (N), or silence (sp), it corresponds to the respective phoneme.\n- constant_mono: Optional. The phoneme representing the consonant of the kana in monophone format.\n- vowel_mono: Optional. The phoneme representing the vowel of the kana in monophone format.\n\n## Data Creation Method\nThis was derived based on the GMM-HMM model of the Julius speech recognition model. The following method was referenced:\n\n- [\u97f3\u97ff\u30e2\u30c7\u30eb\u304b\u3089\u97f3\u7d20\u9593\u306e\u8ddd\u96e2\u3092\u6c42\u3081\u308b | \u898b\u8fd4\u3059\u304b\u3082\u3057\u308c\u306a\u3044\u30e1\u30e2](https://yaamaa-memo.hatenablog.com/entry/2017/12/17/062435)\n\nIn simple terms, Julius has an acoustic model (HMM) for each phoneme, and the \"distance\" between the HMMs of two phonemes is used as a measure of similarity. The \"distance\" between HMMs is calculated as the probability that the output of one phoneme's HMM is produced by another phoneme's HMM.\n\nTo reduce computation time, the calculation targets for phonemes and kana are limited. For phonemes, only biphones consisting of a consonant followed by a vowel and a vowel preceded by a consonant are calculated. Although triphone formats are considered more accurate, they are not used due to the vast number of combinations. Additionally, in Japanese, consecutive consonants or vowels can occur but are not frequest, thus, they are not targeted for calculation. Regarding \"distance,\" only the distances between consonants and between vowels are calculated, and the distance between consonants and vowels is not calculated. From the perspective of kana similarity, it is generally sufficient to match consonants and vowels separately.\n\n## Evaluation\n### Visualization\nThe positional relationships of phonemes calculated using the above method are shown in a diagram mapped by multidimensional scaling. Since there are too many elements in biphones, the diagram is based on monophone calculations. It can be seen that phonemes belonging to the same category, such as palatal sounds, voiced sounds, voiceless sounds, and vowels, are somewhat close to each other.\n\n![Phoneme Positional Relationships](docs/pictures/phonome_distance_2d.png)\n\n\n### Comparison with Baseline\nWe compare the results of the commonly used unweighted Hamming distance, a measure of phonetic similarity between words, with the proposed weighted Hamming distance. Edit distance and Hamming distance are often used to measure phonetic similarity between words. In this case, considering the application to parody lyrics, we limit the search to words with the same number of morae and obtain those with a close Hamming distance. The unweighted Hamming distance is calculated separately for vowels and consonants and then summed.\n\nWeighted Hamming Distance (Proposed)\n```\n% python scripts/sort_by_weighted_edit_distance.py \u30b7\u30de\u30a6\u30de -dt hamming\n\u30b7\u30e9\u30a6\u30aa 17.72447499999999\n\u30b7\u30de\u30d5\u30b0 19.3677925\n\u30b7\u30ed\u30a6\u30aa 21.458600499999996\n\u30b7\u30de\u30a2\u30b8 24.4898105\n\u30b7\u30de\u30c9\u30b8\u30e7\u30fc 25.773904000000005\n\u30b7\u30de\u30cf\u30ae 25.934866999999997\n\u30d4\u30e9\u30a4\u30fc\u30d0 26.07182999999999\n\u30c1\u30b4\u30c0\u30e9 26.469384999999992\n\u30b7\u30de\u30c0\u30a4 27.469623499999994\n\u30c4\u30de\u30b0\u30ed 28.451683499999998\n```\n\nUnweighted Hamming Distance (Baseline)\n\n```\n% python scripts/sort_by_hamming_distance.py \u30b7\u30de\u30a6\u30de\n\u30b7\u30de\u30a2\u30b8 1.5\n\u30b7\u30de\u30d5\u30b0 1.5\n\u30b7\u30e9\u30a6\u30aa 1.5\n\u30ab\u30de\u30c4\u30ab 2.0\n\u30b7\u30de\u30bd\u30a4 2.0\n\u30b7\u30de\u30c0\u30a4 2.0\n\u30b7\u30de\u30c9\u30b8\u30e7\u30fc 2.0\n\u30b7\u30de\u30cf\u30ae 2.0\n\u30b7\u30ed\u30a6\u30aa 2.0\n\u30d4\u30e9\u30a4\u30fc\u30d0 2.0\n```\nIn the case of unweighted calculations, \"\u30b7\u30de\u30a2\u30b8\" (Shimaaji), \"\u30b7\u30de\u30d5\u30b0\" (Shimafugu), and \"\u30b7\u30e9\u30a6\u30aa\" (Shirauo) have the same score. However, with weighting, the scores differ in the order of \"\u30b7\u30e9\u30a6\u30aa\" (Shirauo), \"\u30b7\u30de\u30d5\u30b0\" (Shimafugu), and \"\u30b7\u30de\u30a2\u30b8\" (Shimaaji). This is likely because, in the distance data, \"m\" and \"r\" are relatively close, giving \"\u30b7\u30e9\u30a6\u30aa\" (Shirauo) priority. Whether this aligns with actual perception depends on the application and requires consideration.\n\n### Subtle Influence of vowel or consonant weights\nIn the sample program, vowel or consonant weights can be set when calculating distances, but because phonemes are distinguished by biphones, the influence is less apparent compared to using simple edit distance.\n\n```Python\nfrom kanasim import create_kana_distance_calculator\n\n# The vowel_ratio parameter determines the weight of vowels when calculating the distance between kana.\n# By default, it is set to 0.5, meaning vowels and consonants are weighted equally (1:1).\ncalculator = create_kana_distance_calculator(vowel_ratio=0.0)\n\nword = \"\u30ab\u30ca\u30c0\"\nwordlist = [\"\u30b5\u30e9\u30c0\", \"\u30b3\u30ce\u30c7\"]\n\ntopn = calculator.get_topn(word, wordlist, n=10)\nprint(\"vowel_ratio=0.0\")\nfor i, (w, d) in enumerate(topn, 1):\n    print(f\"{i}: {w} ({d})\")\n```\n\n```\nvowel_ratio=0.0\n1: \u30b5\u30e9\u30c0 (12.868174000000003)\n2: \u30b3\u30ce\u30c7 (16.23794400000002)\n```\n\nIn the above example, because the vowel_ratio is set to 0, \"\u30b3\u30ce\u30c7\" (Konode), which matches the consonants of \"\u30ab\u30ca\u30c0\" (Kanada), should ideally be ranked first, but it ends up in second place. If you want to strictly prioritize specific elements like vowel matching, you might need to use unweighted edit distance.\nIn the manual tests conducted, the influence of vowels was found to be greater than that of consonants, and even when the vowel_ratio was set to 0, consonant matching was not prioritized. This is likely because, in Japanese, vowels often characterize the phonetics of kana, and a similar tendency is observed in this data based on Japanese acoustic models. If you want to emphasize consonant matching, using unweighted edit distance might be more appropriate.\n\n\n## Citation\n\nIf you wish to cite this library or similarity data, please include the following:\n\n```\n@software{kanasim,  \n  author={Jiro Shimaya},  \n  title={Kanasim: Japanese Kana Distance Data and Sample Code for Similarity Calculation},  \n  url={https://github.com/jiroshimaya/kanasim},  \n  year={2024},  \n  month={10},  \n}\n```\n\n## References\n\n- A. Lee and T. Kawahara: Julius v4.5 (2019) https://doi.org/10.5281/zenodo.2530395\n- [\u97f3\u97ff\u30e2\u30c7\u30eb\u304b\u3089\u97f3\u7d20\u9593\u306e\u8ddd\u96e2\u3092\u6c42\u3081\u308b | \u898b\u8fd4\u3059\u304b\u3082\u3057\u308c\u306a\u3044\u30e1\u30e2](https://yaamaa-memo.hatenablog.com/entry/2017/12/17/062435)\n\n# For Developers\n\n- This project uses [uv](https://github.com/astral-sh/uv) for package management.\n- This project uses [taskipy](https://github.com/taskipy/taskipy) for command management.\n\n```\nuv run task test\nuv run task lint\nuv run task format\n```",
    "bugtrack_url": null,
    "license": "Apache License Version 2.0, January 2004 http://www.apache.org/licenses/  TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION  1. Definitions.  \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.  \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.  \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.  \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.  \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.  \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.  \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).  \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.  \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"  \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.  2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.  3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.  4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:  (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and  (b) You must cause any modified files to carry prominent notices stating that You changed the files; and  (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and  (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.  You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.  5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.  6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.  7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.  8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.  END OF TERMS AND CONDITIONS  APPENDIX: How to apply the Apache License to your work.  To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!)  The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.  Copyright [yyyy] [name of copyright owner]  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.",
    "summary": "Calculator of phonetic similarity (distance) between Japanese kana characters",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/jiroshimaya/kanasim"
    },
    "split_keywords": [
        "distance",
        " kana",
        " phonome",
        " similarity"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "95e99dd2c9c92b830c5b0024a4c7b47693f4895a72287516300052e693135453",
                "md5": "d22e7e2f623dac3efa46c5ae68c6b301",
                "sha256": "c527a6ac81c604d819385f434deac09dc6da6293553855d3bc1a65f1f54c3d3d"
            },
            "downloads": -1,
            "filename": "kanasim-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d22e7e2f623dac3efa46c5ae68c6b301",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 1719506,
            "upload_time": "2024-10-18T04:22:56",
            "upload_time_iso_8601": "2024-10-18T04:22:56.793465Z",
            "url": "https://files.pythonhosted.org/packages/95/e9/9dd2c9c92b830c5b0024a4c7b47693f4895a72287516300052e693135453/kanasim-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7b5077ed4719ba0ebc9f294ffe2a72834bafef10a7a8bd8e05248ba658569741",
                "md5": "d9980cf1107772cb05697ae7e223d95c",
                "sha256": "f06886a9f5e2f5f836da5ee778d5e7017e796e78b3602169a98261356bb87006"
            },
            "downloads": -1,
            "filename": "kanasim-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d9980cf1107772cb05697ae7e223d95c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 1938453,
            "upload_time": "2024-10-18T04:22:59",
            "upload_time_iso_8601": "2024-10-18T04:22:59.504052Z",
            "url": "https://files.pythonhosted.org/packages/7b/50/77ed4719ba0ebc9f294ffe2a72834bafef10a7a8bd8e05248ba658569741/kanasim-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-18 04:22:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jiroshimaya",
    "github_project": "kanasim",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "kanasim"
}
        
Elapsed time: 0.39033s