The invention relates to a computer-implemented method for generating a configuration specification for controlling a device, comprising the following steps: - Accessing a pre-trained
language model, wherein the pre-trained
language model is configured to generate a configuration specification depending on provided input data, - Receiving text data as input data for the pre-trained
language model, wherein the text data are
natural language text data, wherein the text data specifies requirements for controlling the device, wherein the text data is combined with additional instructions to generate an input prompt, -
Processing the input prompt using the pre-trained language model, wherein a configuration specification is generated as a sequence of tokens, i. wherein a first token is generated to begin the sequence of tokens, ii. wherein a further token is added to the sequence of tokens, wherein a post-
processing step is applied to ensure adding a further token as valid
continuation of the sequence of tokens, iii. wherein the step of adding a further token to the sequence of tokens is repeated until a stop criterion is met, - Providing the configuration specification for controlling the device.