Pirate is a Python package that aims to be a unified framework for all things information retrieval. Currently, it serves as a go-to library for negative mining.
Project description
Pirate
Pirate is a Python package that aims to be a unified framework for all things information retrieval. Currently, it serves as a go-to library for negative mining. The package provides a set of classes and methods to handle and manipulate data in various formats, making the process of information retrieval and negative mining easy and efficient.
Installation
Pirate can be installed using pip. Simply run the following command:
pip install pirate
Features
- Data Handling: Pirate provides classes like Passages, Queries, Triples, and Ranking to handle different types of data. These classes can load data from various formats such as JSON, CSV, and lists, and also save data to these formats.
- Negative Mining: Pirate is designed to make the process of negative mining easy and efficient. It provides methods to load and manipulate data, making it a powerful tool for negative mining tasks.
Example Usage
Here's a simple example of how you can use the Passages class to load data from a JSON file:
from pirate.data import Passages
# Load passages from a JSON file
passages = Passages("path_to_your_json_file.json")
Same principle can be applied to load Queries, Triples, and Ranking data.
Running Tests
Pirate uses pytest for testing. To run the tests, navigate to the project directory and run the following command:
PYTHONPATH=$PYTHONPATH:. pytest
This will run all the tests in the tests directory.
Future Plans
While Pirate is currently focused on negative mining, the ultimate goal is to make it a comprehensive framework for all things related to information retrieval. Future updates will include more features and tools to handle a wider range of information retrieval tasks.
License
Pirate is licensed under the Apache License 2.0. For more details, see the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pirate-0.1.1a1.tar.gz
.
File metadata
- Download URL: pirate-0.1.1a1.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.6.10-76060610-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 498e9eca91581a9a06e4be529943baf8a7a5dd874fc828acbbc26b25c877761c |
|
MD5 | 44bddf0489ca567992141d788e562168 |
|
BLAKE2b-256 | bd7090173781e7983107711885a7074909c46efd425ac2ca79bfa5d4382a941e |
File details
Details for the file pirate-0.1.1a1-py3-none-any.whl
.
File metadata
- Download URL: pirate-0.1.1a1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.6.10-76060610-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2574b65ec5cf6e20fcf289a92e524bcb2a8e51040656a2a63a8ee5d65e6453b |
|
MD5 | fe1ce711d771cad3d79b9f80727d99b6 |
|
BLAKE2b-256 | ea6cf6a452ca91b35825d4798d20fb11a5e1d264604436c42db5080b97b45496 |