Environment wrapper for the Spider dataset
Project description
spider_env
spider_env is a lightweight environment wrapper for the Spider dataset.
Installation
pip install spider_env
Usage
from spider_env import SpiderEnv
spider = SpiderEnv(cache_dir="spider")
observation, info = spider.reset()
print("Question:", observation["instruction"])
print("SQL:", info["gold_query"])
print("Result:", info["gold_result"])
Requirements
- Python 3.8+
- NumPy 1.26.4
Author
Kha Nguyen Van - vankha.contact@gmail.com
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spider_env_custom-0.1.0.tar.gz.
File metadata
- Download URL: spider_env_custom-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b43eee30030b58fa2c55591f2e5b46d01422a4b624d756447deee0a66827115
|
|
| MD5 |
7ae1504e56550d387d54496a254ad825
|
|
| BLAKE2b-256 |
619a488065a2ab415184b529835ad841036a36ff21196a222271af065fc3d92e
|
File details
Details for the file spider_env_custom-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spider_env_custom-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d72c08e7047eb1b40765ce5918255fe896e9733d85a1c26bc81364063ed56384
|
|
| MD5 |
3c01e7fc81363f9928fb4401b382ce3f
|
|
| BLAKE2b-256 |
16d9107e44c17cf4fc6c7088d1f9639b2098ab43fe600507206bf69d26686605
|