Skip to main content

A library for building and testing NLP models with PyTorch and Transformers

Project description

SearchGenius

SearchGenius is a Python library designed for building and testing NLP models using PyTorch and Transformers.

Features

Implements deep learning models like FullyConnected and MLPsoftmax.

Provides utilities for embedding generation, dataset handling, and model evaluation.

Compatible with modern NLP frameworks like HuggingFace's Transformers.

Installation

To install SearchGenius on your local machine, follow these steps:

  1. Install from PyPI

Run the following command to install SearchGenius via pip: pip install searchgenius

Usage

Once installed, you can import SearchGenius in your Python projects like this:

from searchgenius import myfunctions

Development and Testing

Development and Testing

To set up the library locally for development:

  1. Clone the Repository

git clone https://github.com/yourusername/searchgenius.git cd searchgenius

  1. Set Up a Virtual Environment

python -m venv venv source venv/bin/activate # For macOS/Linux venv\Scripts\activate # For Windows

  1. Install Dependencies

pip install --upgrade pip setuptools wheel pip install -r requirements.txt

  1. Build and Test Locally

Build the Package

python setup.py sdist bdist_wheel

Test the Package

Run the following test file:

python tests/test_myfunctions.py pytest

Expected Output:

Testing FullyConnected... FullyConnected passed. Testing MLPsoftmax... MLPsoftmax passed. Testing ESCIDataset... ESCIDataset passed. Testing training loop... Training loop passed. Testing evaluation loop... Accuracy: 0.4 Evaluation loop passed.

Uploading to PyPI

  1. Ensure Your .pypirc File is Set Up

Create or update your ~/.pypirc file with the following content:

[pypi] username = token password = pypi-

  1. Use Twine to Upload

Run the following command from your package directory:

twine upload dist/*

If successful, your package will be live on PyPI. You can find it at:

https://pypi.org/project/searchgenius/

Key Commands

pip install searchgenius

python test_myfunctions.py pytest

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

querysquirrel-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

querysquirrel-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file querysquirrel-0.1.0.tar.gz.

File metadata

  • Download URL: querysquirrel-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.6

File hashes

Hashes for querysquirrel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3e603ed58fe86a245134423d114d5ef264504429e91954e0597495a764498901
MD5 1d28e38a1ba85b55945ed9c9f6ea5ec9
BLAKE2b-256 aa994bcef2115b711c7a8c608772904fa378ef1cb5d29e9d02ddd063c72e5f9e

See more details on using hashes here.

File details

Details for the file querysquirrel-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: querysquirrel-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.6

File hashes

Hashes for querysquirrel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 826720ffaccc15cbfa2fc21f9b0d101e58117397af7c4b52557ecaec20201360
MD5 3ecf9ee862484013f1482fa57ae5baa6
BLAKE2b-256 593a2bf559cab06ba13a9de8fc685d29386ff1f2bde0d82b1a27c09cedd814fc

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