multilingual-num2text 0.1.0__tar.gz
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.
- multilingual_num2text-0.1.0/LICENSE +202 -0
- multilingual_num2text-0.1.0/PKG-INFO +197 -0
- multilingual_num2text-0.1.0/README.md +173 -0
- multilingual_num2text-0.1.0/pyproject.toml +33 -0
- multilingual_num2text-0.1.0/setup.cfg +4 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/__init__.py +57 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/__init__.py +16 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/currencies.py +215 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/digits.py +44 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/language.py +186 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/lexicon.py +74 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/number_rules.py +415 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/patterns.py +22 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/registry.py +19 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/text_rules.py +128 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/core/words.py +29 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/__init__.py +4 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/bangla/__init__.py +3 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/bangla/currencies.py +191 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/bangla/language.py +110 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/bangla/lexicon.py +60 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/bangla/rules.py +75 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/bangla/vocabulary.py +86 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/english/__init__.py +3 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/english/currencies.py +208 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/english/language.py +113 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/english/lexicon.py +27 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/english/rules.py +71 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text/languages/english/vocabulary.py +71 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text.egg-info/PKG-INFO +197 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text.egg-info/SOURCES.txt +36 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text.egg-info/dependency_links.txt +1 -0
- multilingual_num2text-0.1.0/src/multilingual_num2text.egg-info/top_level.txt +1 -0
- multilingual_num2text-0.1.0/tests/test_combinations.py +48 -0
- multilingual_num2text-0.1.0/tests/test_currencies.py +181 -0
- multilingual_num2text-0.1.0/tests/test_edges.py +277 -0
- multilingual_num2text-0.1.0/tests/test_multilingual_num2text.py +531 -0
- multilingual_num2text-0.1.0/tests/test_word_tables.py +296 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: multilingual-num2text
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Convert numbers in text to words: amounts, money, phone numbers, dates, times, codes and more. Bangla and English built in.
|
|
5
|
+
Author: Kawshik Kumar Paul
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/kawshikbuet17/multilingual_num2text
|
|
8
|
+
Project-URL: Issues, https://github.com/kawshikbuet17/multilingual_num2text/issues
|
|
9
|
+
Keywords: number to words,num2words,bangla,bengali,text normalization,multilingual
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Natural Language :: Bengali
|
|
18
|
+
Classifier: Natural Language :: English
|
|
19
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# multilingual_num2text
|
|
26
|
+
|
|
27
|
+
Turns every number in a piece of text into words, the way a person would say it.
|
|
28
|
+
|
|
29
|
+
It works out what a number is from how it is written: `$1,250.50` becomes money with cents,
|
|
30
|
+
`01711-123456` a phone number read digit by digit, `10/05/2024` a date, `15:45` a time, `*123#` a code.
|
|
31
|
+
The same in Bangla: `৳১,২৫০.৫০` becomes money with paisa, `০১৭১১-১২৩৪৫৬` a phone number, `১০/০৫/২০২৪` a date, `১৫:৪৫` a time.
|
|
32
|
+
Amounts, percentages, 153 currencies, years, ordinals, ranges, fractions and units are covered.
|
|
33
|
+
Use it wherever numbers must appear as words.
|
|
34
|
+
|
|
35
|
+
English (`en`) and Bangla/Bengali (`bn`) are built in, and new languages can be added.
|
|
36
|
+
No dependencies. Python 3.10+.
|
|
37
|
+
|
|
38
|
+
## Install
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install multilingual-num2text
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Latest from GitHub: `pip install git+https://github.com/kawshikbuet17/multilingual_num2text.git`
|
|
45
|
+
|
|
46
|
+
## Use
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
from multilingual_num2text import convert_text, number_to_text
|
|
50
|
+
|
|
51
|
+
# One number
|
|
52
|
+
number_to_text(2712, "en") # two thousand seven hundred twelve
|
|
53
|
+
number_to_text(2712, "en", "digitwise") # two seven one two
|
|
54
|
+
number_to_text("$1,250.50", "en", "auto") # one thousand two hundred fifty dollars and fifty cents
|
|
55
|
+
number_to_text(2712, "bn") # দুই হাজার সাতশত বারো
|
|
56
|
+
number_to_text(2712, "bn", "digitwise") # দুই সাত এক দুই
|
|
57
|
+
number_to_text("৳১,২৫০.৫০", "bn", "auto") # এক হাজার দুইশত পঞ্চাশ টাকা পঞ্চাশ পয়সা
|
|
58
|
+
|
|
59
|
+
# Every number inside a text
|
|
60
|
+
convert_text("Send $1,250.50 on May 10, 2024", "en")
|
|
61
|
+
# Send one thousand two hundred fifty dollars and fifty cents on May tenth, twenty twenty-four
|
|
62
|
+
convert_text("৳১,২৫০.৫০ পাঠান ০১৭১১-১২৩৪৫৬ নম্বরে", "bn")
|
|
63
|
+
# এক হাজার দুইশত পঞ্চাশ টাকা পঞ্চাশ পয়সা পাঠান শূন্য এক সাত এক এক এক দুই তিন চার পাঁচ ছয় নম্বরে
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
| Style | Meaning |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `cardinal` (default) | the value as one number |
|
|
69
|
+
| `digitwise` | digit by digit |
|
|
70
|
+
| `auto` | decided by the shape, like `convert_text` |
|
|
71
|
+
|
|
72
|
+
ASCII, Bangla or mixed digits all work (`50,000` = `৫০,০০০` = `৫০,000`).
|
|
73
|
+
|
|
74
|
+
## What gets converted
|
|
75
|
+
|
|
76
|
+
| Case | English (`en`) | Bangla/Bengali (`bn`) |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| Number | `1,000,000` → one million | `২,৫০,০০০` → দুই লক্ষ পঞ্চাশ হাজার |
|
|
79
|
+
| Decimal | `0.5` → zero point five | `১.৪৯` → এক দশমিক চার নয় |
|
|
80
|
+
| Negative | `-5` → minus five | `-৫` → ঋণাত্মক পাঁচ |
|
|
81
|
+
| Percent | `90%` → ninety percent | `১.৪৯%` → এক দশমিক চার নয় শতাংশ |
|
|
82
|
+
| Money (sign before) | `$1.50` → one dollar and fifty cents | `৳১,২৫০.৫০` → এক হাজার দুইশত পঞ্চাশ টাকা পঞ্চাশ পয়সা |
|
|
83
|
+
| Money (unit after) | `500 taka` → five hundred taka | `১০.৫০ টাকার` → দশ টাকা পঞ্চাশ পয়সার, `৫০০/-` → পাঁচশত টাকা |
|
|
84
|
+
| Any currency (153 ISO codes) | `KWD 1.250` → one Kuwaiti dinar and two hundred fifty fils | `SAR ৫০.২৫` → পঞ্চাশ সৌদি রিয়াল পঁচিশ হালালা |
|
|
85
|
+
| Money with scale | `$5 million` → five million dollars | `৳২.৫ কোটি` → আড়াই কোটি টাকা |
|
|
86
|
+
| Starts with `0` or `+` | `+880 1711 123456` → plus eight eight zero … | `০১৭১১-১২৩৪৫৬` → শূন্য এক সাত এক এক … |
|
|
87
|
+
| Starts with `*` or `#` | `*123#` → star one two three hash | `*১২৩#` → স্টার এক দুই তিন হ্যাশ |
|
|
88
|
+
| Long number (10+ digits), card | `account 123456789012` → account one two three … | `১২৩৪ ৫৬৭৮ ৯০১২ ৩৪৫৬` → এক দুই তিন চার … |
|
|
89
|
+
| Date | `10/05/2024` → the tenth of May, twenty twenty-four; `May 10` → May tenth | `১০/০৫/২০২৪`, `১০ মে ২০২৪` → দশই মে দুই হাজার চব্বিশ |
|
|
90
|
+
| Day form | — | `১লা বৈশাখ` → পহেলা বৈশাখ, `২১শে` → একুশে |
|
|
91
|
+
| Year | `in 1971` → in nineteen seventy-one, `1990s` → nineteen nineties | `১৯৭১ সালে` → উনিশশো একাত্তর সালে, `২০২৪-২৫` → দুই হাজার চব্বিশ পঁচিশ |
|
|
92
|
+
| Time | `10:05` → ten oh five, `15:45` → three forty-five PM | `১০:৩০` → দশটা ত্রিশ মিনিট, `১৫:৪৫` → দুপুর তিনটা পঁয়তাল্লিশ মিনিট, `১০ AM` → সকাল দশটা |
|
|
93
|
+
| Ratio | `1:2` → one to two | `১:২` → এক অনুপাত দুই |
|
|
94
|
+
| Ordinal | `21st` → twenty-first | `১ম` → প্রথম, `২য়` → দ্বিতীয়, `১১তম` → এগারোতম |
|
|
95
|
+
| Range | `5-10%` → five to ten percent | `৫০০-১০০০ টাকা` → পাঁচশত থেকে এক হাজার টাকা |
|
|
96
|
+
| Slash | `12/3` → twelve slash three | `১২/৩` → বারো বাই তিন, `৬/১২/২৪` → ছয়, বারো, চব্বিশ |
|
|
97
|
+
| Fraction | `2½` → two and a half | `২.৫ লাখ` → আড়াই লাখ, `১.৫ ঘণ্টা` → দেড় ঘণ্টা, `২½` → আড়াই |
|
|
98
|
+
| Unit, shorthand | `20km` → twenty kilometers, `2.5K` → two thousand five hundred | `২০GB` → বিশ জিবি, `৩৫°C` → পঁয়ত্রিশ ডিগ্রি সেলসিয়াস, `৫K` → পাঁচ হাজার |
|
|
99
|
+
| Arithmetic | `2+2=4` → two plus two equals four | `২+২=৪` → দুই যোগ দুই সমান চার, `৫০০+` → পাঁচশত প্লাস |
|
|
100
|
+
| Version, IP | `1.2.3` → one dot two dot three | `১.২.৩` → এক ডট দুই ডট তিন |
|
|
101
|
+
| Email, URL | `user1@example.com` → user one at example dot com | `user1@example.com` → user এক অ্যাট example ডট কম |
|
|
102
|
+
|
|
103
|
+
Leftover symbols (`*`, `#`, brackets, quotes, `**bold**`) are removed. The text is NFC-normalized first.
|
|
104
|
+
|
|
105
|
+
### Keep parts unchanged
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
import re
|
|
109
|
+
tags = re.compile(r"(\[[a-z]+\])")
|
|
110
|
+
convert_text("[warm] 500 dollars", "en", keep=tags) # [warm] five hundred dollars
|
|
111
|
+
convert_text("[warm] ৫০০ টাকা", "bn", keep=tags) # [warm] পাঁচশত টাকা
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Add your own data
|
|
115
|
+
|
|
116
|
+
Project data (hotlines, brand names, acronyms, tags to strip) stays in your code:
|
|
117
|
+
|
|
118
|
+
```python
|
|
119
|
+
from multilingual_num2text import (
|
|
120
|
+
BANGLA_LEXICON, ENGLISH_LEXICON, BanglaLanguage, EnglishLanguage, convert_text, register_language,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
lexicon = ENGLISH_LEXICON.extended(
|
|
124
|
+
digitwise_numbers=("54321",), # always digit by digit
|
|
125
|
+
acronyms={"KYC": "K Y C"},
|
|
126
|
+
fixed_phrases={"N/A": "not applicable"},
|
|
127
|
+
removed_patterns=(r"\[Source\s*\d*\]",), # deleted before converting
|
|
128
|
+
strip_decimal_trailing_zeros=False, # 2.60 → two point six zero
|
|
129
|
+
)
|
|
130
|
+
register_language(EnglishLanguage(lexicon=lexicon), code="en")
|
|
131
|
+
convert_text("[Source 1] Call 54321", "en") # Call five four three two one
|
|
132
|
+
|
|
133
|
+
lexicon = BANGLA_LEXICON.extended(
|
|
134
|
+
digitwise_numbers=("54321",),
|
|
135
|
+
domain_words={"example": "এক্সাম্পল"}, # example.com → এক্সাম্পল ডট কম
|
|
136
|
+
email_name_words={"support": "সাপোর্ট"},
|
|
137
|
+
)
|
|
138
|
+
register_language(BanglaLanguage(lexicon=lexicon), code="bn")
|
|
139
|
+
convert_text("৫৪৩২১ নম্বরে কল করুন", "bn") # পাঁচ চার তিন দুই এক নম্বরে কল করুন
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
`extended()` merges dictionaries, appends to tuples and replaces other settings. Other settings:
|
|
143
|
+
`digitwise_min_length` (10), `phone_max_digits` (15), `units`, `scale_words`, `year_markers_after`, `year_markers_before`.
|
|
144
|
+
|
|
145
|
+
English: `EnglishLanguage(indian_scales=True)` reads `2,50,000` as two lakh fifty thousand.
|
|
146
|
+
|
|
147
|
+
## Add a language
|
|
148
|
+
|
|
149
|
+
Subclass `Language` and implement five methods. Everything else (money, phones, ranges …) is shared.
|
|
150
|
+
|
|
151
|
+
```python
|
|
152
|
+
from multilingual_num2text import Language, Lexicon, Words, register_language
|
|
153
|
+
|
|
154
|
+
class HindiLanguage(Language):
|
|
155
|
+
code = "hi"
|
|
156
|
+
words = Words(digits=("शून्य", "एक", "दो", "तीन", "चार", "पाँच", "छह", "सात", "आठ", "नौ"),
|
|
157
|
+
negative="ऋण", decimal_point="दशमलव", percent="प्रतिशत", range="से", slash="बटा",
|
|
158
|
+
ratio="अनुपात", dot="डॉट", at="एट", star="स्टार", hash="हैश", plus="प्लस")
|
|
159
|
+
lexicon = Lexicon()
|
|
160
|
+
|
|
161
|
+
def to_cardinal(self, number): ...
|
|
162
|
+
def to_ordinal(self, number): ...
|
|
163
|
+
def to_year(self, year): ...
|
|
164
|
+
def to_date(self, day, month, year=None): ...
|
|
165
|
+
def to_time(self, hour, minute=0, second=None, with_period=False): ...
|
|
166
|
+
|
|
167
|
+
register_language(HindiLanguage())
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Optional: `language_rules()` for rules only that language needs, `build_currencies()` in `core/currencies.py`
|
|
171
|
+
to name all currencies, and overrides of `to_money`, `to_mixed_fraction`, `spell_scaled_amount`.
|
|
172
|
+
See `src/multilingual_num2text/languages/bangla/` for a complete example.
|
|
173
|
+
|
|
174
|
+
## Test
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
pip install -e .
|
|
178
|
+
python -m unittest discover -s tests
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
The tests cover every case above, for both languages, in all combinations:
|
|
182
|
+
|
|
183
|
+
| File | Checks |
|
|
184
|
+
|---|---|
|
|
185
|
+
| `test_multilingual_num2text.py` | 259 example cases across every category in the table |
|
|
186
|
+
| `test_combinations.py` | every case paired with every other case in one text (36,505 pairs), and all cases at once |
|
|
187
|
+
| `test_word_tables.py` | every word from 0 to 99, every hundred and scale, every Bangla number up to 1,00,000, every ordinal, date day, month, hour, minute and year boundary; no digit left for any number up to 10,000 |
|
|
188
|
+
| `test_currencies.py` | all 153 currencies in both languages: code before and after, every symbol, every name, fractions, negatives, scale words |
|
|
189
|
+
| `test_edges.py` | impossible dates and times, every setting's limit, Unicode forms and digit scripts, bad arguments, the registry, `Lexicon.extended()` |
|
|
190
|
+
|
|
191
|
+
## Contributing
|
|
192
|
+
|
|
193
|
+
Issues and pull requests are welcome. See [CONTRIBUTING.md](https://github.com/kawshikbuet17/multilingual_num2text/blob/main/CONTRIBUTING.md).
|
|
194
|
+
|
|
195
|
+
## License
|
|
196
|
+
|
|
197
|
+
Copyright 2026 Kawshik Kumar Paul. Licensed under the [Apache License 2.0](https://github.com/kawshikbuet17/multilingual_num2text/blob/main/LICENSE).
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# multilingual_num2text
|
|
2
|
+
|
|
3
|
+
Turns every number in a piece of text into words, the way a person would say it.
|
|
4
|
+
|
|
5
|
+
It works out what a number is from how it is written: `$1,250.50` becomes money with cents,
|
|
6
|
+
`01711-123456` a phone number read digit by digit, `10/05/2024` a date, `15:45` a time, `*123#` a code.
|
|
7
|
+
The same in Bangla: `৳১,২৫০.৫০` becomes money with paisa, `০১৭১১-১২৩৪৫৬` a phone number, `১০/০৫/২০২৪` a date, `১৫:৪৫` a time.
|
|
8
|
+
Amounts, percentages, 153 currencies, years, ordinals, ranges, fractions and units are covered.
|
|
9
|
+
Use it wherever numbers must appear as words.
|
|
10
|
+
|
|
11
|
+
English (`en`) and Bangla/Bengali (`bn`) are built in, and new languages can be added.
|
|
12
|
+
No dependencies. Python 3.10+.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install multilingual-num2text
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Latest from GitHub: `pip install git+https://github.com/kawshikbuet17/multilingual_num2text.git`
|
|
21
|
+
|
|
22
|
+
## Use
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from multilingual_num2text import convert_text, number_to_text
|
|
26
|
+
|
|
27
|
+
# One number
|
|
28
|
+
number_to_text(2712, "en") # two thousand seven hundred twelve
|
|
29
|
+
number_to_text(2712, "en", "digitwise") # two seven one two
|
|
30
|
+
number_to_text("$1,250.50", "en", "auto") # one thousand two hundred fifty dollars and fifty cents
|
|
31
|
+
number_to_text(2712, "bn") # দুই হাজার সাতশত বারো
|
|
32
|
+
number_to_text(2712, "bn", "digitwise") # দুই সাত এক দুই
|
|
33
|
+
number_to_text("৳১,২৫০.৫০", "bn", "auto") # এক হাজার দুইশত পঞ্চাশ টাকা পঞ্চাশ পয়সা
|
|
34
|
+
|
|
35
|
+
# Every number inside a text
|
|
36
|
+
convert_text("Send $1,250.50 on May 10, 2024", "en")
|
|
37
|
+
# Send one thousand two hundred fifty dollars and fifty cents on May tenth, twenty twenty-four
|
|
38
|
+
convert_text("৳১,২৫০.৫০ পাঠান ০১৭১১-১২৩৪৫৬ নম্বরে", "bn")
|
|
39
|
+
# এক হাজার দুইশত পঞ্চাশ টাকা পঞ্চাশ পয়সা পাঠান শূন্য এক সাত এক এক এক দুই তিন চার পাঁচ ছয় নম্বরে
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
| Style | Meaning |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `cardinal` (default) | the value as one number |
|
|
45
|
+
| `digitwise` | digit by digit |
|
|
46
|
+
| `auto` | decided by the shape, like `convert_text` |
|
|
47
|
+
|
|
48
|
+
ASCII, Bangla or mixed digits all work (`50,000` = `৫০,০০০` = `৫০,000`).
|
|
49
|
+
|
|
50
|
+
## What gets converted
|
|
51
|
+
|
|
52
|
+
| Case | English (`en`) | Bangla/Bengali (`bn`) |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| Number | `1,000,000` → one million | `২,৫০,০০০` → দুই লক্ষ পঞ্চাশ হাজার |
|
|
55
|
+
| Decimal | `0.5` → zero point five | `১.৪৯` → এক দশমিক চার নয় |
|
|
56
|
+
| Negative | `-5` → minus five | `-৫` → ঋণাত্মক পাঁচ |
|
|
57
|
+
| Percent | `90%` → ninety percent | `১.৪৯%` → এক দশমিক চার নয় শতাংশ |
|
|
58
|
+
| Money (sign before) | `$1.50` → one dollar and fifty cents | `৳১,২৫০.৫০` → এক হাজার দুইশত পঞ্চাশ টাকা পঞ্চাশ পয়সা |
|
|
59
|
+
| Money (unit after) | `500 taka` → five hundred taka | `১০.৫০ টাকার` → দশ টাকা পঞ্চাশ পয়সার, `৫০০/-` → পাঁচশত টাকা |
|
|
60
|
+
| Any currency (153 ISO codes) | `KWD 1.250` → one Kuwaiti dinar and two hundred fifty fils | `SAR ৫০.২৫` → পঞ্চাশ সৌদি রিয়াল পঁচিশ হালালা |
|
|
61
|
+
| Money with scale | `$5 million` → five million dollars | `৳২.৫ কোটি` → আড়াই কোটি টাকা |
|
|
62
|
+
| Starts with `0` or `+` | `+880 1711 123456` → plus eight eight zero … | `০১৭১১-১২৩৪৫৬` → শূন্য এক সাত এক এক … |
|
|
63
|
+
| Starts with `*` or `#` | `*123#` → star one two three hash | `*১২৩#` → স্টার এক দুই তিন হ্যাশ |
|
|
64
|
+
| Long number (10+ digits), card | `account 123456789012` → account one two three … | `১২৩৪ ৫৬৭৮ ৯০১২ ৩৪৫৬` → এক দুই তিন চার … |
|
|
65
|
+
| Date | `10/05/2024` → the tenth of May, twenty twenty-four; `May 10` → May tenth | `১০/০৫/২০২৪`, `১০ মে ২০২৪` → দশই মে দুই হাজার চব্বিশ |
|
|
66
|
+
| Day form | — | `১লা বৈশাখ` → পহেলা বৈশাখ, `২১শে` → একুশে |
|
|
67
|
+
| Year | `in 1971` → in nineteen seventy-one, `1990s` → nineteen nineties | `১৯৭১ সালে` → উনিশশো একাত্তর সালে, `২০২৪-২৫` → দুই হাজার চব্বিশ পঁচিশ |
|
|
68
|
+
| Time | `10:05` → ten oh five, `15:45` → three forty-five PM | `১০:৩০` → দশটা ত্রিশ মিনিট, `১৫:৪৫` → দুপুর তিনটা পঁয়তাল্লিশ মিনিট, `১০ AM` → সকাল দশটা |
|
|
69
|
+
| Ratio | `1:2` → one to two | `১:২` → এক অনুপাত দুই |
|
|
70
|
+
| Ordinal | `21st` → twenty-first | `১ম` → প্রথম, `২য়` → দ্বিতীয়, `১১তম` → এগারোতম |
|
|
71
|
+
| Range | `5-10%` → five to ten percent | `৫০০-১০০০ টাকা` → পাঁচশত থেকে এক হাজার টাকা |
|
|
72
|
+
| Slash | `12/3` → twelve slash three | `১২/৩` → বারো বাই তিন, `৬/১২/২৪` → ছয়, বারো, চব্বিশ |
|
|
73
|
+
| Fraction | `2½` → two and a half | `২.৫ লাখ` → আড়াই লাখ, `১.৫ ঘণ্টা` → দেড় ঘণ্টা, `২½` → আড়াই |
|
|
74
|
+
| Unit, shorthand | `20km` → twenty kilometers, `2.5K` → two thousand five hundred | `২০GB` → বিশ জিবি, `৩৫°C` → পঁয়ত্রিশ ডিগ্রি সেলসিয়াস, `৫K` → পাঁচ হাজার |
|
|
75
|
+
| Arithmetic | `2+2=4` → two plus two equals four | `২+২=৪` → দুই যোগ দুই সমান চার, `৫০০+` → পাঁচশত প্লাস |
|
|
76
|
+
| Version, IP | `1.2.3` → one dot two dot three | `১.২.৩` → এক ডট দুই ডট তিন |
|
|
77
|
+
| Email, URL | `user1@example.com` → user one at example dot com | `user1@example.com` → user এক অ্যাট example ডট কম |
|
|
78
|
+
|
|
79
|
+
Leftover symbols (`*`, `#`, brackets, quotes, `**bold**`) are removed. The text is NFC-normalized first.
|
|
80
|
+
|
|
81
|
+
### Keep parts unchanged
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import re
|
|
85
|
+
tags = re.compile(r"(\[[a-z]+\])")
|
|
86
|
+
convert_text("[warm] 500 dollars", "en", keep=tags) # [warm] five hundred dollars
|
|
87
|
+
convert_text("[warm] ৫০০ টাকা", "bn", keep=tags) # [warm] পাঁচশত টাকা
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Add your own data
|
|
91
|
+
|
|
92
|
+
Project data (hotlines, brand names, acronyms, tags to strip) stays in your code:
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
from multilingual_num2text import (
|
|
96
|
+
BANGLA_LEXICON, ENGLISH_LEXICON, BanglaLanguage, EnglishLanguage, convert_text, register_language,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
lexicon = ENGLISH_LEXICON.extended(
|
|
100
|
+
digitwise_numbers=("54321",), # always digit by digit
|
|
101
|
+
acronyms={"KYC": "K Y C"},
|
|
102
|
+
fixed_phrases={"N/A": "not applicable"},
|
|
103
|
+
removed_patterns=(r"\[Source\s*\d*\]",), # deleted before converting
|
|
104
|
+
strip_decimal_trailing_zeros=False, # 2.60 → two point six zero
|
|
105
|
+
)
|
|
106
|
+
register_language(EnglishLanguage(lexicon=lexicon), code="en")
|
|
107
|
+
convert_text("[Source 1] Call 54321", "en") # Call five four three two one
|
|
108
|
+
|
|
109
|
+
lexicon = BANGLA_LEXICON.extended(
|
|
110
|
+
digitwise_numbers=("54321",),
|
|
111
|
+
domain_words={"example": "এক্সাম্পল"}, # example.com → এক্সাম্পল ডট কম
|
|
112
|
+
email_name_words={"support": "সাপোর্ট"},
|
|
113
|
+
)
|
|
114
|
+
register_language(BanglaLanguage(lexicon=lexicon), code="bn")
|
|
115
|
+
convert_text("৫৪৩২১ নম্বরে কল করুন", "bn") # পাঁচ চার তিন দুই এক নম্বরে কল করুন
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
`extended()` merges dictionaries, appends to tuples and replaces other settings. Other settings:
|
|
119
|
+
`digitwise_min_length` (10), `phone_max_digits` (15), `units`, `scale_words`, `year_markers_after`, `year_markers_before`.
|
|
120
|
+
|
|
121
|
+
English: `EnglishLanguage(indian_scales=True)` reads `2,50,000` as two lakh fifty thousand.
|
|
122
|
+
|
|
123
|
+
## Add a language
|
|
124
|
+
|
|
125
|
+
Subclass `Language` and implement five methods. Everything else (money, phones, ranges …) is shared.
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
from multilingual_num2text import Language, Lexicon, Words, register_language
|
|
129
|
+
|
|
130
|
+
class HindiLanguage(Language):
|
|
131
|
+
code = "hi"
|
|
132
|
+
words = Words(digits=("शून्य", "एक", "दो", "तीन", "चार", "पाँच", "छह", "सात", "आठ", "नौ"),
|
|
133
|
+
negative="ऋण", decimal_point="दशमलव", percent="प्रतिशत", range="से", slash="बटा",
|
|
134
|
+
ratio="अनुपात", dot="डॉट", at="एट", star="स्टार", hash="हैश", plus="प्लस")
|
|
135
|
+
lexicon = Lexicon()
|
|
136
|
+
|
|
137
|
+
def to_cardinal(self, number): ...
|
|
138
|
+
def to_ordinal(self, number): ...
|
|
139
|
+
def to_year(self, year): ...
|
|
140
|
+
def to_date(self, day, month, year=None): ...
|
|
141
|
+
def to_time(self, hour, minute=0, second=None, with_period=False): ...
|
|
142
|
+
|
|
143
|
+
register_language(HindiLanguage())
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Optional: `language_rules()` for rules only that language needs, `build_currencies()` in `core/currencies.py`
|
|
147
|
+
to name all currencies, and overrides of `to_money`, `to_mixed_fraction`, `spell_scaled_amount`.
|
|
148
|
+
See `src/multilingual_num2text/languages/bangla/` for a complete example.
|
|
149
|
+
|
|
150
|
+
## Test
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
pip install -e .
|
|
154
|
+
python -m unittest discover -s tests
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
The tests cover every case above, for both languages, in all combinations:
|
|
158
|
+
|
|
159
|
+
| File | Checks |
|
|
160
|
+
|---|---|
|
|
161
|
+
| `test_multilingual_num2text.py` | 259 example cases across every category in the table |
|
|
162
|
+
| `test_combinations.py` | every case paired with every other case in one text (36,505 pairs), and all cases at once |
|
|
163
|
+
| `test_word_tables.py` | every word from 0 to 99, every hundred and scale, every Bangla number up to 1,00,000, every ordinal, date day, month, hour, minute and year boundary; no digit left for any number up to 10,000 |
|
|
164
|
+
| `test_currencies.py` | all 153 currencies in both languages: code before and after, every symbol, every name, fractions, negatives, scale words |
|
|
165
|
+
| `test_edges.py` | impossible dates and times, every setting's limit, Unicode forms and digit scripts, bad arguments, the registry, `Lexicon.extended()` |
|
|
166
|
+
|
|
167
|
+
## Contributing
|
|
168
|
+
|
|
169
|
+
Issues and pull requests are welcome. See [CONTRIBUTING.md](https://github.com/kawshikbuet17/multilingual_num2text/blob/main/CONTRIBUTING.md).
|
|
170
|
+
|
|
171
|
+
## License
|
|
172
|
+
|
|
173
|
+
Copyright 2026 Kawshik Kumar Paul. Licensed under the [Apache License 2.0](https://github.com/kawshikbuet17/multilingual_num2text/blob/main/LICENSE).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "multilingual-num2text"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Convert numbers in text to words: amounts, money, phone numbers, dates, times, codes and more. Bangla and English built in."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
authors = [{ name = "Kawshik Kumar Paul" }]
|
|
14
|
+
keywords = ["number to words", "num2words", "bangla", "bengali", "text normalization", "multilingual"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.10",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Programming Language :: Python :: 3.14",
|
|
22
|
+
"Operating System :: OS Independent",
|
|
23
|
+
"Natural Language :: Bengali",
|
|
24
|
+
"Natural Language :: English",
|
|
25
|
+
"Topic :: Text Processing :: Linguistic",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://github.com/kawshikbuet17/multilingual_num2text"
|
|
30
|
+
Issues = "https://github.com/kawshikbuet17/multilingual_num2text/issues"
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.packages.find]
|
|
33
|
+
where = ["src"]
|