make code public
This commit is contained in:
parent
9d8b93db26
commit
6ba92064bb
26 changed files with 1744 additions and 0 deletions
166
templates/questions/count_question.json
Normal file
166
templates/questions/count_question.json
Normal file
|
@ -0,0 +1,166 @@
|
|||
[
|
||||
{
|
||||
"name":"Count-All Objects",
|
||||
"text": [
|
||||
"How many things are in the image?",
|
||||
"What is the count of all the things [in the image]?",
|
||||
"How many things in total [in the image]?",
|
||||
"What is the number of things [in the image]?"
|
||||
],
|
||||
"type":"count",
|
||||
"label":"count-all",
|
||||
"inputs":0
|
||||
},
|
||||
{
|
||||
"name":"Count-Other objects",
|
||||
"text": [
|
||||
"How many other things are in the image?",
|
||||
"What is the count of other things [in the image]?",
|
||||
"What is the number of other things [in the image]?"
|
||||
],
|
||||
"constraints":[],
|
||||
"type":"count",
|
||||
"label":"count-other",
|
||||
"inputs":0
|
||||
},
|
||||
{
|
||||
"name":"Count-All Group Immediate",
|
||||
"text": [
|
||||
"How many [things in the group]?",
|
||||
"What number [of things in the group]?",
|
||||
"How many of them?",
|
||||
"What number of them?",
|
||||
"How many such things [in the group]?"
|
||||
],
|
||||
"constraints":[],
|
||||
"type":"count-all-group",
|
||||
"label":"count-all-group",
|
||||
"inputs":0
|
||||
},
|
||||
{
|
||||
"name":"Count-Attribute",
|
||||
"text": [
|
||||
"If present, how many <Z> <C> <M> <S> are in the image?",
|
||||
"What is the count of <Z> <C> <M> <S> [in the image], if present?",
|
||||
"What is the number of <Z> <C> <M> <S> [in the image], if present?",
|
||||
"What number of <Z> <C> <M> <S> are present [in the image]?"
|
||||
],
|
||||
"constraints":[],
|
||||
"type":"count-attribute",
|
||||
"label":"count-attribute",
|
||||
"inputs":1
|
||||
},
|
||||
{
|
||||
"name":"Count-Attribute Group",
|
||||
"text": [
|
||||
"How many <Z> <C> <M> <S> among them?",
|
||||
"How many <Z> <C> <M> <S> in the group?",
|
||||
"How many of them are <Z> <C> <M> <S>?",
|
||||
"What is the count of <Z> <C> <M> <S> among them?",
|
||||
"What is the count of <Z> <C> <M> <S> in this group?",
|
||||
"What is the number of <Z> <C> <M> <S> among them?",
|
||||
"What is the number of <Z> <C> <M> <S> in this group?"
|
||||
],
|
||||
"constraints":[],
|
||||
"type":"count-attribute-group",
|
||||
"label":"count-attribute-group",
|
||||
"inputs":1
|
||||
},
|
||||
{
|
||||
"name":"Count Relation Object Immediate",
|
||||
"text": [
|
||||
"How many things [are present] to its <P> [in the image]?",
|
||||
"How many things does it have to its <P> [in the image]?",
|
||||
"What number of things [are present] to its <P> [in the image]?",
|
||||
"What is the count of things to its <P> [in the image]?"
|
||||
],
|
||||
"type":"count-obj-rel",
|
||||
"label":"count-obj-rel-imm",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"How many things [are present] to {F{its}} <P> [in the image]?",
|
||||
"How many things does {F{it}} have to {F{its}} <P> [in the image]?",
|
||||
"What number of things [are present] to {F{its}} <P> [in the image]?",
|
||||
"What is the count of things to {F{its}} <P> [in the image]?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Count Relation Object Immediate Pair",
|
||||
"text": [
|
||||
"How about to its <P>?",
|
||||
"What about to its <P>?",
|
||||
"And to its <P>?"
|
||||
],
|
||||
"type":"count-obj-rel",
|
||||
"label":"count-obj-rel-imm2",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"How about to {F{its}} <P>?",
|
||||
"What about to {F{its}} <P>?",
|
||||
"And to {F{its}} <P>?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Count Relation Object Earlier",
|
||||
"text": [
|
||||
"How many things [are present] <R> the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"How many things does the earlier <Z1> <C1> <M1> <S1> have to its <P>?",
|
||||
"What number of things [are present] <R> the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"What is the count of things the earlier <Z1> <C1> <M1> <S1> has to its <P>?"
|
||||
],
|
||||
"type":"count-obj-rel",
|
||||
"label":"count-obj-rel-early",
|
||||
"inputs":2,
|
||||
"references": [
|
||||
"How many things [are present] <R> {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"How many things does {F{the earlier <Z1> <C1> <M1> <S1>}} have to {F{its}} <P>?",
|
||||
"What number of things [are present] <R> {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"What is the count of things {F{the earlier <Z1> <C1> <M1> <S1>}} has to {F{its}} <P>?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Count Exclude Attribute Immediate",
|
||||
"text": [
|
||||
"How many other things share its <A> [in the image]?",
|
||||
"How many other things [in the image] share its <A>?",
|
||||
"What number of other things share its <A> [in the image]?",
|
||||
"How many other things have its <A> [in the image]?",
|
||||
"How many other things [in the image] have its <A>?",
|
||||
"What is the count of other things that share its <A> [in the image]?",
|
||||
"What is the count of other things [in the image] that share its <A>?"
|
||||
],
|
||||
"type":"count-obj-exclude",
|
||||
"label":"count-obj-exclude-imm",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"How many other things share {F{its}} <A> [in the image]?",
|
||||
"How many other things [in the image] share {F{its}} <A>?",
|
||||
"What number of other things share {F{its}} <A> [in the image]?",
|
||||
"How many other things have {F{its}} <A> [in the image]?",
|
||||
"How many other things [in the image] have {F{its}} <A>?",
|
||||
"What is the count of other things that share {F{its}} <A> [in the image]?",
|
||||
"What is the count of other things [in the image] that share {F{its}} <A>?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Count Relation Object Earlier",
|
||||
"text": [
|
||||
"How many other things [in the image] share similar <A> with the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"How many other things [in the image] are of same <A> as the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"How many other things [in the image] have the same <A> as the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"What number of other things [in the image] share similar <A> with the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"What number of other things [in the image] are of same <A> with the earlier <Z1> <C1> <M1> <S1>?"
|
||||
],
|
||||
"type":"count-obj-exclude",
|
||||
"label":"count-obj-exclude-early",
|
||||
"inputs":2,
|
||||
"references": [
|
||||
"How many other things [in the image] share similar <A> with {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"How many other things [in the image] are of same <A> as {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"How many other things [in the image] have the same <A> as {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"What number of other things [in the image] share similar <A> with {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"What number of other things [in the image] are of same <A> with {F{the earlier <Z1> <C1> <M1> <S1>}}?"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
133
templates/questions/exist_question.json
Normal file
133
templates/questions/exist_question.json
Normal file
|
@ -0,0 +1,133 @@
|
|||
[
|
||||
{
|
||||
"name":"Exist-Other objects",
|
||||
"text":[
|
||||
"Are there other things [in the image]?",
|
||||
"Does the image have other things?",
|
||||
"Any other things [in the image]?",
|
||||
"Are there more things [in the image]?"
|
||||
],
|
||||
"constraints":[],
|
||||
"type":"existence",
|
||||
"label":"exist-other",
|
||||
"inputs":0
|
||||
},
|
||||
{
|
||||
"name":"Exist-Attribute",
|
||||
"text": [
|
||||
"Are there [any] <Z> <C> <M> <S> [in the image]?",
|
||||
"Any <Z> <C> <M> <S> [in the image]?",
|
||||
"Does the image contain any <Z> <C> <M> <S>?"
|
||||
],
|
||||
"constraints":[],
|
||||
"type":"exist-attribute",
|
||||
"label":"exist-attribute",
|
||||
"inputs":1
|
||||
},
|
||||
{
|
||||
"name":"Exist-Attribute Group",
|
||||
"text": [
|
||||
"Are there [any] <Z> <C> <M> <S> among them?",
|
||||
"Are there [any] <Z> <C> <M> <S> in the group?",
|
||||
"Do they have [any] <Z> <C> <M> <S>?",
|
||||
"Any <Z> <C> <M> <S> in the group?",
|
||||
"Any <Z> <C> <M> <S> among them?"
|
||||
],
|
||||
"constraints":[],
|
||||
"type":"exist-attribute-group",
|
||||
"label":"exist-attribute-group",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"Are there [any] <Z> <C> <M> <S> among {{them}}?",
|
||||
"Are there [any] <Z> <C> <M> <S> in {{the group}}?",
|
||||
"Do {{they}} have [any] <Z> <C> <M> <S>?",
|
||||
"Any <Z> <C> <M> <S> in {{the group}}?",
|
||||
"Any <Z> <C> <M> <S> among {{them}}?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Exist Relation Object Immediate",
|
||||
"text": [
|
||||
"Are there things [present] to its <P> [in the image]?",
|
||||
"Does it have things to its <P> [in the image]?",
|
||||
"Are there things [present] <R> itself [in the image]?",
|
||||
"Does it have things to <R> itself [in the image]?"
|
||||
],
|
||||
"type":"exist-obj-rel",
|
||||
"label":"exist-obj-rel-imm",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"Are there things [present] to {F{its}} <P> [in the image]?",
|
||||
"Does {F{it}} have things to {F{its}} <P> [in the image]?",
|
||||
"Are there things [present] <R> {F{itself}} [in the image]?",
|
||||
"Does {F{it}} have things to <R> {F{itself}} [in the image]?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Exist Relation Object Immediate Pair",
|
||||
"text": [
|
||||
"How about to its <P>?",
|
||||
"What about to its <P>?",
|
||||
"And to its <P>?"
|
||||
],
|
||||
"type":"exist-obj-rel",
|
||||
"label":"exist-obj-rel-imm2",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"How about to {F{its}} <P>?",
|
||||
"What about to {F{its}} <P>?",
|
||||
"And to {F{its}} <P>?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Exist Relation Object Earlier",
|
||||
"text": [
|
||||
"Are there things [present] <R> the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"Does the earlier <Z1> <C1> <M1> <S1> have things to its <P>?"
|
||||
],
|
||||
"type":"exist-obj-rel",
|
||||
"label":"exist-obj-rel-early",
|
||||
"inputs":2,
|
||||
"references": [
|
||||
"Are there things [present] <R> {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"Does {F{the earlier <Z1> <C1> <M1> <S1>}} have things to {F{its}} <P>?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Existence Exclude Attribute Immediate",
|
||||
"text": [
|
||||
"Are there other things that share its <A> [in the image]?",
|
||||
"Are there other things [present] [in the image] sharing its <A>?",
|
||||
"Does the image have other things that share its <A>?",
|
||||
"Does the image have other things sharing its <A>?"
|
||||
],
|
||||
"type":"exist-obj-exclude",
|
||||
"label":"exist-obj-exclude-imm",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"Are there other things that share {F{its}} <A> [in the image]?",
|
||||
"Are there other things [present] [in the image] sharing {F{its}} <A>?",
|
||||
"Does the image have other things that share {F{its}} <A>?",
|
||||
"Does the image have other things sharing {F{its}} <A>?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Existence Relation Object Earlier",
|
||||
"text": [
|
||||
"Are there other things [in the image] that share the same <A> with the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"Are there other things [in the image] that are of same <A> as the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"Does the image have other things that share the same <A> with the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"Does the image have other things that are of same <A> as the earlier <Z1> <C1> <M1> <S1>?"
|
||||
],
|
||||
"type":"exist-obj-exclude",
|
||||
"label":"exist-obj-exclude-early",
|
||||
"inputs":2,
|
||||
"references": [
|
||||
"Are there other things [in the image] that share the same <A> with {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"Are there other things [in the image] that are of same <A> as {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"Does the image have other things that share the same <A> with {F{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"Does the image have other things that are of same <A> as {F{the earlier <Z1> <C1> <M1> <S1>}}?"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
79
templates/questions/seek_attribute.json
Normal file
79
templates/questions/seek_attribute.json
Normal file
|
@ -0,0 +1,79 @@
|
|||
[
|
||||
{
|
||||
"name":"Seek Attribute Immediate",
|
||||
"text": [
|
||||
"What is its <A>?",
|
||||
"What <A> is it?",
|
||||
"What about its <A>?",
|
||||
"What is the <A> of this thing?"
|
||||
],
|
||||
"constraints":[{"class":"seek-attr", "args":[]}],
|
||||
"type":"seek-attr",
|
||||
"label":"seek-attr-imm",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"What is {{its}} <A>?",
|
||||
"What <A> is {{it}}?",
|
||||
"What about {{its}} <A>?",
|
||||
"What is the <A> of {{this thing}}?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Seek Attribute Immediate Pair",
|
||||
"text": [
|
||||
"What about <A>?",
|
||||
"And <A>?",
|
||||
"How about <A>?"
|
||||
],
|
||||
"constraints":[{"class":"seek-attr", "args":[]}],
|
||||
"type":"seek-attr",
|
||||
"label":"seek-attr-imm2",
|
||||
"inputs":1
|
||||
},
|
||||
{
|
||||
"name":"Seek Attribute Earlier",
|
||||
"text": [
|
||||
"What is the <A> of the earlier <Z1> <C1> <M1> <S1>?",
|
||||
"What <A> is the earlier <Z1> <C1> <M1> <S1>?"
|
||||
],
|
||||
"constraints":[{"class":"seek-attr", "args":[]}],
|
||||
"type":"seek-attr",
|
||||
"label":"seek-attr-early",
|
||||
"inputs":2,
|
||||
"references": [
|
||||
"What is the <A> of {{the earlier <Z1> <C1> <M1> <S1>}}?",
|
||||
"What <A> is {{the earlier <Z1> <C1> <M1> <S1>}}?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Seek Attribute Relation Immediate",
|
||||
"text": [
|
||||
"If there is a thing <R> it, what is its <A>?",
|
||||
"If there is a thing <R> it, what <A> is it?"
|
||||
],
|
||||
"constraints":[{"class":"seek-attr", "args":[]}],
|
||||
"type":"seek-attr-rel",
|
||||
"label":"seek-attr-rel-imm",
|
||||
"inputs":1,
|
||||
"references": [
|
||||
"If there is a thing <R> {F{it}}, what is {{its}} <A>?",
|
||||
"If there is a thing <R> {F{it}}, what <A> is {{it}}?"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"Seek Attribute Relation Earlier",
|
||||
"text": [
|
||||
"If there is a thing <R> the earlier <Z1> <C1> <M1> <S1>, what is its <A>?",
|
||||
"If there is a thing <R> the earlier <Z1> <C1> <M1> <S1>, what <A> is it?"
|
||||
],
|
||||
"constraints":[{"class":"seek-attr", "args":[]}],
|
||||
"type":"seek-attr-rel",
|
||||
"label":"seek-attr-rel-early",
|
||||
"inputs":2,
|
||||
"references": [
|
||||
"If there is a thing <R> {F{the earlier <Z1> <C1> <M1> <S1>}}, what is {{its}} <A>?",
|
||||
"If there is a thing <R> {F{the earlier <Z1> <C1> <M1> <S1>}}, what <A> is {{it}}?"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
25
templates/questions/unique_object.json
Normal file
25
templates/questions/unique_object.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
"name":"Unique Object - Attributes",
|
||||
"text": [
|
||||
"There is [exactly] one <Z> <C> <M> <S> [in the image].",
|
||||
"The image has [exactly] one <Z> <C> <M> <S>.",
|
||||
"No other <Z> <C> <M> <S> except for [exactly] one.",
|
||||
"There is a <Z> <C> <M> <S> [in the image].",
|
||||
"The image has a <Z> <C> <M> <S>.",
|
||||
"A <Z> <C> <M> <S> is present [in the image]."
|
||||
],
|
||||
"constraints":[{"class":"unique_attr", "args":[]}],
|
||||
"type":"unique-obj",
|
||||
"label":"unique-obj",
|
||||
"references": [
|
||||
"There is [exactly] one {{<Z> <C> <M> <S>}} [in the image].",
|
||||
"The image has [exactly] one {{<Z> <C> <M> <S>}}.",
|
||||
"No other {{<Z> <C> <M> <S>}} except for [exactly] one.",
|
||||
"There is a {{<Z> <C> <M> <S>}} [in the image].",
|
||||
"The image has a {{<Z> <C> <M> <S>}}.",
|
||||
"A {{<Z> <C> <M> <S>}} is present [in the image]."
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue