Skip to main content

Table of Contents

  1. Installing from git
  2. Check Test
  3. Installing from pypi
  4. Updating the source
    1. To create new tar.gz in dist directory:
    2. To upload to pypi:

Learning about Natural Language Tool Kit (NLTK) from tests

A first version can be found in: https://github.com/Lingwars/GAPLEN

Thanks to GAPLEN by the shared time.

Learning NLTK book (https://www.nltk.org/book) from Tests by David Arroyo Menéndez

Installing from git

$ git clone https://github.com/davidam/damenltk
$ pip3 install nltk scikit-learn
$ cd damenltk
$ python3 damenltk/installing-nltk-modules.py

Check Test

  • Execute all tests:

    $ ./runtests.sh

  • Execute one file:

    $ pytest test/test_bernoulli.py

  • Execute one test:

    $ pytest test/test_wordnet.py::TddInPythonExample::test_lemmatizer

Installing from pypi

You can install from Internet in a python virtual environment to check:

$ python3 -m venv ~/venv_damenltk
$ cd ~/venv_damenltk
$ source bin/activate
$ pip3 install damenltk
$ cd ~/venv_damenltk/lib/python3.14/site-packages/damenltk
$ pytest test/test_bernoulli.py 

Updating the source

To create new tar.gz in dist directory:

$ python3 -m build

To upload to pypi:

$ twine upload dist/damenltk-0.1.tar.gz

Metadata

Release files for damenltk 0.2.post1

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

Source distribution (sdist)

Source distribution for damenltk 0.2.post1
File Size Uploaded
damenltk-0.2.post1.tar.gz 53.8 kB Details

Release files / damenltk-0.2.post1.tar.gz

Download URL damenltk-0.2.post1.tar.gz
Size 53.8 kB
Tags Source
SHA-256 checksum
How to use checksums
73e58310c26cf1cac15294e35ea950d3d5c294f336de26d4bad8b5be874694b0
BLAKE2b-256 checksum
How to use checksums
ee0ceb8824553280807da5d1991da85c70750b2937c77e5b0390bcc92a050acf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.2.post1 This release

1 release file

0.2

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.28

1 release file

0.0.27

1 release file

0.0.26

1 release file

0.0.16

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

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