Skip to main content

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


Download files

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

Source Distribution

spider_env_custom-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

spider_env_custom-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for spider_env_custom-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b43eee30030b58fa2c55591f2e5b46d01422a4b624d756447deee0a66827115
MD5 7ae1504e56550d387d54496a254ad825
BLAKE2b-256 619a488065a2ab415184b529835ad841036a36ff21196a222271af065fc3d92e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spider_env_custom-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d72c08e7047eb1b40765ce5918255fe896e9733d85a1c26bc81364063ed56384
MD5 3c01e7fc81363f9928fb4401b382ce3f
BLAKE2b-256 16d9107e44c17cf4fc6c7088d1f9639b2098ab43fe600507206bf69d26686605

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