gngram-lookup 0.2.2__py3-none-any.whl → 0.2.3__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.
- gngram_counter/lookup.py +2 -0
- gngram_counter/normalize.py +2 -0
- {gngram_lookup-0.2.2.dist-info → gngram_lookup-0.2.3.dist-info}/METADATA +5 -3
- gngram_lookup-0.2.3.dist-info/RECORD +11 -0
- gngram_lookup-0.2.2.dist-info/RECORD +0 -11
- {gngram_lookup-0.2.2.dist-info → gngram_lookup-0.2.3.dist-info}/LICENSE +0 -0
- {gngram_lookup-0.2.2.dist-info → gngram_lookup-0.2.3.dist-info}/WHEEL +0 -0
- {gngram_lookup-0.2.2.dist-info → gngram_lookup-0.2.3.dist-info}/entry_points.txt +0 -0
gngram_counter/lookup.py
CHANGED
|
@@ -9,6 +9,8 @@ contains pure alphabetic words, so contractions and their suffix parts
|
|
|
9
9
|
(n't, 'll, etc.) are absent — but the stems are present.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
12
14
|
import hashlib
|
|
13
15
|
from functools import lru_cache
|
|
14
16
|
from typing import TypedDict
|
gngram_counter/normalize.py
CHANGED
|
@@ -6,6 +6,8 @@ transformations to ensure consistent matching against the ngram corpus.
|
|
|
6
6
|
Ported from bnc-lookup normalize.py.
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
9
11
|
# Unicode characters that should normalize to ASCII apostrophe (U+0027)
|
|
10
12
|
# Ordered by likelihood of occurrence in English text
|
|
11
13
|
APOSTROPHE_VARIANTS = (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gngram-lookup
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Static Hash-Based Lookup for Google Ngram Frequencies
|
|
5
5
|
Home-page: https://github.com/craigtrim/gngram-lookup
|
|
6
6
|
License: Proprietary
|
|
@@ -9,7 +9,7 @@ Author: Craig Trim
|
|
|
9
9
|
Author-email: craigtrim@gmail.com
|
|
10
10
|
Maintainer: Craig Trim
|
|
11
11
|
Maintainer-email: craigtrim@gmail.com
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.9,<4.0
|
|
13
13
|
Classifier: Development Status :: 4 - Beta
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Intended Audience :: Science/Research
|
|
@@ -17,6 +17,8 @@ Classifier: License :: Other/Proprietary License
|
|
|
17
17
|
Classifier: Natural Language :: English
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
24
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
@@ -33,7 +35,7 @@ Description-Content-Type: text/markdown
|
|
|
33
35
|
[](https://pepy.tech/project/gngram-lookup)
|
|
34
36
|
[](https://pepy.tech/project/gngram-lookup)
|
|
35
37
|
[](https://github.com/craigtrim/gngram-lookup/tree/main/tests)
|
|
36
|
-
[](https://www.python.org/downloads/)
|
|
37
39
|
|
|
38
40
|
Word frequency from 500 years of books. O(1) lookup. 5 million words.
|
|
39
41
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
gngram_counter/__init__.py,sha256=JsgQYIF5LcYqdhWuDuVhrlt5eVebk36CsXQK9Q3H5ZA,374
|
|
2
|
+
gngram_counter/cli.py,sha256=7PScHhnjNoi0so0IGGZ7ipi0bgILtfQmZ0PPCxJCO_k,861
|
|
3
|
+
gngram_counter/data.py,sha256=HvESF1lc9v7HPbemksnvzvV460ts9gBjvACMZZao9qs,1089
|
|
4
|
+
gngram_counter/download_data.py,sha256=vlggDDszmI29UJA9H17AK-_BTNOcjq9oWoKju4DDCTU,2663
|
|
5
|
+
gngram_counter/lookup.py,sha256=L2O7iwzMy4CqLDAhgvzzilJXX4ncIJkIJy5bgIrpiVg,7600
|
|
6
|
+
gngram_counter/normalize.py,sha256=Fwb32rhzr-6p25Shcbfkr2Ttdj1aLt9wZypPQWY9dRQ,1729
|
|
7
|
+
gngram_lookup-0.2.3.dist-info/LICENSE,sha256=9r2EF9XQjpHEtltPlomXEmegbVVhZsVHzygSPfiid_E,1497
|
|
8
|
+
gngram_lookup-0.2.3.dist-info/METADATA,sha256=_d4vLD8nToY-5bmAZjH8Y6CiN7NAkEp7bEPUgs7qKww,3421
|
|
9
|
+
gngram_lookup-0.2.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
10
|
+
gngram_lookup-0.2.3.dist-info/entry_points.txt,sha256=bzFME4Um0_lWLTo2JcvFseBUSD7Gk7r-156Cr_wssnM,109
|
|
11
|
+
gngram_lookup-0.2.3.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
gngram_counter/__init__.py,sha256=JsgQYIF5LcYqdhWuDuVhrlt5eVebk36CsXQK9Q3H5ZA,374
|
|
2
|
-
gngram_counter/cli.py,sha256=7PScHhnjNoi0so0IGGZ7ipi0bgILtfQmZ0PPCxJCO_k,861
|
|
3
|
-
gngram_counter/data.py,sha256=HvESF1lc9v7HPbemksnvzvV460ts9gBjvACMZZao9qs,1089
|
|
4
|
-
gngram_counter/download_data.py,sha256=vlggDDszmI29UJA9H17AK-_BTNOcjq9oWoKju4DDCTU,2663
|
|
5
|
-
gngram_counter/lookup.py,sha256=r67ulgLPM0zkIWyulQsmsRVbIZt9J1APQ1974DWgX1k,7564
|
|
6
|
-
gngram_counter/normalize.py,sha256=UDUPk4Mb-fcdIy-4WAivFnk33H6gwxxD3oKFHq2tNNg,1693
|
|
7
|
-
gngram_lookup-0.2.2.dist-info/LICENSE,sha256=9r2EF9XQjpHEtltPlomXEmegbVVhZsVHzygSPfiid_E,1497
|
|
8
|
-
gngram_lookup-0.2.2.dist-info/METADATA,sha256=DSF-z85Un8wSJQs55r0Q6_O5K9c9fyDuUi9rW1NMFIU,3323
|
|
9
|
-
gngram_lookup-0.2.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
10
|
-
gngram_lookup-0.2.2.dist-info/entry_points.txt,sha256=bzFME4Um0_lWLTo2JcvFseBUSD7Gk7r-156Cr_wssnM,109
|
|
11
|
-
gngram_lookup-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|