Use {set} notation for sets.
This commit is contained in:
parent
e6e8146478
commit
3cfc03373f
3 changed files with 24 additions and 24 deletions
|
@ -55,51 +55,51 @@ examples = [
|
|||
|
||||
base_knowledge = {
|
||||
'icecream': {
|
||||
"groups": set(['noun', 'object', 'comestible', 'sweet']),
|
||||
"groups": {'noun', 'object', 'comestible', 'sweet'},
|
||||
},
|
||||
'lava': {
|
||||
"groups": set(['noun', 'object']),
|
||||
"groups": {'noun', 'object'},
|
||||
},
|
||||
'earth': {
|
||||
"groups": set(['noun', 'object', 'planet']),
|
||||
"groups": {'noun', 'object', 'planet'},
|
||||
},
|
||||
'io': {
|
||||
"groups": set(['noun', 'object']),
|
||||
"groups": {'noun', 'object'},
|
||||
},
|
||||
'green': {
|
||||
"groups": set(['noun', 'color', 'concept']),
|
||||
"groups": {'noun', 'color', 'concept'},
|
||||
},
|
||||
'plane': {
|
||||
"groups": set(['noun', 'object', 'vehicle', 'fast']),
|
||||
"groups": {'noun', 'object', 'vehicle', 'fast'},
|
||||
},
|
||||
'car': {
|
||||
"groups": set(['noun', 'object', 'vehicle', 'slow-ish']),
|
||||
"groups": {'noun', 'object', 'vehicle', 'slow-ish'},
|
||||
},
|
||||
'wale': {
|
||||
"groups": set(['noun', 'object', 'living-being']),
|
||||
"groups": {'noun', 'object', 'living-being'},
|
||||
},
|
||||
'cold': {
|
||||
"groups": set(['property', 'temperature']),
|
||||
"groups": {'property', 'temperature'},
|
||||
"as_property": "temperature",
|
||||
},
|
||||
'dangerous': {
|
||||
"groups": set(['property']),
|
||||
"groups": {'property'},
|
||||
"as_property": "safety",
|
||||
},
|
||||
'planet': {
|
||||
"groups": set(['noun', 'group']),
|
||||
"groups": {'noun', 'group'},
|
||||
},
|
||||
'moon': {
|
||||
"groups": set(['noun', 'group']),
|
||||
"groups": {'noun', 'group'},
|
||||
},
|
||||
'color': {
|
||||
"groups": set(['property', 'group']),
|
||||
"groups": {'property', 'group'},
|
||||
},
|
||||
'fly': {
|
||||
"groups": set(['verb']),
|
||||
"groups": {'verb'},
|
||||
},
|
||||
'swim': {
|
||||
"groups": set(['verb']),
|
||||
"groups": {'verb'},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -613,25 +613,25 @@ examples = [
|
|||
|
||||
base_knowledge = {
|
||||
'icecream': {
|
||||
"groups": set(['noun', 'object', 'comestible', 'sweet']),
|
||||
"groups": {'noun', 'object', 'comestible', 'sweet'},
|
||||
},
|
||||
'cold': {
|
||||
"groups": set(['property', 'temperature']),
|
||||
"groups": {'property', 'temperature'},
|
||||
},
|
||||
'earth': {
|
||||
"groups": set(['noun', 'object', 'planet']),
|
||||
"groups": {'noun', 'object', 'planet'},
|
||||
},
|
||||
'planet': {
|
||||
"groups": set(['noun', 'group']),
|
||||
"groups": {'noun', 'group'},
|
||||
},
|
||||
'color': {
|
||||
"groups": set(['property', 'group']),
|
||||
"groups": {'property', 'group'},
|
||||
},
|
||||
'green': {
|
||||
"groups": set(['noun', 'color', 'concept']),
|
||||
"groups": {'noun', 'color', 'concept'},
|
||||
},
|
||||
'fly': {
|
||||
"groups": set(['verb']),
|
||||
"groups": {'verb'},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue