Generation of grammar-compliant programming language code using machine learning
AssigneeShopify Inc.
InventorDAVID LIBBEY
Life of this patent
Estimating the term…
Loading patent…
AssigneeShopify Inc.
InventorDAVID LIBBEY
Estimating the term…
A generative language model (e.g. large language model) may be used to generate programming language code. However, the generative language model may sometimes generate an output that is not compliant with the grammar of the programming language. In some embodiments herein, a generative language model may be modified to only generate an output that is grammar-compliant. A method may include generating a plurality of values using the generative language model, where each of the values is indicative of a probability of a respective token being a next token of a token sequence generated by the generative language model. A mask may be applied to the plurality of values. The mask may operate on each value that corresponds to a token not compliant with the grammar of the programming language to reduce or zero the probability of that token being the next token.
A computer-implemented method for generating programming language code, the computer-implemented method comprising:
A system comprising:
One or more non-transitory computer-readable storage media having stored thereon computer-executable instructions that, when executed by at least one processing unit, cause the at least one processing unit to perform operations comprising:
Dependencies are inferred from the claim text.