Skip to content

Commit

Permalink
Include nltk.download() in benchmark.prepare_backend() for webarena /…
Browse files Browse the repository at this point in the history
… visualwebarena (#224)
  • Loading branch information
gasse authored Oct 30, 2024
1 parent 4b11241 commit 050c715
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ def prepare_backends(self):
default_instance.full_reset()

case "visualwebarena":
# download necessary tokenizer ressources
import nltk

# vhttps://github.com/nltk/nltk/issues/3293
# nltk.download('punkt') # deprecated
nltk.download("punkt_tab")

# register environments
import browsergym.visualwebarena

Expand All @@ -119,6 +126,13 @@ def prepare_backends(self):
default_instance.full_reset()

case "workarena":
# download necessary tokenizer ressources
import nltk

# vhttps://github.com/nltk/nltk/issues/3293
# nltk.download('punkt') # deprecated
nltk.download("punkt_tab")

# register environments
import browsergym.workarena

Expand Down

0 comments on commit 050c715

Please sign in to comment.