Genie Community Forum

Genie augment unsuccessful

Hello,
I used thingpedia command to download the parameter-datasets and created the tsv file.
I get an error while trying to run genie augment. As I can understand it has to do with the spotify commands. Any idea how to solve this or similar errors in future?.

root@760a5b584cc3:/projects/downloads/experiment_dir# node --max_old_space_size=10000 `which genie` augment synthesized.tsv --locale en-US --thingpedia thingpedia.tt --parameter-datasets parameter-datasets.tsv -o augmented.tsv --debug
Found no values for attribute.name:String, falling back to tt:short_free_text
{
  id: '2000001010',
  flags: {
    replaced: false,
    augmented: false,
    contextual: false,
    synthetic: true,
    eval: false
  },
  preprocessed: 'i would like to listen to the podcast QUOTED_STRING_0',
  target_code: [
    '@com.spotify . show ( ) filter id =~ QUOTED_STRING_0 => @com.spotify . play ( playable = id ) ;'
  ]
}
TypeError: Invalid type for parameter playable, have Entity(com.spotify:show), need Entity(com.spotify:playable)
    at TypeChecker._typeCheckInputArgs (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:636:23)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async TypeChecker._typeCheckExpression (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:663:26)
    at async TypeChecker._typeCheckExpressionStatement (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:1111:13)
    at async TypeChecker.typeCheckProgram (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:1149:17)
    at async Program.typecheck (/repos/genie-toolkit/node_modules/thingtalk/dist/ast/program.js:732:9)
    at async Object.parsePrediction (/repos/genie-toolkit/dist/lib/utils/thingtalk/syntax.js:89:9)
    at async ParameterReplacer._computeReplaceableParameters (/repos/genie-toolkit/dist/lib/dataset-tools/augmentation/replace_parameters.js:748:31)
    at async ParameterReplacer.process (/repos/genie-toolkit/dist/lib/dataset-tools/augmentation/replace_parameters.js:832:26)
    at async DatasetAugmenter._process (/repos/genie-toolkit/dist/lib/dataset-tools/augmentation/index.js:62:24)
events.js:353
      throw er; // Unhandled 'error' event
      ^

TypeError: Invalid type for parameter playable, have Entity(com.spotify:show), need Entity(com.spotify:playable)
    at TypeChecker._typeCheckInputArgs (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:636:23)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async TypeChecker._typeCheckExpression (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:663:26)
    at async TypeChecker._typeCheckExpressionStatement (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:1111:13)
    at async TypeChecker.typeCheckProgram (/repos/genie-toolkit/node_modules/thingtalk/dist/typecheck.js:1149:17)
    at async Program.typecheck (/repos/genie-toolkit/node_modules/thingtalk/dist/ast/program.js:732:9)
    at async Object.parsePrediction (/repos/genie-toolkit/dist/lib/utils/thingtalk/syntax.js:89:9)
    at async ParameterReplacer._computeReplaceableParameters (/repos/genie-toolkit/dist/lib/dataset-tools/augmentation/replace_parameters.js:748:31)
    at async ParameterReplacer.process (/repos/genie-toolkit/dist/lib/dataset-tools/augmentation/replace_parameters.js:832:26)
    at async DatasetAugmenter._process (/repos/genie-toolkit/dist/lib/dataset-tools/augmentation/index.js:62:24)
Emitted 'error' event on DatasetAugmenter instance at:
    at DatasetAugmenter.onerror (internal/streams/readable.js:764:14)
    at DatasetAugmenter.emit (events.js:376:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

I think you additionally need to pass --entities entities.json to ensure that the definition of the entity types includes subtyping correctly.

1 Like

Generally speaking though, we don’t often run the manual tutorial. We have automatic tests for the starter folders at genie-toolkit/starter at master · stanford-oval/genie-toolkit · GitHub and those should work more reliably.

1 Like