Skip to main content

A personal toolkit for NLP lab coursework.

Project description

Viraj Choudhary's NLP Toolkit

Personal Python package developed for my university Natural Language Processing lab assignments. It includes simple, reusable functions for:

  • Text preprocessing
  • Corpus analysis
  • Feature engineering

I originally built this toolkit to support my coursework, but I may extend it for other use cases over time. Who knows, it could even evolve into a major project. Big things start small.

More functions and modules will be added.

Installation

  1. Install the package:

    pip install virajchoudhary-nlp
    
  2. Import and use the functions in your code:

    from virajchoudhary_nlp import preprocessing as pp
    
    raw_text = "This is a 123 test sentence for my NLP toolkit!"
    
    # lowercase
    lower_text = pp.to_lowercase(raw_text)
    print(f"Lowercase Text: {lower_text}")
    
    # Tokenize
    tokens = pp.tokenize_words(lower_text)
    print(f"Tokens: {tokens}")
    

    Example Output:

    Lowercase Text: this is a 123 test sentence for my nlp toolkit!
    Tokens: ['this', 'is', 'a', '123', 'test', 'sentence', 'for', 'my', 'nlp', 'toolkit', '!']
    

For more details, you can find the project on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

virajchoudhary_nlp-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

virajchoudhary_nlp-0.0.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file virajchoudhary_nlp-0.0.3.tar.gz.

File metadata

  • Download URL: virajchoudhary_nlp-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.4

File hashes

Hashes for virajchoudhary_nlp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c553a10f2cb4db22bdcd55713081873fd08e45dcf2935b5c0311f1ddb306369f
MD5 4356199596152c91cc0c5fe61026fae9
BLAKE2b-256 35f51aac681aa3753683d59a344804ff9ac6ad02472818ddb391246604553dfe

See more details on using hashes here.

File details

Details for the file virajchoudhary_nlp-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for virajchoudhary_nlp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6583587494e5b571868f7c560953b0d6ea0e607663a1581abc454621c7cd79d7
MD5 7a2ac102df0d152615d948893dc0e5b4
BLAKE2b-256 5b556e0d0f71d0069be6b3fa5cece4b09463d7e9cb5d9d447990405477b4d65e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page