Skip to main content

A robotics and language benchmark

Project description

Language-World

A language and robotics benchmark based on Meta-World.

Language-World is packaged as a set of small tools which process Meta-World observations. Wrapping Meta-World environments directly is left up to the user. To avoid confusion, please always use the goal-observable, randomized goal and initial state variation of Meta-World (MT50-rand), and always sample length 500 episodes. If you choose not to, please prominently document what configuration you used instead.

Language-World can be installed via pip:

pip install git+https://github.com/krzentner/language-world.git@v0.1.0

Alternatively, copy this file into your project.

Language-World consists of three main components:

First, a set of natural language task descriptions available as a dictionary: language_world.TASK_DESCRIPTIONS: dict[str, str]

Second, a set of "scripted skills," that can be used to solve MT10 (and also function in other tasks).

language_world.SCRIPTED_SKILL_NAMES: list[str] lists the names of all scripted skills. language_world.run_scripted_skill(skill_name: str, obs: np.ndarray) -> np.ndarray produces an action given a skill name and observation.

Thirdly, a query answering function:

language_world.eval_queries(task_name: str, queries: List[str],
                            obs: np.ndarray, fuzzy: bool=False)

The query answering function can evaluate a large number of queries. Enabling the fuzzy flag will map unsupported queries to the nearest supported queries using string edit distance.

language_world.enumerate_base_queries(task_name: str) -> list[str] provides a list of the "base" queries for a task (i.e. those that do not contain conjunctions).

language_world.enumerate_all_queries(task_name: str) -> list[str] provides a list of all queries for a task.

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

language_world-0.1.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

language_world-0.1.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file language_world-0.1.1.tar.gz.

File metadata

  • Download URL: language_world-0.1.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for language_world-0.1.1.tar.gz
Algorithm Hash digest
SHA256 460701bf9423dbc6f560f3c8e19025de454b4a39bd60964d048a30328db39336
MD5 74dd186b5a710e22e250d2e83ce5aa4f
BLAKE2b-256 423547e4d550804bc9b315e029990f309ee6671a6131ecaedc6689ca14e98220

See more details on using hashes here.

File details

Details for the file language_world-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for language_world-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4231e662a7ea975fa44a16febbc76bce490d0ea3fd0243b7d08d1de31f04d783
MD5 8a725a88546d934c646d116517bd58fd
BLAKE2b-256 bb358798f3e688878fa08350a436d855091cd19da16df585e3fb8472b43da553

See more details on using hashes here.

Supported by

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