bnc-lookup 1.0.5__py3-none-any.whl → 1.0.6__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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bnc-lookup
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: Static Hash-Based Lookup for BNC Terms
|
|
5
5
|
Home-page: https://github.com/craigtrim/bnc-lookup
|
|
6
6
|
License: MIT
|
|
@@ -86,8 +86,8 @@ Not "what does it mean?" Not "give me synonyms." Just: is this a word?
|
|
|
86
86
|
<td align="center"><code>is_bnc_term('asdfgh')</code></td>
|
|
87
87
|
</tr>
|
|
88
88
|
<tr>
|
|
89
|
-
<td align="center"><img src="docs/images/yes-hot-dog.png" width="180"></td>
|
|
90
|
-
<td align="center"><img src="docs/images/not-hot-dog.png" width="180"></td>
|
|
89
|
+
<td align="center"><img src="https://raw.githubusercontent.com/craigtrim/bnc-lookup/master/docs/images/yes-hot-dog.png" width="180"></td>
|
|
90
|
+
<td align="center"><img src="https://raw.githubusercontent.com/craigtrim/bnc-lookup/master/docs/images/not-hot-dog.png" width="180"></td>
|
|
91
91
|
</tr>
|
|
92
92
|
<tr>
|
|
93
93
|
<td align="center"><code>True</code></td>
|
|
@@ -123,12 +123,6 @@ If a token passes the BNC test, you can be confident it's a word that real peopl
|
|
|
123
123
|
|
|
124
124
|
For detailed usage, performance benchmarks, and advanced features, see the [API Documentation](docs/API.md).
|
|
125
125
|
|
|
126
|
-
## How It Works
|
|
127
|
-
|
|
128
|
-
BNC terms are stored as MD5 hash suffixes in 256 `frozenset` buckets (by first two hex characters of the hash). Lookups hash the input, route to the correct bucket, and perform O(1) set membership. Modules are lazy-loaded on first access per bucket.
|
|
129
|
-
|
|
130
|
-
For the gory details, see [Implementation Notes](docs/IMPLEMENTATION.md).
|
|
131
|
-
|
|
132
126
|
## Development
|
|
133
127
|
|
|
134
128
|
```bash
|
|
@@ -160,6 +154,10 @@ This package contains data derived from the British National Corpus frequency li
|
|
|
160
154
|
|
|
161
155
|
**Note:** This is a static snapshot of BNC frequency data. The data is not automatically updated.
|
|
162
156
|
|
|
157
|
+
## See Also
|
|
158
|
+
|
|
159
|
+
- **[wordnet-lookup](https://github.com/craigtrim/wordnet-lookup)** - Similar O(1) lookup using the WordNet lexicon
|
|
160
|
+
|
|
163
161
|
## Links
|
|
164
162
|
|
|
165
163
|
- **Repository**: [github.com/craigtrim/bnc-lookup](https://github.com/craigtrim/bnc-lookup)
|
|
@@ -257,7 +257,7 @@ bnc_lookup/hs/h_fc.py,sha256=36PmEBdpRmYq8PCEL7g9m08mCLCQuq50uMUllCAuUdI,101225
|
|
|
257
257
|
bnc_lookup/hs/h_fd.py,sha256=N2Sh5oNn6mEBf1FKfSF9V9jWXsaCMOrj3cWgeVHvRUE,97843
|
|
258
258
|
bnc_lookup/hs/h_fe.py,sha256=90Vr4qZcGfni2nxaGUR4MxuF6Z6aRar8awM5g-Z61T0,100807
|
|
259
259
|
bnc_lookup/hs/h_ff.py,sha256=vwrosNEVBRctHXd3lC0bsY0bKMUiJnNhOLLv9Be2ouY,105595
|
|
260
|
-
bnc_lookup-1.0.
|
|
261
|
-
bnc_lookup-1.0.
|
|
262
|
-
bnc_lookup-1.0.
|
|
263
|
-
bnc_lookup-1.0.
|
|
260
|
+
bnc_lookup-1.0.6.dist-info/LICENSE,sha256=AYOkuUBnkCcFiW6x4tIrmFPNbW7EG2T5HkGYtxD6cFo,2124
|
|
261
|
+
bnc_lookup-1.0.6.dist-info/METADATA,sha256=420CdqN-FpAhRW9M3Ui1pPXtjCIKHyqAmJVD7zSsACs,6383
|
|
262
|
+
bnc_lookup-1.0.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
263
|
+
bnc_lookup-1.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|