yomitoku 0.5.0__py3-none-any.whl → 0.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ from typing import List
2
2
 
3
3
  import numpy as np
4
4
  import torch
5
+ import unicodedata
5
6
  from pydantic import conlist
6
7
 
7
8
  from .base import BaseModelCatalog, BaseModule, BaseSchema
@@ -72,6 +73,8 @@ class TextRecognizer(BaseModule):
72
73
 
73
74
  def postprocess(self, p, points):
74
75
  pred, score = self.tokenizer.decode(p)
76
+ pred = [unicodedata.normalize("NFKC", x) for x in pred]
77
+
75
78
  directions = []
76
79
  for point in points:
77
80
  point = np.array(point)
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: yomitoku
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Yomitoku is an AI-powered document image analysis package designed specifically for the Japanese language.
5
5
  Author-email: Kotaro Kinoshita <kotaro.kinoshita@mlism.com>
6
6
  License: CC BY-NC-SA 4.0
7
7
  Keywords: Deep Learning,Japanese,OCR
8
- Requires-Python: >=3.9
8
+ Requires-Python: <3.13,>=3.9
9
9
  Requires-Dist: huggingface-hub>=0.26.1
10
10
  Requires-Dist: lxml>=5.3.0
11
11
  Requires-Dist: omegaconf>=2.3.0
@@ -15,7 +15,7 @@ Requires-Dist: pydantic>=2.9.2
15
15
  Requires-Dist: pypdfium2>=4.30.0
16
16
  Requires-Dist: shapely>=2.0.6
17
17
  Requires-Dist: timm>=1.0.11
18
- Requires-Dist: torch==2.5.0
18
+ Requires-Dist: torch>=2.5.0
19
19
  Requires-Dist: torchvision>=0.20.0
20
20
  Description-Content-Type: text/markdown
21
21
 
@@ -27,7 +27,7 @@ Description-Content-Type: text/markdown
27
27
  ![Pytorch](https://img.shields.io/badge/Pytorch-2.5-EE4C2C.svg?logo=Pytorch&style=fla)
28
28
  ![CUDA](https://img.shields.io/badge/CUDA->=11.8-76B900.svg?logo=NVIDIA&style=fla)
29
29
  ![OS](https://img.shields.io/badge/OS-Linux|Mac|Win-1793D1.svg?&style=fla)
30
- [![Document](https://img.shields.io/badge/docs-live-brightgreen)](https://kotaro-kinoshita.github.io/yomitoku-dev/)
30
+ [![Document](https://img.shields.io/badge/docs-live-brightgreen)](https://kotaro-kinoshita.github.io/yomitoku/)
31
31
 
32
32
  ## 🌟 概要
33
33
 
@@ -61,7 +61,7 @@ Markdown でエクスポートした結果は関してはリポジトリ内の[s
61
61
 
62
62
  ## 📣 リリース情報
63
63
 
64
- - 2024 年 11 月 26 YomiToku v0.5.0 ベータ版を公開
64
+ - 2024 年 11 月 26 YomiToku v0.5.1 (beta) を公開
65
65
 
66
66
  ## 💡 インストールの方法
67
67
 
@@ -101,7 +101,7 @@ yomitoku --help
101
101
 
102
102
  ## 📝 ドキュメント
103
103
 
104
- パッケージの詳細は[ドキュメント](https://kotaro-kinoshita.github.io/yomitoku-dev/)を確認してください。
104
+ パッケージの詳細は[ドキュメント](https://kotaro-kinoshita.github.io/yomitoku/)を確認してください。
105
105
 
106
106
  ## LICENSE
107
107
 
@@ -8,7 +8,7 @@ yomitoku/ocr.py,sha256=Rcojw0aGA6yDF2RjqfK23_rMw-xm61KGd8JmTCTOOVU,2516
8
8
  yomitoku/reading_order.py,sha256=OfhOS9ttPDoPSuHrIRKyOzG19GGeRufbuSKDqhsohh4,6404
9
9
  yomitoku/table_structure_recognizer.py,sha256=CouRzfdO_toZKUQbzQqocKdMcgA3Pr7glkZuqD5itpg,7280
10
10
  yomitoku/text_detector.py,sha256=okp0xuq4lXgEDcfgCzeJcrj8hfSI4NvAgorsNwi_NYI,2682
11
- yomitoku/text_recognizer.py,sha256=CpPuD5x_xE4vS9ut_SkD4FMCNoE--KWveCH10L0mlT0,3705
11
+ yomitoku/text_recognizer.py,sha256=RHdq1M3-e3C1RECgbaoqPngtxicG3izAma12juD2ICQ,3789
12
12
  yomitoku/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  yomitoku/cli/main.py,sha256=MBD0S4sXgquJ8P2egkZjJcglXvCke5Uw46C28SDtr8g,6252
14
14
  yomitoku/configs/__init__.py,sha256=KBhb9S7xt22HZaIcoWSgZHfscXXj9YlimOwLH5z9CRo,454
@@ -46,7 +46,7 @@ yomitoku/utils/graph.py,sha256=LKNB8ZhSQwOZMfeAimPMF5UCVVr2ZaUWoGDkz8z-uGU,456
46
46
  yomitoku/utils/logger.py,sha256=uOmtQDr0A0JD7wyFshedL08BiNrQorHnpktRXba8bjU,424
47
47
  yomitoku/utils/misc.py,sha256=2Eyy7-9K_h4Mal1zGXq6OlxubfNzhS0mEYwn_xt7xl8,2497
48
48
  yomitoku/utils/visualizer.py,sha256=2pSmbhUPylzVVJ0bXtGDoNmMdArAByab4Py7Xavvs_A,5230
49
- yomitoku-0.5.0.dist-info/METADATA,sha256=Jg1lItip7RJIUL8J9NljIH92cFXVWFfl3lWT3KNkls4,7822
50
- yomitoku-0.5.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
51
- yomitoku-0.5.0.dist-info/entry_points.txt,sha256=nFV3S11zgBNW0Qq_D0XQNg2R4lNXU_9XUFr6rdJoyF8,52
52
- yomitoku-0.5.0.dist-info/RECORD,,
49
+ yomitoku-0.5.2.dist-info/METADATA,sha256=qG0aq8sJb6iD-i0WvZL__YclRytpBdzyPzu6HNqtgIM,7819
50
+ yomitoku-0.5.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
51
+ yomitoku-0.5.2.dist-info/entry_points.txt,sha256=nFV3S11zgBNW0Qq_D0XQNg2R4lNXU_9XUFr6rdJoyF8,52
52
+ yomitoku-0.5.2.dist-info/RECORD,,