Skip to main content

nlpkit14 0.3.0

Run the fourteen programs from the supplied IA1 question/code/output document.

import nlpkit14 as n
n.q1()       # Actually runs question 1 and prints computed output
n.source(1)  # Shows the code, question and expected output as comments
n.questions()

Question numbers 1–7 are B1–B7. Numbers 8–14 are C1–C7. The question, expected output, and extra notes are comments in each bundled standalone Python program. Exercise calls print only the program's output. No expected-output text is substituted for model computation.

Install and prepare online once

Install the shared wheel, then prepare the basic data and spaCy model:

python -m pip install ./nlpkit14-0.3.0-py3-none-any.whl
python -c "import nlpkit14 as n; n.setup()"

For all exercises, install the model extra and run the complete setup (large downloads):

python -m pip install './nlpkit14-0.3.0-py3-none-any.whl[models]'
python -c "import nlpkit14 as n; n.setup(models=True)"

This is a local release of the new nlpkit14 project, not yet uploaded to PyPI. Do not use pip install nlpkit14 until publication succeeds.

Offline installation

On an internet-connected machine with the SAME OS, architecture and Python version as the offline machine, download the wheel and dependencies:

python -m pip download --dest wheelhouse './nlpkit14-0.3.0-py3-none-any.whl[models]'

Install and run setup online on that matching machine. Copy the wheelhouse, both installed spaCy model packages (or their installation wheels), and the full data/cache folder to the offline machine. Model data defaults to ~/.nlpkit14; set NLPKIT14_DATA before setup/import to choose a portable folder. Copying the entire prepared Python environment is platform specific; do not copy a Mac environment to Windows.

On the offline computer:

python -m pip install --no-index --find-links=wheelhouse nlpkit14==0.3.0

Install the spaCy model wheels from local storage too. Keep the copied data folder at ~/.nlpkit14 or point NLPKIT14_DATA to it. Model and dependency archives are not included in this small library wheel.

q8 fetches https://www.bnmit.org/ and requires internet even after setup. Other exercises can run without internet after all their requirements are installed. No downloads run implicitly from q1–q14. Missing packages/data raise their real installation errors rather than producing fake results.

Output fidelity

The original algorithms and sample input are preserved. Downloads are moved to explicit setup. HTTP errors are checked. BERT uses evaluation mode and local cached model files. The raw Good–Turing demonstration is not a normalized probability estimator. The document's classifier fits its vocabulary before splitting and is an educational example, not an unbiased evaluation pipeline. Model outputs, parse trees, POS tags and similarity values can differ from the commented reference output. The document's B5 reference omits POS lines that the code actually prints. Read TEST_RESULTS.md for exactly which programs were executed.

Metadata

Release files for nlpkit14 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nlpkit14 0.3.0
File Size Uploaded Provenance
nlpkit14-0.3.0.tar.gz 13.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nlpkit14 0.3.0
File Interpreter ABI Platform
nlpkit14-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.3 kB

Release files / nlpkit14-0.3.0.tar.gz

Download URL nlpkit14-0.3.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fc9f508aeb42bf6e819c64dccfe2cc6915be5c76af6ab5994c25c8732f0f3448
BLAKE2b-256 checksum
How to use checksums
d250cd87450a403a330f6204f4b0e85cc8eae0ce76ae56d1124c09541caf66fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / nlpkit14-0.3.0-py3-none-any.whl

Download URL nlpkit14-0.3.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
578c6bc74229690439d5e239eebbfc0774f2a9c454a428ca8e28bd6132efd14f
BLAKE2b-256 checksum
How to use checksums
51b49fe5a0f02388d157ba7b1820d342358b791a73ccd17df3aebe6886fd38e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for nlpkit14 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page