tw-extract¶
Extract information from of a list of TextWorld games.
usage: tw-extract [-h] [-f] [--merge] [-q | -v]
{vocab,entities,walkthroughs,commands} ...
Positional Arguments¶
- subcommand
Possible choices: vocab, entities, walkthroughs, commands
Type of information to extract.
General settings¶
- -f, --force
Default:
False- --merge
Merge extracted information to existing output file.
Default:
False- -q, --quiet
Default:
False- -v, --verbose
Default:
False
Sub-commands¶
vocab¶
Extract vocabulary.
tw-extract vocab [-h] [-f] [--merge] [-q | -v] [--output OUTPUT]
[--theme THEME]
[game ...]
Positional Arguments¶
- game
List of TextWorld games (.z8|.json).
Named Arguments¶
- --output
Output file containing all words (.txt). Default: ‘vocab.txt’
Default:
'vocab.txt'- --theme
Provide a text grammar theme from which to extract words.
General settings¶
- -f, --force
Default:
False- --merge
Merge extracted information to existing output file.
Default:
False- -q, --quiet
Default:
False- -v, --verbose
Default:
False
entities¶
Extract entity names.
tw-extract entities [-h] [-f] [--merge] [-q | -v] [--output OUTPUT]
game [game ...]
Positional Arguments¶
- game
List of TextWorld games (.z8|.json).
Named Arguments¶
- --output
Output file containing all entity names (.txt). Default: ‘entities.txt’
Default:
'entities.txt'
General settings¶
- -f, --force
Default:
False- --merge
Merge extracted information to existing output file.
Default:
False- -q, --quiet
Default:
False- -v, --verbose
Default:
False
walkthroughs¶
Extract walkthroughs.
tw-extract walkthroughs [-h] [-f] [--merge] [-q | -v] [--output OUTPUT]
game [game ...]
Positional Arguments¶
- game
List of TextWorld games (.z8|.json).
Named Arguments¶
- --output
Output file containing all walkthroughs (.txt). Default: ‘walkthroughs.txt’
Default:
'walkthroughs.txt'
General settings¶
- -f, --force
Default:
False- --merge
Merge extracted information to existing output file.
Default:
False- -q, --quiet
Default:
False- -v, --verbose
Default:
False
commands¶
Extract all possible commands.
tw-extract commands [-h] [-f] [--merge] [-q | -v] [--output OUTPUT]
game [game ...]
Positional Arguments¶
- game
List of TextWorld games (.z8|.json).
Named Arguments¶
- --output
Output file containing all commands (.txt). Default: ‘commands.txt’
Default:
'commands.txt'
General settings¶
- -f, --force
Default:
False- --merge
Merge extracted information to existing output file.
Default:
False- -q, --quiet
Default:
False- -v, --verbose
Default:
False