make code public
This commit is contained in:
commit
9d8b93db26
26 changed files with 11937 additions and 0 deletions
0
executor/__init__.py
Normal file
0
executor/__init__.py
Normal file
47
executor/clevr_statics.py
Normal file
47
executor/clevr_statics.py
Normal file
|
@ -0,0 +1,47 @@
|
|||
"""
|
||||
author: Adnen Abdessaied
|
||||
maintainer: "Adnen Abdessaied"
|
||||
website: adnenabdessaied.de
|
||||
version: 1.0.1
|
||||
"""
|
||||
|
||||
COLORS = ["blue", "brown", "cyan", "gray", "green", "purple", "red", "yellow"]
|
||||
MATERIALS = ["rubber", "metal"]
|
||||
SHAPES = ["cube", "cylinder", "sphere"]
|
||||
SIZES = ["large", "small"]
|
||||
|
||||
ATTRIBUTES_ALL = COLORS + MATERIALS + SHAPES + SIZES
|
||||
|
||||
ANSWER_CANDIDATES = {
|
||||
# Count questions
|
||||
"count-all": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
||||
"count-other": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||
"count-all-group": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
||||
"count-attribute": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
||||
"count-attribure-group": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
||||
"count-obj-rel-imm": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||
"count-obj-rel-imm2": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||
"count-obj-rel-early": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||
"count-obj-exclude-imm": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||
"count-obj-exclude-early": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||
|
||||
# Existence questions
|
||||
"exist-other": ["yes", "no"],
|
||||
"exist-attribute": ["yes", "no"],
|
||||
"exist-attribute-group": ["yes", "no"],
|
||||
"exist-obj-rel-imm": ["yes", "no"],
|
||||
"exist-obj-rel-imm2": ["yes", "no"],
|
||||
"exist-obj-rel-early": ["yes", "no"],
|
||||
"exist-obj-exclude-imm": ["yes", "no"],
|
||||
"exist-obj-exclude-early": ["yes", "no"],
|
||||
|
||||
# Seek questions
|
||||
"seek-attr-imm": ATTRIBUTES_ALL,
|
||||
"seek-attr-imm2": ATTRIBUTES_ALL,
|
||||
"seek-attr-early": ATTRIBUTES_ALL,
|
||||
"seek-attr-sim-early": ATTRIBUTES_ALL,
|
||||
"seek-attr-rel-imm": ATTRIBUTES_ALL,
|
||||
"seek-attr-rel-early": ATTRIBUTES_ALL,
|
||||
}
|
||||
|
||||
|
44
executor/minecraft_statics.py
Normal file
44
executor/minecraft_statics.py
Normal file
|
@ -0,0 +1,44 @@
|
|||
"""
|
||||
author: Adnen Abdessaied
|
||||
maintainer: "Adnen Abdessaied"
|
||||
website: adnenabdessaied.de
|
||||
version: 1.0.1
|
||||
"""
|
||||
|
||||
CLASSES = ["pig", "cow", "sheep", "chicken", "wolf", "horse", "villager", "treeA", "treeB", "armorstand", "boat", "minecart"]
|
||||
DIRECTIONS = ["facing_forward", "facing_backward", "facing_right", "facing_left"]
|
||||
NATURES = ["animal", "human", "plant", "inanimated_object"]
|
||||
|
||||
ATTRIBUTES_ALL = CLASSES + DIRECTIONS + NATURES
|
||||
|
||||
ANSWER_CANDIDATES = {
|
||||
# Count questions
|
||||
"count-all": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-other": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-all-group": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-attribute": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-attribure-group": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-obj-rel-imm": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-obj-rel-imm2": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-obj-rel-early": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-obj-exclude-imm": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
"count-obj-exclude-early": ["0", "1", "2", "3", "4", "5", "6"],
|
||||
|
||||
# Existence questions
|
||||
"exist-other": ["yes", "no"],
|
||||
"exist-attribute": ["yes", "no"],
|
||||
"exist-attribute-group": ["yes", "no"],
|
||||
"exist-obj-rel-imm": ["yes", "no"],
|
||||
"exist-obj-rel-imm2": ["yes", "no"],
|
||||
"exist-obj-rel-early": ["yes", "no"],
|
||||
"exist-obj-exclude-imm": ["yes", "no"],
|
||||
"exist-obj-exclude-early": ["yes", "no"],
|
||||
|
||||
# Seek questions
|
||||
"seek-attr-imm": ATTRIBUTES_ALL,
|
||||
"seek-attr-imm2": ATTRIBUTES_ALL,
|
||||
"seek-attr-early": ATTRIBUTES_ALL,
|
||||
"seek-attr-sim-early": ATTRIBUTES_ALL,
|
||||
"seek-attr-rel-imm": ATTRIBUTES_ALL,
|
||||
"seek-attr-rel-early": ATTRIBUTES_ALL,
|
||||
}
|
1678
executor/symbolic_executor.py
Normal file
1678
executor/symbolic_executor.py
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue